2017 © Pedro Peláez
 

library stack-flysystem

A Stack HttpKernel for Flysystem filesystems as a single purpose application.

image

h4cc/stack-flysystem

A Stack HttpKernel for Flysystem filesystems as a single purpose application.

  • Saturday, November 15, 2014
  • by h4cc
  • Repository
  • 5 Watchers
  • 17 Stars
  • 12 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

h4cc/StackFlysystem

This implementation of a HttpKernelInterface is providing a REST Api and using a flysystem abstraction as storage backend., (*1)

Build Status, (*2)

A idea inspired by StackPHP. Next to middlewares providing extra functionality for the HttpKernelInterface, there might also be some single purpose applications like this one. These tiny apps can be used to construct larger systems with ease, like middlewares do., (*3)

Installation

Composer

The recommended way to install h4cc/stack-flysystem is through Composer:, (*4)

``` json { "require": { "h4cc/stack-flysystem": "@stable" } }, (*5)


**Protip:** you should browse the [`h4cc/stack-flysystem`](https://packagist.org/packages/h4cc/stack-flysystem) page to choose a stable version to use, avoid the `@stable` meta constraint. ### Development and Standalone Clone this repo and run composer:

git clone git@github.com:h4cc/stack-flysystem.git cd stack-flysystem curl -sS https://getcomposer.org/installer | php php composer.phar install, (*6)


## Example usage Start the application with PHP internal webserver.

cd web php -S 0.0.0.0:8080 index.php, (*7)


Using some curl Requests to try all the Handlers.

Downloading a image from Google

curl -O https://www.google.de/images/srpr/logo11w.png, (*8)

List empty dir (except .gitkeep file).

curl -X GET http://localhost:8080/, (*9)

POST image.

curl -X POST --data-binary @logo11w.png http://localhost:8080/foo/logo.png, (*10)

List again.

curl -X GET http://localhost:8080/ curl -X GET http://localhost:8080/foo/, (*11)

Fetch image

curl -X GET http://localhost:8080/foo/logo.png, (*12)

Replace image

curl -X PUT --data-binary @logo11w.png http://localhost:8080/foo/logo.png, (*13)

Delete image

curl -X DELETE http://localhost:8080/foo/logo.png, (*14)

List directory

curl -X GET http://localhost:8080/foo/ ```, (*15)

The Versions

15/11 2014

dev-master

9999999-dev

A Stack HttpKernel for Flysystem filesystems as a single purpose application.

  Sources   Download

MIT

The Requires

 

The Development Requires

stack rest http files

02/09 2014

v1.0.0

1.0.0.0

A Stack HttpKernel for Flysystem filesystems as a single purpose application.

  Sources   Download

MIT

The Requires

 

The Development Requires

stack rest http files