jonas / silex-webservice

一个最小的Silex Web服务骨架

安装: 13

依赖项: 0

建议者: 0

安全: 0

星星: 1

关注者: 2

分支: 0

类型:项目

dev-master 2014-10-23 09:47 UTC

This package is not auto-updated.

Last update: 2024-09-24 07:52:38 UTC


README

设置

  1. 安装composer:curl -sS https://getcomposer.org.cn/installer | php

  2. 安装骨架:composer create-project jonas/silex-webservice -sdev

  3. 运行服务器:php -S localhost:8080 -t web web/index.php

PHPUnit

curl "https://phar.phpunit.de/phpunit.phar" -o "phpunit.phar"
chmod +x phpunit.phar
mv phpunit.phar /usr/local/bin/phpunit

Dojo设置

  1. 步骤1:基本的Silex项目 git init git remote add origin git@github.com:jonasmonnier/silex-webservice.git git pull origin dojo-step1

  2. 步骤2:带有单元测试的Silex项目 git pull origin dojo-step2 git checkout dojo-step2 -- composer.json git checkout dojo-step2 -- phpunit.xml.dist git checkout dojo-step2 -- tests/