PHP code example of netflex / api

1. Go to this page and download the library: Download netflex/api 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/ */

    

netflex / api example snippets




return [
    // ...
    'providers' => [
        Netflex\API\Providers\APIServiceProvider::class,
        // ...
    ],
    // ...
];



return [
    // ...
    'aliases' => [
        'API'   => Netflex\API\Facades\API::class,
        // ...
    ],
    // ...
];



use Netflex\API\Client;

$client = new Client([
  'auth' => ['publicKey', 'privateKey']
]);
shell
php artisan vendor:publish
shell
php artisan vendor:publish --provider="Netflex\API\Providers\APIServiceProvider"