PHP code example of jfelder / oracledb

1. Go to this page and download the library: Download jfelder/oracledb library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

jfelder / oracledb example snippets


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

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

$id = DB::connection('oracle')->table('users')->insertGetId(
    ['email' => '[email protected]', 'votes' => 0], 'userid'
);
sh
php artisan vendor:publish --tag=oracledb-config