mahdiazadbar / laravel-pdo-via-oci8
PDO userspace driver proxying calls to PHP OCI8 driver
Fund package maintenance!
yajra
Patreon
www.paypal.me/yajra
Installs: 1 309
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 66
pkg:composer/mahdiazadbar/laravel-pdo-via-oci8
Requires (Dev)
- phpunit/phpunit: ^8.4|^9.0
This package is auto-updated.
Last update: 2025-10-29 03:33:40 UTC
README
PDO via Oci8
The yajra/pdo-via-oci8 package is a simple userspace driver for PDO that uses the tried and tested OCI8 functions instead of using the still experimental and not all that functional. PDO_OCI library.
Please report any bugs you may find.
Installation
Add mahdiazadbar/laravel-pdo-via-oci8 as a requirement to composer.json:
{
"require": {
"mahdiazadbar/laravel-pdo-via-oci8": "2.*"
}
}
And then run composer update
PHP 8 Support
When using PHP 8, please use version 3: "mahdiazadbar/laravel-pdo-via-oci8": "3.*".
Testing
There is a test suite (using PHPUnit with a version bigger than 6.x) on the test directory. If you want to
test (you must test your code!), create a table called people with two
columns:
nameasvarchar2(50)emailasvarchar2(30)
And some environment variables:
OCI_USERwith the database user nameOCI_PWDwith the database passwordOCI_STRwith the database connection string
And then go to the test dir and run PHPUnit like:
phpunit --colors .
Example to get it up and running on docker DB container-registry.oracle.com/database/enterprise:12.2.0.1
create pluggable database testpdb admin user oracle identified by system file_name_convert = ('/pdbseed/', '/testpdb01/');
alter pluggable database testpdb open;
ALTER SESSION SET CONTAINER=testpdb;
CREATE TABLE person (name NVARCHAR2(50), email NVARCHAR2(30));
Buy me a coffee
License
The MIT License (MIT). Please see License File for more information.
Credits
- crazycodr/pdo-via-oci8
- ramsey/pdo_oci8
- To all contributors of this project