2017 © Pedro PelĆ”ez
 

library oci8

Oracle database wrapper for PHP oci8 functions

image

jpina/oci8

Oracle database wrapper for PHP oci8 functions

  • Tuesday, March 29, 2016
  • by jpina
  • Repository
  • 5 Watchers
  • 11 Stars
  • 609 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 3 Forks
  • 3 Open issues
  • 4 Versions
  • 83 % Grown

The README.md

Oci8

Package information:, (*1)

Latest Version on Packagist Software License ![Build Status][ico-travis] Dependencies Status PHP 7 ready Total Downloads, (*2)

Code Information:, (*3)

[Code Coverage][link-coverage] ![Scrutinizer Score][ico-scrutinizer] Code Climate Score, (*4)

SensioLabsInsight Score, (*5)

Oci8 is a wrapper for the PHP Oracle OCI functions that allows interaction with Oracle databases by using objects in place of the regular oci_* functions., (*6)

Oci8 converts the warnings thrown by the oci_* function into Oci8Exceptions for better error handling., (*7)

Install

Via Composer, (*8)

``` bash $ composer require jpina/oci8, (*9)


## Usage Connect to a database, execute a query and fetch a row: ``` php $db = new Jpina\Oci8Connection('username', 'password', '//localhost:1521/XE'); $statement = $db->parse('SELECT * FROM dual'); $statement->execute(); $row = $statement->fetchAssoc();

Handing errors, (*10)

try {
    $db = new Jpina\Oci8Connection('username', 'password', '//localhost:1521/XE');
    // Closing database to force an error on next statement
    $db->close();
    // This statement will throw an Oci8Exception since there is no active connection
    $statement = $db->parse('SELECT * FROM dual');
} catch (Jpina\Oci8Exception $ex) {
    // Handle the Exception
}

Change log

Please see CHANGELOG for more information what has changed recently., (*11)

Testing

In order to run the tests you will need access to an Oracle Database and copy the .env.example to .env, then you can provide your own values within the .env, these values will be used by the tests to connect to the database., (*12)

You can run the tests with composer once you have your .env file configured properly., (*13)

bash $ composer test, (*14)

If you don't have access to an Oracle Database server, you can also run a docker container like wnameless/oracle-xe-11g and then connect to it to run the tests against a containerized Oracle Database., (*15)

Contributing

Please see CONTRIBUTING and CONDUCT for details., (*16)

Security

If you discover any security related issues, please email jabdhel@gmail.com instead of using the issue tracker., (*17)

Credits

License

The MIT License (MIT). Please see License File for more information., (*18)

The Versions

29/03 2016

dev-master

9999999-dev https://github.com/jpina/oci8

Oracle database wrapper for PHP oci8 functions

  Sources   Download

MIT

The Requires

  • php >=5.3.0
  • ext-oci8 >=2.0.0

 

The Development Requires

by JosuƩ PiƱa

database oci8 oracle oci

28/02 2016

1.0.1

1.0.1.0 https://github.com/jpina/oci8

Oracle database wrapper for PHP oci8 functions

  Sources   Download

MIT

The Requires

  • php >=5.3.0
  • ext-oci8 >=2.0.0

 

The Development Requires

by JosuƩ PiƱa

database oci8 oracle oci

28/02 2016

1.0.0

1.0.0.0 https://github.com/jpina/oci8

Oracle database wrapper for PHP oci8 functions

  Sources   Download

MIT

The Requires

  • php >=5.3.0
  • ext-oci8 >=2.0.0

 

The Development Requires

by JosuƩ PiƱa

database oci8 oracle oci

14/02 2016

0.1.0

0.1.0.0 https://github.com/jpina/oci8

Oracle database wrapper for PHP oci8 functions

  Sources   Download

MIT

The Requires

  • php >=5.3.0
  • ext-oci8 >=2.0.0

 

The Development Requires

by JosuƩ PiƱa

database oci8 oracle oci