File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change 1414composer require azure-oss/storage-blob-flysystem
1515```
1616
17+ ## Quickstart
18+
19+ ``` php
20+ use AzureOss\FlysystemAzureBlobStorage\AzureBlobStorageAdapter;
21+ use AzureOss\Storage\Blob\BlobServiceClient;
22+ use League\Flysystem\Filesystem;
23+
24+ $blobServiceClient = BlobServiceClient::fromConnectionString('<connection-string >');
25+ $containerClient = $blobServiceClient->getContainerClient('quickstart');
26+
27+ $adapter = new AzureBlobStorageAdapter($containerClient, "optional/prefix");
28+ $filesystem = new Filesystem($adapter);
29+
30+ $filesystem->write('hello', 'world!');
31+ ```
32+
1733## Documentation
1834
1935For more information visit the documentation at [ azure-oss.github.io] ( https://azure-oss.github.io/storage/flysystem/ ) .
You can’t perform that action at this time.
0 commit comments