Download the PHP package northern-lights/eloquent-bootstrap without Composer
On this page you can find all versions of the php package northern-lights/eloquent-bootstrap. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download northern-lights/eloquent-bootstrap
More information about northern-lights/eloquent-bootstrap
Files in northern-lights/eloquent-bootstrap
Package eloquent-bootstrap
Short Description Bootstrap for standalone Eloquent ORM
License MIT
Informations about the package eloquent-bootstrap
Eloquent ORM standalone Bootstrap
The Eloquent ORM that comes with Laravel makes it incredibly easy to interact with a database.
Unfortunately, if you want to use it standalone, without rest of framework, things are not so easy.
This library solves that headache for you, and brings Eloquent ORM to your project with single command.
Install
Via Composer
It really is that easy!
Usage - Single connection
Usage - Multiple connections
And that's all you need to include in your bootstrap file. For everything else, consult with Eloquent documentation.
Note: Even in this example, you can setup default connection via Database constructor.
Note: NorthernLights\EloquentBootstrap\Database::getCapsule() will return Capsule instance, which can be used to add connections directly
RAW Query usage
Creating a simple model
Note the usage of NorthernLights\EloquentBootstrap\Model, since it will only fix IDE annotations (Confirmed: PhpStorm). It doesn't include any logic.
PSR-12 Standard
Library strives to comply with PSR-12 coding standards, therefore we included following commands:
Note: Second command will actually modify files
PSR-4 Standard
Library complies with PSR-4 autoloading standard
Testing
License
The MIT License (MIT). Please see License File for more information.
All versions of eloquent-bootstrap with dependencies
illuminate/database Version 8.50.0
illuminate/pagination Version 8.50.0