Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Backbone Framework

This mini framework is to support my PHP projects as a backbone.

Installation

There is no explicit installation process for this project.

You can always change models and migrate to the DB with your credentials with the help of Eloquent ORM.

You will need to install Composer following the instructions on their site.

Then, simply run the following command to install dependencies:

composer install

Initial Setup

Open

src/models/Database.php

and edit database credentials with yours.

$capsule->addConnection([
    'driver'    => 'mysql',
    'host'      => 'HOSTNAME',
    'database'  => 'DATABASE_NAME',
    'username'  => 'USERNAME',
    'password'  => 'PASSWORD',
    'charset'   => 'utf8',
    'collation' => 'utf8_unicode_ci',
    'prefix'    => '',
]);

After adding new Models or Controllers do not forget to run following command to generate autoload files.

composer dump-autoload -o

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

GNU GPLv3

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages