# test **Repository Path**: orh/test ## Basic Information - **Project Name**: test - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-12-07 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## 项目概述 - 产品名称:Yaf - 项目代号:yaf ## 运行环境 - PHP 7.0+ - Yaf 3.0+ ## 前置安装 1. 安装 Yaf 扩展 * [源码编译](https://github.com/laruence/yaf) * [Pecl 安装](https://ouronghuang.com/articles/46) 2. 启用 Yaf 命名空间功能 ``` // /usr/local/php/etc/php.ini [yaf] yaf.use_namespace = On yaf.use_spl_autoload = On ``` ## 基础安装 1. 克隆源代码 ``` $ git clone git@gitee.com:orh/test.git --recursive ``` 2. 生成配置 ``` $ cp conf/app.ini.example conf/app.ini ``` 3. 安装扩展包 ``` $ composer install ``` 4. 配置 Nginx 伪静态 ``` // /usr/local/nginx/conf/rewrite/yaf.conf if (!-e $request_filename) { rewrite ^/(.*) /index.php/$1 last; } ``` ## 扩展相关 | 扩展包 | 描述 | 应用 | | --- | --- | --- | | [guzzlehttp/guzzle](https://packagist.org/packages/guzzlehttp/guzzle) | HTTP 请求套件 | - |