Download the PHP package jfelder/oracledb without Composer

On this page you can find all versions of the php package jfelder/oracledb. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package oracledb

Laravel Oracle Database Package

OracleDB (updated for Laravel 13)

PHP Version Latest Version Total Downloads License Tests Coverage Codecov

OracleDB is an Oracle Database Driver package for Laravel Framework - thanks @taylorotwell. OracleDB is an extension of Illuminate/Database that uses the OCI8 Functions wrapped into the PDO namespace.

Please report any bugs you may find.

IMPORTANT This version removes the PDO_OCI driver option and only uses the OCI8 Functions under the hood.

Installation

With Composer:

During this command, Laravel's "Auto-Discovery" feature should automatically register OracleDB's service provider.

Next, publish OracleDB's configuration file using the vendor:publish Artisan command. This will copy OracleDB's configuration file to config/oracledb.php in your project.

To finish the installation, set your environment variables (typically in your .env file) to the corresponding env variables used in config/oracledb.php: such as DB_HOST, DB_USERNAME, etc.

Date Format Config The date_format config has been removed in favor of using the NLS_* session parameters. The default values are defined by the package and can be overridden in config/oracledb.php via the session_parameters config array or through the corresponding environment variables such as NLS_DATE_FORMAT. This affects all read/write operations of any Eloquent model with date fields and any Query Builder queries that utilize a Carbon instance and brings the handling of dates in line with the framework.

Default NLS session parameters

Parameter Default value
NLS_TIME_FORMAT 'HH24:MI:SS'
NLS_DATE_FORMAT 'YYYY-MM-DD HH24:MI:SS'
NLS_TIMESTAMP_FORMAT 'YYYY-MM-DD HH24:MI:SS'
NLS_TIMESTAMP_TZ_FORMAT 'YYYY-MM-DD HH24:MI:SS TZH:TZM'
NLS_NUMERIC_CHARACTERS '.,'

Basic Usage

The configuration file for this package is located at config/oracledb.php. In this file, you define all of your oracle database connections. If you need to make more than one connection, just copy the example one. If you want to make one of these connections the default connection, enter the name you gave the connection into the "Default Database Connection Name" section in config/database.php.

Once you have configured the OracleDB database connection(s), you may run queries using the DB facade as normal.

Note: This driver makes OracleDB use the OCI8 Functions under the hood.

The above statement assumes you have set the default connection to be the oracle connection you setup in config/database.php file and will always return an array of results.

Just like the built-in database drivers, you can use the connection method to access the oracle database(s) you setup in config/oracledb.php file.

Inserting Records Into A Table With An Auto-Incrementing ID

Note: When using the insertGetId method, you can specify the auto-incrementing column name as the second parameter in insertGetId function. It will default to "id" if not specified.

See the Laravel database documentation for more information.

Unimplemented Features

Some of the features available in the first-party Laravel database drivers are not implemented in this package. The list below separates features that are currently unsupported from features whose fluent modifiers are currently accepted but have no effect on the generated SQL. Pull requests are welcome for implementing any of these features, or for expanding this list if you find any gaps not already listed.

Unsupported: Query Builder

Unsupported: Eloquent

Unsupported: Schema Builder

Accepted But Currently No-Op

Supported With Limitations

Testing

If OCI8 is not installed locally, you can still run the portable portion of the test suite:

If OCI8 is available, run the full suite:

License

Licensed under the MIT License.


All versions of oracledb with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
illuminate/collections Version ^13.0
illuminate/database Version ^13.0
illuminate/pagination Version ^13.0
illuminate/support Version ^13.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package jfelder/oracledb contains the following files

Loading the files please wait ...