定制 h4cc/stack-flysystem 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

h4cc/stack-flysystem

Composer 安装命令:

composer require h4cc/stack-flysystem

包简介

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

README 文档

README

This implementation of a HttpKernelInterface is providing a REST Api and using a flysystem abstraction as storage backend.

Build Status

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.

Installation

Composer

The recommended way to install h4cc/stack-flysystem is through Composer:

{
    "require": {
        "h4cc/stack-flysystem": "@stable"
    }
}

Protip: you should browse the 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

Example usage

Start the application with PHP internal webserver.

cd web
php -S 0.0.0.0:8080 index.php

Using some curl Requests to try all the Handlers.

# Downloading a image from Google
curl -O https://www.google.de/images/srpr/logo11w.png

# List empty dir (except .gitkeep file).
curl -X GET http://localhost:8080/

# POST image.
curl -X POST --data-binary @logo11w.png http://localhost:8080/foo/logo.png

# List again.
curl -X GET http://localhost:8080/
curl -X GET http://localhost:8080/foo/

# Fetch image
curl -X GET http://localhost:8080/foo/logo.png

# Replace image
curl -X PUT --data-binary @logo11w.png http://localhost:8080/foo/logo.png

# Delete image
curl -X DELETE http://localhost:8080/foo/logo.png

# List directory
curl -X GET http://localhost:8080/foo/

统计信息

  • 总下载量: 25
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 18
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 18
  • Watchers: 3
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-09-01

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固