Provides implementations to interact with various cloud storage services.
composer require ets/document-storageAll storage adapters implement the ETS\DocumentStorage\Storage interface:
ETS\DocumentStorage\Adapter\Storage\CompositeETS\DocumentStorage\Adapter\Storage\EchoSignETS\DocumentStorage\Adapter\Storage\FilesystemETS\DocumentStorage\Adapter\Storage\S3
To store a document:
$docUrl = $storage->store('body of a doc', 'docName');The method returns the document's url.
To get the document's url
$docUrl = $storage->getUrl('docName');If the document doesn't exist, it will throw a ETS\DocumentStorage\Exception\DocumentNotFoundException
