- URL: https://www.laruence.com/en/2012/07/06/2649.html
- Please include attribution when republishing.
Quite a few friends who are interested in Yaf have consulted me, via QQ or Email, on some general questions.
After answering so many, I've listed here some commonly used resources for learning/using Yaf, to make it easier for those who come after to look them up.
Documentation
Yaf's Chinese documentation is here: Yaf Chinese Docs, although the Chinese docs currently mainly target the 2.1.9 version.
Yaf's English documentation is here, Yaf doc
However, because energy is limited, the English documentation is not yet rich enough. If you have the time and interest, I strongly welcome you to help me improve the docs together. The docs are now hosted on github (php-yaf-doc); if you have any changes, just send me a pull request.
Community
Here is a Yaf discussion forum sponsored by Zhang Yang: Yaf forum
There's also a QQ group, though it requires identity verification: 5134185
Besides that, there's also a Yaf group created by an enthusiastic overseas developer: Yaf Google Group.
Scripts
On github, Yaf provides some small tools.
The first is a code generation tool: Yaf Codes Generator
It can help you automatically generate a simple Yaf example:
./yaf_cg application_name #will generate the code directory under the output dir
The second is a script used to generate a PHP file containing the signatures of all of Yaf's classes, for IDE auto-completion hints:
Yaf classes signatures generator. Of course, there's also a pre-generated one here (if you want to use the namespaced version of Yaf locally, you'll need to run this script yourself to generate it): Yaf classes signature
Examples
First, a simple example on Code Google: Google Codes
Then on Github there are quite a few fairly complete, real-world examples:
1. Yaf Base Application
2. Yaf
3. Yaf PHP Example
Others
The Windows dll for Yaf is maintained and released by 大草原, and can be found for download here: Google Codes
Be First to Comment