Download the PHP package mpyw/laravel-pdo-emulation-control without Composer
On this page you can find all versions of the php package mpyw/laravel-pdo-emulation-control. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package laravel-pdo-emulation-control
Laravel PDO Emulation Control
Temporarily enable/disable PDO prepared statement emulation.
Requirements
Package | Version | Mandatory |
---|---|---|
PHP | ^8.0 |
✅ |
Laravel | ^9.0 || ^10.0 |
✅ |
PHPStan | >=1.1 |
Installing
Basic Usage
[!IMPORTANT] The default implementation is provided by
ConnectionServiceProvider
, however, package discovery is not available. Be careful that you MUST register it inconfig/app.php
by yourself.[!IMPORTANT] Note that
DB::getPdo()
DB::getReadPdo()
are not always called even though these methods directly touch thePDO
instances. Connections are lazily resolved as possible as they can.PDO::setAttribute()
is called only after thePDO
instance has been created and the socket connection to the database has been really established.
Advanced Usage
[!TIP] You can extend Connection classes with
ControlsEmulation
trait by yourself.
All versions of laravel-pdo-emulation-control with dependencies
ext-pdo Version *
illuminate/database Version ^9.0 || ^10.0 || ^11.0
illuminate/support Version ^9.0 || ^10.0 || ^11.0
mpyw/unclosure Version ^3.0