skayo /
使用 F3(Fat-Free Framework)创建 Web 应用的样板
1.9
2021-04-06 19:12 UTC
Requires
- bcosca/fatfree-core: ^3.7
- vlucas/phpdotenv: ^5.3
Requires (Dev)
- roave/security-advisories: dev-latest
README
这是一个简单的用于使用Fat-Free Framework的项目样板。
入门
使用 composer create-project
将 my-project
替换为您的项目名称
composer create-project skayo/f3-boilerplate my-project
使用 composer install
克隆此仓库并运行以下命令
composer install
然后将 .env.example
复制到 .env
目录结构
目录结构深受 Laravel/Lumen 启发,可以根据您的需要进行定制
.
├── .env # environment variables
├── app/
│ ├── Controllers/
│ ├── Models/
│ └── Helpers/ # helper functions and classes
├── config/
│ ├── bootstrap.php # initializes the whole application
│ ├── globals.php # framework variables and other globals
│ └── routes.php # routes, maps and redirects
├── public/ # public web root
│ └── index.php # entry point of the whole application
├── resources/
│ ├── langs/ # localization files
│ └── views/ # views/layouts
├── storage/ # storage for the application (needs chmod 0777)
│ ├── cache/
│ ├── logs/
│ ├── tmp/ # temporary files
│ └── uploads/
└── lib/ # composer install directory