marella / phd
PHP Database library.
Installs: 2 103
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 1
Open Issues: 0
Requires
- php: >=5.5
Requires (Dev)
- fabpot/php-cs-fixer: ^1.11
- mockery/mockery: ~0.9.4
- phpunit/dbunit: >=1.4
- phpunit/php-code-coverage: ^2
- phpunit/phpunit: 4.8.*
- satooshi/php-coveralls: ^1.0
Suggests
- marella/phig: Useful to load database config from files.
This package is not auto-updated.
Last update: 2024-11-06 23:32:17 UTC
README
PHP Database library. Copied from Laravel framework.
Quick Usage
composer require marella/phd
<?php require 'vendor/autoload.php'; $config = require 'config/database.php'; // load config array from a file use PhD\DB; DB::init($config); $users = DB::select('select * from users where active = ?', [1]);
Documentation
See the wiki for more details and documentation.
Contributing
See contributing guidelines before creating issues or pull requests.
License
Open-source software released under the MIT license.