├── conf ├── .gitignore ├── listener.php ├── routes.php ├── providers.php ├── application.ini └── application.ini.example ├── storage └── logs │ └── .gitignore ├── tests ├── README.md ├── Bootstrap.php └── controllers │ └── IndexTest.php ├── app ├── library │ ├── helpers.php │ └── README.md ├── views │ ├── index │ │ └── index.phtml │ ├── view │ │ └── test.phtml │ └── error │ │ └── error.phtml ├── modules │ ├── Web │ │ ├── views │ │ │ ├── blade │ │ │ │ └── test.blade.php │ │ │ ├── twig │ │ │ │ └── test.twig │ │ │ ├── index │ │ │ │ ├── Test.phtml │ │ │ │ └── hello.phtml │ │ │ └── layout.phtml │ │ ├── controllers │ │ │ ├── Index.php │ │ │ ├── Blade.php │ │ │ └── Twig.php │ │ └── Bootstrap.php │ ├── Example │ │ └── controllers │ │ │ ├── User.php │ │ │ ├── Autoload.php │ │ │ ├── Index.php │ │ │ ├── Application.php │ │ │ ├── View.php │ │ │ ├── Model.php │ │ │ ├── Registry.php │ │ │ ├── Config.php │ │ │ ├── Response.php │ │ │ ├── Route.php │ │ │ └── Request.php │ ├── Api │ │ └── controllers │ │ │ └── Index.php │ ├── Admin │ │ └── controllers │ │ │ └── Index.php │ └── Console │ │ └── controllers │ │ ├── Response.php │ │ ├── Demo.php │ │ └── Daemon.php ├── actions │ └── user │ │ └── add.php ├── services │ └── User.php ├── models │ └── User.php ├── controllers │ ├── User.php │ ├── Index.php │ ├── Route.php │ ├── Ab.php │ └── Error.php ├── plugins │ ├── MysqlQueryLog.php │ ├── ModuleBootstrap.php │ └── Sample.php ├── defines │ └── Code.php └── Bootstrap.php ├── .gitignore ├── README.md ├── Makefile ├── nginx.conf ├── public └── index.php ├── server.php ├── bin ├── console └── run ├── phpunit.xml ├── LICENSE ├── composer.json └── composer.lock /conf/.gitignore: -------------------------------------------------------------------------------- 1 | application.ini -------------------------------------------------------------------------------- /storage/logs/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore -------------------------------------------------------------------------------- /tests/README.md: -------------------------------------------------------------------------------- 1 | ## 参考 2 | 3 | http://www.01happy.com/yaf-phpunit/ -------------------------------------------------------------------------------- /app/library/helpers.php: -------------------------------------------------------------------------------- 1 | "; 3 | echo "Content is: " . $content; 4 | ?> 5 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | 2 | ## 注意 3 | 4 | 本项目已迁移至:[https://github.com/1024casts/yaf-skeleton](https://github.com/1024casts/yaf-skeleton) 5 | -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | 2 | usage = you can use: make test, make clean 3 | 4 | echo: 5 | @echo $(usage) 6 | test: 7 | cd tests && ./vendor/phpunit/phpunit/phpunit 8 | -------------------------------------------------------------------------------- /app/views/view/test.phtml: -------------------------------------------------------------------------------- 1 | 2 |
3 |