yajra/laravel-pdo-via-oci8
Composer 安装命令:
composer require yajra/laravel-pdo-via-oci8
包简介
PDO userspace driver proxying calls to PHP OCI8 driver
README 文档
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:
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));
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
yajra/laravel-pdo-via-oci8 适用场景与选型建议
yajra/laravel-pdo-via-oci8 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 3.67M 次下载、GitHub Stars 达 91, 最近一次更新时间为 2013 年 11 月 27 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 yajra/laravel-pdo-via-oci8 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 yajra/laravel-pdo-via-oci8 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 3.67M
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 95
- 点击次数: 23
- 依赖项目数: 18
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2013-11-27