lessname / database
This package is abandoned and no longer maintained.
No replacement package was suggested.
Database wrapper
2.0.2
2020-11-10 13:08 UTC
Requires
- php: ^7.4.0
- ext-json: *
- ext-pdo: *
Requires (Dev)
- lessname/lint: ^2.0.0
- lessname/test: ^2.0.0
- squizlabs/php_codesniffer: 3.5.3
Suggests
- ext-pdo: Needed for sql pdo database
This package is auto-updated.
Last update: 2021-11-27 13:29:08 UTC
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.