Skip to content
This repository has been archived by the owner on Mar 9, 2023. It is now read-only.
/ document-storage Public archive

Provides implementations for various document storage services

License

Notifications You must be signed in to change notification settings

ETSGlobal/document-storage

Repository files navigation

ETS DocumentStorage library

Provides implementations to interact with various cloud storage services.

Build Status Scrutinizer Code Quality SensioLabsInsight

Latest Version Total Downloads

License

Installation

composer require ets/document-storage

Storage adapters

All storage adapters implement the ETS\DocumentStorage\Storage interface:

  • ETS\DocumentStorage\Adapter\Storage\Composite
  • ETS\DocumentStorage\Adapter\Storage\EchoSign
  • ETS\DocumentStorage\Adapter\Storage\Filesystem
  • ETS\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

Code License

LICENSE

About

Provides implementations for various document storage services

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages