lessname / database
Installs: 9 556
Dependents: 5
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: ^8.4.0
- doctrine/dbal: ^4.0.0
- lessname/value-object: ^0.4.0
Requires (Dev)
- lessname/domain: ^0.5.0
- phpstan/phpstan: ^2.0.0
- phpunit/phpunit: ^10.0.0
- squizlabs/php_codesniffer: ^3.0.0
README
The library that proxies PDO so you can easily chain method calls
License
Mozilla Public License 2.0
Key features
method chaining, PDO does a great job at abstracting your database connection. Only a lot of methods return a boolean, this makes it hard to chain methods.
type support, by default PDO sees everything as string. Via LessDatabase scalar's (except for float) are seen ase their PDO types. Array's and objects are casted to json for easier use.