aheart/espresso 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

aheart/espresso

最新稳定版本:v0.2.1

Composer 安装命令:

composer require aheart/espresso

包简介

Silex wired with radioactive caffeine.

关键字:

README 文档

README

React/Espresso is a proof-of-concept microframework that integrates Silex with React/Http.

Build Status

Install

The recommended way to install react/espresso is through composer.

{
    "require": {
        "minimum-stability": "dev",
        "aheart/espresso": "0.2.*"
    }
}

Example

$app = new React\Espresso\Application();

$app->get('/', function ($request, $response) {
    return 'Hello World';
});

$app->get('/hello/{name}', function($name) use($app) {
    return 'Hello '.$app->escape($name);
});

$app->error(function (\Exception $e, $code) use ($app) {
	return 'Page not found';
});

$stack = new React\Espresso\Stack($app);
$stack->listen(1337);

Tests

To run the test suite, you need PHPUnit.

$ phpunit

License

MIT, see LICENSE.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-06-29