Skip to content

Commit

Permalink
Merge pull request #1 from oat-sa/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
jbout authored Aug 10, 2016
2 parents b498022 + cdd3ceb commit a0e153d
Show file tree
Hide file tree
Showing 5 changed files with 1,011 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/.idea
/nbproject
/.project
/.settings/
/.buildpath
composer.lock
/vendor/
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
flysystem Adapter
========

Dual Storage Adapter for league/flysystem
Use to keep a cached local copy of each read of remote file.

It use two storage, a remote location and a local location.
Local location has priority on read operation.
All write operation are made on both.

usage :

$remote = new League\Flysystem\AwsS3V3\AwsS3Adapter(...);
$local = new League\Flysystem\Adapter\Local(...);

$autosave = true;

$adapter = new oat\LibFlysystemFilecache\model\flysystem\DualStorageAdapter($remote, $local ,autosave);


see http://flysystem.thephpleague.com/ to configure your adapters
62 changes: 62 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
{
"name" : "oat-sa/lib-flysystem-filecache",
"authors" : [{
"name" : "Open Assessment Technologies S.A.",
"homepage" : "http://www.taotesting.com"
}, {
"name" : "Jérôme Bogaerts",
"role" : "Developer"
}, {
"name" : "Joel Bout",
"role" : "Developer"
}, {
"name" : "Bertrand Chevrier",
"role" : "Developer"
}, {
"name" : "Lionel Lecaque",
"role" : "Developer"
}, {
"name" : "Patrick Plichart",
"role" : "Developer"
}, {
"name" : "Dieter Raber",
"role" : "Developer"
}, {
"name" : "Somsack Sipasseuth",
"role" : "Developer"
}, {
"name" : "Christophe Garcia",
"role" : "Developer"
}
],
"description" : "flysystem cache Adapter",
"support" : {
"forum" : "http://forum.taotesting.com",
"issues" : "http://forge.taotesting.com"
},
"license" : "GPL-2.0",
"keywords" : [
"flysystem",
"oat",
"flysystem adapter",
"cache"
],
"type" : "library",
"require" : {
"php" : ">=5.5",
"league/flysystem" : "^1.0.25"
},

"require-dev": {
"phpunit/phpunit": "~4.4@dev",
"sebastian/global-state": "~1.0@dev",
"mikey179/vfsStream": "1.4.0"
},
"minimum-stability" : "dev",
"autoload" : {
"psr-4" : {
"oat\\flysystem\\Adapter\\" : "src",
"oat\\libFlysystemFilecache\\test\\" : "test"
}
}
}
Loading

0 comments on commit a0e153d

Please sign in to comment.