terabytesoft / db-oracle
Oracle extension for the Yii framework
This package's canonical repository appears to be gone and the package has been frozen as a result.
Fund package maintenance!
Open Collective
yiisoft
Requires
- php: ^8.0
- ext-pdo: *
- terabytesoft/db: @dev
- yiisoft/arrays: ^2.0
- yiisoft/strings: ^2.0
Requires (Dev)
- phpunit/phpunit: ^9.4
- roave/infection-static-analysis-plugin: ^1.6
- spatie/phpunit-watcher: ^1.23
- vimeo/psalm: ^4.2
- yiisoft/aliases: ^1.1|^2.0
- yiisoft/cache: ^1.0
- yiisoft/log: ^1.0
This package is auto-updated.
Last update: 2023-05-10 22:13:40 UTC
README
Yii Framework Oracle Extension
This extension provides the Oracle database support for the Yii framework.
For license information check the LICENSE-file.
Documentation is at docs/guide/README.md.
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist yiisoft/db-oracle
or add
"yiisoft/db-oracle": "~1.0.0"
to the require section of your composer.json.
Configuration
Using yiisoft/composer-config-plugin automatically get the settings of Yiisoft\Cache\CacheInterface::class
, LoggerInterface::class
, and Profiler::class
.
Di-Container:
use Yiisoft\Db\Connection\ConnectionInterface; use Yiisoft\Db\Oracle\Connection as OracleConnection; return [ ConnectionInterface::class => [ 'class' => OracleConnection::class, '__construct()' => [ 'dsn' => $params['yiisoft/db-oracle']['dsn'], ], 'setUsername()' => [$params['yiisoft/db-oracle']['username']], 'setPassword()' => [$params['yiisoft/db-oracle']['password']], ] ];
Params.php
return [ 'yiisoft/db-oracle' => [ 'dsn' => 'oci:dbname=localhost/XE;charset=AL32UTF8;', 'username' => 'system', 'password' => 'oracle', ], ];
Unit testing
The package is tested with PHPUnit. To run tests:
./vendor/bin/phpunit
Mutation testing
The package tests are checked with Infection mutation framework. To run it:
./vendor/bin/infection
Static analysis
The code is statically analyzed with Psalm. To run static analysis:
./vendor/bin/psalm
Support the project
Follow updates
License
The Yii Framework Oracle Extension is free software. It is released under the terms of the BSD License.
Please see LICENSE
for more information.
Maintained by Yii Software.