1. Go to this page and download the library: Download azure-oss/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/ */
$blobClient = $containerClient->getBlobClient("hello.txt");
$blobClient->upload("world!");
// or using streams
$file = fopen('hugefile.txt', 'r');
$blobClient->upload($file);
$blobs = $containerClient->getBlobs();
// or with a prefix
$blobs = $containerClient->getBlobs('some/virtual/directory');
// and if you want both the blobs and virtual directories
$blobs = $containerClient->getBlobsByHierarchy('some/virtual/directory');
$sourceBlobClient = $containerClient->getBlobClient("source.txt");
// Can also be a different container
$targetBlobClient = $containerClient->getBlobClient("target.txt");
$targetBlobClient->copyFromUri($sourceBlobClient->uri);
$sas = new Uri("https://azure-oss.blob.core.windows.net/quickstart?sp=...&st=...&se=...&spr=...&sv=...sr=...&sig=...")
$containerClient = new BlobContainerClient($sas);
$sas = new Uri("https://azure-oss.blob.core.windows.net/quickstart/file.txt?sp=...&st=...&se=...&spr=...&sv=...sr=...&sig=...")
$blobClient = new BlobClient($sas);