macOS
brew install boost
Ubuntu
apt-get install libboost-all-dev
CentOS
yum install boost boost-devel
git clone https://gitee.com/laiwi/yasd.gitcd yasd
phpize --clean && \phpize && \./configure --with-php-config=/www/server/php/80/bin/php-config && \make clean && \make && \make install
注意
--with-php-config=/www/server/php/80/bin/php-config
为PHP版本位置配置文件
设置 php.ini 文件
zend_extension=yasd
查看扩展信息
php --ri yasd
IDE 模式调试
zend_extension=yasdyasd.debug_mode=remoteyasd.remote_host=127.0.0.1yasd.remote_port=9000
cmd 模式调试
zend_extension=yasdyasd.debug_mode=cmd
