Download the PHP package tschallacka/storm-database without Composer
On this page you can find all versions of the php package tschallacka/storm-database. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download tschallacka/storm-database
More information about tschallacka/storm-database
Files in tschallacka/storm-database
Package storm-database
Short Description The WinterCMS Storm library but only the database features
License MIT
Informations about the package storm-database
Storm Database Library
This is a individual fork of the Storm Library for WinterCMS that adds solely the database features and removes the rest of the features that that library offers.
This way you can have a lean library for snazzy database models in independent projects, without needing all the other wintercms dependent features that the storm library offers.
For documentation refer to [https://wintercms.com/docs/database/model]
To test this library run composer test.
If you wish to contribute consider contributing to the winter storm library.
Currently this uses a branch for migrating to laravel 8 in a newer version, but this will follow the main branch when laravel 8 integration is achieved.
Installation
Usage
Somewhere in your application boot up or at the location where you wish to use it, you'll most likely need to initialize the Eloquent connection manager. You can use something like the snippet below.
Use the WinterCMS documentation to see which configuration details are accepted, or review the Laravel documentation
Contributing
Run the command composer update-from-source to update the files from the source.
Currently it pulls from my private branch on https://github.com/tschallacka/storm/tree/remove_helper_calls
Feel free to modify bin/sync.sh to suit your needs.
Libraries using this to inject Eloquent in non Eloquent frameworks
Magento
Mage Storm Registers as a plugin within Magento 2.4 and then reads the app/etc/env.php file to glean the communication details so easy Eloquent access is possible within Magento 2.4
All versions of storm-database with dependencies
symfony/mime Version ^5.2
symfony/http-foundation Version ^5.1.4
illuminate/events Version ^8.38
illuminate/encryption Version ^8.38
illuminate/translation Version ^8.38
illuminate/validation Version ^8.38
laravel-zero/foundation Version ^8.55
illuminate/log Version ^8.61
illuminate/redis Version ^8.0
illuminate/filesystem Version ^8.0
illuminate/hashing Version ^8.0
illuminate/cache Version ^8.0
illuminate/queue Version ^8.0
vlucas/phpdotenv Version ^2.6