PHP code example of oracle / oci-php-sdk

1. Go to this page and download the library: Download oracle/oci-php-sdk 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/ */

    

oracle / oci-php-sdk example snippets




racle\Oci\Common\UserAgent;

echo "UserAgent: " . UserAgent::getUserAgent() . PHP_EOL;




racle\Oci\Common\UserAgent;

echo "UserAgent: " . UserAgent::getUserAgent() . PHP_EOL;


    php tests/Oracle/Oci/Examples/InstancePrincipalsExample.php
    

    php vendor/bin/phpunit --group InstancePrincipalsRequired