diff --git a/.gitignore b/.gitignore index 6daa427..7326d16 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,5 @@ vendor node_modules .tmp_staging + +yarn-error.log diff --git a/README-CN.md b/README-CN.md index b01a257..b4dbfc9 100644 --- a/README-CN.md +++ b/README-CN.md @@ -649,16 +649,11 @@ require('runtime/build/App.20170505085503.phar'); **网站服务模式:** +快速开始一个demo: ``` -步骤 1: yarn install -步骤 2: DOMAIN=http://localhost:666 npm run demo -步骤 3: cd public && sudo php -S localhost:666 - -访问网站:http://localhost:666/index.html -访问接口:http://localhost:666/Demo/Index/hello - -demo如下: +php cli --run ``` +demo如下:
diff --git a/README.md b/README.md index 08edf3d..4b608b6 100644 --- a/README.md +++ b/README.md @@ -208,7 +208,7 @@ password = easyphp All output is json in the framework, neithor framework's core error or business logic's output, beacuse I think is friendly. -# Request param check, Support require/length/number check at present. Use as follows: +##### Request param check, Support require/length/number check at present. Use as follows: ``` $request = App::$container->getSingle('request'); $request->check('username', 'require'); @@ -646,16 +646,12 @@ Run: **Web Server Mode:** +Quick Start: ``` -step 1: yarn install -step 2: DOMAIN=http://localhost:666 npm run demo -step 3: cd public && sudo php -S localhost:666 - -visit web:http://localhost:666/index.html -visit api:http://localhost:666/Demo/Index/hello - -demo as follows: +php cli --run ``` +demo as follows: +
**Cli Mode:**
diff --git a/cli b/cli
index df19f87..f0ccb18 100644
--- a/cli
+++ b/cli
@@ -14,6 +14,8 @@
* cli模式
*
* 在php cli模式下运行框架运行框架
+ *
+ * 快速开始demo: php cli --run
*/
// php cli --env=