This is an HTTP client based on cURL to consume Static API
Install Docker as described in the Docker section of the Start Guide.
Check the Start guide of the documentation for base initialization.
make development@install
Install the application :
make development@install
Restart the docker compose service :
make development@restart
Remove and clean docker containers :
make development@down
make test@phpunit
use CoSpirit\Flysystem\Adapter\ArStatic;
use League\Flysystem\Filesystem;
$adapter = new ArStatic($apiUrl);
$filesystem = new Filesystem($adapter);
Write
$filesystem->write($slug, file_get_contents($tmpName));
Read
$filesystem->read($slug);
Has
$filesystem->has($slug);
Delete
$filesystem->delete($slug);