From 4dc4a7946330b8c2acd704174ccc009612586d6b Mon Sep 17 00:00:00 2001 From: Jiapeng Fan Date: Tue, 8 May 2018 14:26:55 +0800 Subject: [PATCH] Update README.md Increase information --- README.md | 68 +++++++++++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 58 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 3f21cbd..6898323 100644 --- a/README.md +++ b/README.md @@ -1,36 +1,75 @@ -# Asf - API Services Framework +# Asf - API Services Framework +[![Build Status](https://travis-ci.org/yulonghu/asf.svg?branch=master)](https://travis-ci.org/yulonghu/asf) This is a PHP framework written in C. It is simple, fast, standards, security. ## Install - ### Requirements - PHP 7.0 + - GCC 4.4.0+ (Recommended GCC 4.8+) ### DownLoad - ``` git clone https://github.com/yulonghu/asf.git ``` -### Linux/Unix/Mac - +### Compile for Linux/Unix/Mac ``` $ /path/to/phpize $ ./configure --with-php-config=/path/to/php-config $ make && make install ``` -## Documentation +### Documentation -### Need Help http://www.box3.cn/phpasf/index.html -### Start with the Hello Wrold +## Get Started + +### Use tools to create a new project +``` +/path/asf/tools/asf_project project_name +``` +#### Layout +``` ++ public + | - index.php ++ config + | - config.php ++ library ++ modules + | - Bootstrap.php + | - Constants.php + + api + |+ services + |- Index.php // Default service + |+ logics + |+ daos +``` + +### config/config.php +```php + array( + 'root_path' => realpath(dirname(__FILE__)), + ) +); + +return $configs; +``` +### public/index.php ```php run(); +``` + +### Default service +```php +