承接 rawebone/wilson 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

rawebone/wilson

最新稳定版本:1.0.0-alpha3

Composer 安装命令:

composer require --dev rawebone/wilson

包简介

A PHP micro framework designed for simplicity and performance

README 文档

README

Author Latest Version Software License Build Status HHVM Status Coverage Status Quality Score Total Downloads SensioLabs Insight

Wilson is a PHP micro framework designed for simplicity and performance. It main features are:

  • Annotation based routing
  • Middleware
  • Service Location
  • HTTP Request/Response abstraction
  • HTTP Caching
  • Unit Testing

Its design is based around the Slim and Symfony frameworks, combining elements of both with the goal of creating system which is fast, correct, well documented, and simple.

Usage

At a glance, an application in the framework looks like this:

<?php

// File: public/index.php

require_once "/path/to/vendor/autoload.php";

$api = new Wilson\Api();
$api->resources = array("My\Restful\ResourceA");
$api->dispatch();
<?php

// File: src/My/Restful/ResourceA.php

namespace My\Restful;

class ResourceA
{
    /**
     * @route GET /resource-a/
     */
    function getCollection($request, $response, $services)
    {
        $response->json(array("a", "b", "c"));
    }
    
    /**
     * @route GET /resource-a/{file}.md
     * @where file [a-z]+
     */
    function getRecord($request, $response, $services)
    {
        $response->setBody(get_file($request->getParam("file")));
        $response->setHeader("Content-Type", "text/plain");
    }
}

Look at the wiki for a proper guide through the functionality.

Credits

This framework is a patchwork consisting of the ideas and pieces of code from numerous other projects:

  • Josh Lockhart and other contributors to Slim Framework
  • Fabien Potencier and other contributors to Symfony
  • Matthew Weier O'Phinney and other contributors to phly/http

License

The code is under the MIT license. Third party code licences:

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-11-30

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固