Download the PHP package brash/dbal without Composer
On this page you can find all versions of the php package brash/dbal. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package dbal
Brash DBAL
This is a DBAL on top of ReactPHP SQL clients and Doctrine DBAL. With this, you will be able to use
Doctrine QueryBuilder model
Doctrine Schema model
SQL Statements
Easy-to-use shortcuts for common operations
Using this non-blocking approach, you release your processes from the burden of keeping await operations while you can take the most out of your processor, with the advantage of seemingly unnoticeable await
keywords.
How to use
You may find concrete examples (and working!) in examples
directory, but this package does pretty much what Doctrine DBAL does, since it is just a way to extend Doctrine DBAL's already useful and knwon qualities. The additions are transparent, but basically:
- A connection pool
- Async drivers
- A custom Driver Manager
It goes like this ;)
Configuration
You can configure the driver manager directly from the class just like the connection pool values.
Driver Options
Choose between MySQL, MariaDB, Postgres and SQLite, just passing the correct driver in your Connection Params
.
Under the hood
Internally, the: Postgres Async Driver is an implementation on top of Voryx/PgAsync; SQLite Async Driver is an implementation on top of Clue/reactphp-sqlite, and MySQL/MariaDB is an implementation on top of react/mysql.
Requires PHP 8.3+
๐งน Keep a modern codebase with Pint:
โ Run refactors using Rector
โ๏ธ Run static analysis using PHPStan:
โ Run unit tests using PEST
๐ Run the entire test suite:
All versions of dbal with dependencies
clue/reactphp-sqlite Version ^1.6
doctrine/dbal Version ^4.2
react/async Version ^4.3
react/mysql Version ^0.7@dev
react/promise Version ^3.2
voryx/pgasync Version ^2.0