YAF, full name yet another framework, is a C language written PHP framework, is a PHP extension in the form of a PHP development framework, compared to the general PHP framework, it is faster. It provides bootstrap, routing, distribution, views, plugins, and is a full-featured PHP framework. The biggest feature is simple, efficient, fast, already in Baidu and Sina Weibo after the big platform verification.
1. YAF is actually a PHP official extension, we can download directly on the PHP website. Http://pecl.php.NET/package/yaf
2. Git Repository Https://github.com/laruence/php-yaf
3. YAF Official Document: http://www.laruence.com/manual/
Download:
1 |
wget http: //pecl.php.net/get/yaf-2.3.3.tgz |
Unzip and enter the directory:
1 |
tar -zxvf yaf-2.3.3* && cd yaf-2.3.3 |
Pretreatment:
To perform configuration information and install:
1 |
./configure --with-php-config=/usr/bin/php-config && make && make test |
To view the path of an extended installation
Configuring PHP.ini Support YAF Extensions
vim/etc/php. INI Join [yaf]yaf. Environ = productyaf. Library = Nullyaf0yaf1 Yaf "" Yaf 5 Yaf 0 Yaf 0 extension=yaf.so//Key steps
Restart Apache and PHP
1 |
service php-fpm restart |
1 |
systemctl restart httpd |
PHP extension YAF by configuration