5 Star 11 Fork 1

Josin / xaop

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
install 948 Bytes
一键复制 编辑 Web IDE 原始数据 按行查看 历史
liqiongfan 提交于 2018-09-19 22:32 . Add the auto install script
#!/usr/bin/env bash
# Xaop Framework
# Xaop is a AOP framework based on PHP7
# provides two modes for aop use: PHPDoc based AOP & MethodInjection AOP
# for more information, please goto : https://github.com/liqongfan/xaop
# Author:Josin https://www.supjos.cn
PHPIZE=$(command -v phpize 2>/dev/null)
if [ $? != 0 ]; then
echo 'Please add the phpize to the PATH env.'
exit 1
fi
PHPCONFIG=$(command -v php-config 2>/dev/null)
if [ $? != 0 ]; then
echo 'Please set the php-config at the PATH env.'
exit 1
fi
PHP_VERSION=$(${PHPCONFIG} --version)
if [ "${PHP_VERSION:0:1}" != 7 ]; then
echo 'Current Xaop only support PHP7.x.'
exit 1
fi
if [ -f Makefile ]; then
make clean
${PHPIZE} --clean
fi
${PHPIZE}
./configure --with-php-config=php-config --enable-xaop
make -j
make install -j
echo "Configurations!!! you have installed the Xaop extension in PHP7.x"
echo "Please restart the webserver(Nginx|Apache) to use the new features!";
C
1
https://gitee.com/josinli/xaop.git
git@gitee.com:josinli/xaop.git
josinli
xaop
xaop
master

搜索帮助

14c37bed 8189591 565d56ea 8189591