PHP code example of igorkgg / laravel-filesystem-akamai-netstorage

1. Go to this page and download the library: Download igorkgg/laravel-filesystem-akamai-netstorage 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/ */

    

igorkgg / laravel-filesystem-akamai-netstorage example snippets




return [
   'disks' => [
        //...
        'akamai' => [
          'driver'   => 'akamai',
           'key'      => env('AKAMAI_KEY'),
           'keyName'  => env('AKAMAI_KEY_NAME'),
           'hostname' => env('AKAMAI_HOSTNAME'),
           'cpCode'   => env('AKAMAI_CPCODE'),
           'basePath' => env('AKAMAI_BASE_PATH', ''),
           'baseUrl'  => env('AKAMAI_BASE_URL', ''),
           'timeout'  => env('AKAMAI_TIMEOUT', 300),
        ],
        //...
    ]
];


Storage::disk('akamai')->put('test.txt', 'Test file');