php7上面安装yaf框架
发表于:2019-10-11 16:50:42浏览:56次
特点
看官方网文档 http://www.laruence.com/manual/index.html
安装
下载安装包
https://pecl.php.net/package/yaf
安装命令
# 可能需要的依赖
sudo apt-get install autoconf
sudo apt-get install libtool
wget https://pecl.php.net/get/yaf-3.0.8.tgz
tar zxvf yaf-3.0.8
cd yaf-3.0.8.tgz
phpize
sudo ./configure --with-php-config=/usr/local/php/bin/php-config
sudo make
sudo make install
配置php.ini
sudo vim /usr/local/php/etc/conf.d/yaf.ini
写入如下内容
[yaf]
extension=yaf.so
# 如果有全局类库,需要写入library路径
[yaf_library]
yaf.library="/home/app/global_app/library"

