Download the PHP package maduser/argon-database without Composer
On this page you can find all versions of the php package maduser/argon-database. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download maduser/argon-database
More information about maduser/argon-database
Files in maduser/argon-database
Download maduser/argon-database
More information about maduser/argon-database
Files in maduser/argon-database
Vendor maduser
Package argon-database
Short Description A PHP package for database interactions
License MIT
Package argon-database
Short Description A PHP package for database interactions
License MIT
Please rate this library. Is it a good library?
Informations about the package argon-database
Argon Database
DBAL wrapper built on top of PDO for PHP 8.2+.
Features
- Not a ORM
- PDO-based abstraction
- Strict typing everywhere
- DTO hydration
- Supports MySQL, Postgres, SQLite
Installation
Creating a Client
Wrap your DB config in a LazyConnectionProvider, then pass to QueryClient.
Other drivers:
Query Usage
fetchAll()
Returns: list<array<string, scalar|null>>
fetchOne()
Returns: array<string, scalar|null> | null
execute()
Returns: void
file()
Throws if the file is unreadable or empty.
Using DTOs with RowMapper
To hydrate rows into typed objects, implement RowMapper<T> on your DTO:
Then hydrate:
Transactions
Commits on success, rolls back on exception.
License
MIT.
All versions of argon-database with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.2
ext-pdo Version *
ext-pdo Version *
The package maduser/argon-database contains the following files
Loading the files please wait ...