yajra / laravel-pdo-via-oci8
PDO userspace driver proxying calls to PHP OCI8 driver
Fund package maintenance!
yajra
Patreon
www.paypal.me/yajra
Installs: 2 490 529
Dependents: 17
Suggesters: 0
Security: 0
Stars: 88
Watchers: 7
Forks: 65
Open Issues: 18
Requires
- php: ^8.0
- ext-oci8: *
- ext-pdo: *
Requires (Dev)
- phpunit/phpunit: ^8.4|^9.0
- dev-master / 3.x-dev
- v3.6.0
- v3.5.0
- v3.4.4
- v3.4.3
- v3.4.2
- v3.4.1
- v3.4.0
- v3.3.1
- v3.3.0
- v3.2.5
- v3.2.4
- v3.2.3
- v3.2.2
- v3.2.1
- v3.2.0
- v3.1.0
- 3.0.x-dev
- v3.0.0
- v2.4.0
- v2.3.0
- v2.2.0
- v2.1.3
- v2.1.2
- v2.1.1
- v2.1.0
- 2.0.x-dev
- v2.0.0
- v1.4.0
- v1.3.8
- v1.3.7
- v1.3.6
- v1.3.5
- v1.3.4
- v1.3.3
- v1.3.2
- v1.3.1
- v1.3.0
- v1.2.1
- v1.2.0
- v1.1.1
- v1.1.0
- 1.0.x-dev
- v1.0.5
- v1.0.4
- v1.0.3
- v1.0.2
- v1.0.1
- v1.0.0
- 0.15.0
- 0.14.0
- v0.13.0
- 0.12.0
- 0.11.0
- 0.10.1
- 0.10.0
- 0.9.3
- 0.9.2
- 0.9.1
- 0.9.0
- 0.8.1
- 0.8.0
- 0.7.0
- 0.6.2
- 0.6.1
- 0.5.0
- 0.4.0
- 0.3.0
- 0.2.16
- 0.2.15
- 0.2.14
- 0.2.13
- 0.2.12
- 0.2.11
- 0.2.10
- 0.2.9
- 0.2.8
- 0.2.7
- 0.2.6
- 0.2.5
- 0.2.4
- 0.2.3
- 0.2.2
- 0.2.1
- 0.2.0
- 0.1.2
- 0.1.1
- 0.1.0
This package is auto-updated.
Last update: 2024-12-17 10:31:27 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 yajra/laravel-pdo-via-oci8
as a requirement to composer.json:
{ "require": { "yajra/laravel-pdo-via-oci8": "2.*" } }
And then run composer update
PHP 8 Support
When using PHP 8, please use version 3: "yajra/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:
name
asvarchar2(50)
email
asvarchar2(30)
And some environment variables:
OCI_USER
with the database user nameOCI_PWD
with the database passwordOCI_STR
with 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));
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