PHP code example of satoripophq / azuresdk

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

    

satoripophq / azuresdk example snippets


use SatoripopAzure\AzureBlob as _AzureBlob;

...
$config['azureStorageName'] = "xxxxxx";
$config['azureAccountKey']  = "xxxxxx";
$config['uploadContainer']  = "mycontainer";

$uploadAzure = new _AzureBlob($config);
$result = $uploadAzure->createBlob($file,$blob_name);
echo $result;
$uploadAzure->downloadBlob($blob_name);
...