2017 © Pedro Peláez
 

library oracledb

Oracle DB driver for Laravel 4+

image

marcuoli/oracledb

Oracle DB driver for Laravel 4+

  • Sunday, January 12, 2014
  • by marcuoli
  • Repository
  • 1 Watchers
  • 1 Stars
  • 10 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 45 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Laravel 4.1 Oracle Database Package

OracleDB Build Status

OracleDB is an Oracle Database Driver package for Laravel 4.1. OracleDB is an extension of Illuminate/Database that uses the (Thanks to @taylorotwell), (*1)

Please report any bugs you may find., (*2)

Installation

Add marcuoli/oracledb as a requirement to composer.json:, (*3)

{
    "require": {
        "marcuoli/oracledb": "*"
    }
}

And then run composer update, (*4)

Once Composer has installed or updated your packages you need to register OracleDB. Open up app/config/app.php and find the providers key and add:, (*5)

'Jfelder\OracleDB\OracleDBServiceProvider'

Finally you need to publish a configuration file by running the following Artisan command., (*6)

$ php artisan config:publish marcuoli/oracledb

This will copy the configuration file to app/config/packages/jfelder/oracledb/database.php, (*7)

Basic Usage

The configuration file for this package is located at 'app/config/packages/jfelder/oracledb/database.php'. In this file you may define all of your oracle database connections. 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 'app/config/database.php'., (*8)

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

$results = DB::select('select * from users where id = ?', array(1));

The above statement assumes you have set the default connection to be the oracle connection you setup in OracleDB's config file and will always return an 'array' of results., (*10)

$results = DB::connection('oracle')->select('select * from users where id = ?', array(1));

Just like the built-in database drivers, you can use the connection method to access the oracle database(s) you setup in OracleDB's config file., (*11)

See Laravel 4 Database Basic Docs for more information., (*12)

Query Builder

You can use the Query Builder functionality exactly the same as you would with the default DB class in Laravel 4. Every query on Laravel 4 Database Query Builder Docs has been tested to ensure that it works., (*13)

Offset & Limit, (*14)

$users = DB::table('users')->skip(10)->take(5)->get();

See Laravel 4 Database Query Builder Docs for more information., (*15)

Eloquent

See Laravel 4 Eloquent Docs for more information., (*16)

Schema (WIP)

See Laravel 4 Schema Docs for more information., (*17)

Migrations (WIP)

See Laravel 4 Migrations Docs for more information., (*18)

License

Licensed under the MIT License., (*19)

The Versions

12/01 2014

dev-master

9999999-dev

Oracle DB driver for Laravel 4+

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jimmy Felder

laravel oracle

23/05 2013

dev-dev

dev-dev

Oracle DB driver for Laravel 4

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jimmy Felder

laravel oracle