PHP code example of iartz / azure-blob-storage
1. Go to this page and download the library: Download iartz/azure-blob-storage 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/ */
iartz / azure-blob-storage example snippets
use BlobStorage\Blob;
$blob = new Blob(CONNECTION_STRING);
// Set contaniner
$blob->setContainer(CONTANER);
$blob->setBlobName(BLOB_NAME);
$blob->setContent(PATH_OF_CONTENT);
// Create blob
$blob->new();
// Read blob
$blob->show();
// Update blob
$blob->update();
// Delete blob
$blob->delete();