mikebirch/anticus-app
最新稳定版本:0.1.7
Composer 安装命令:
composer create-project mikebirch/anticus-app
包简介
Anticus app skeleton for simple websites
README 文档
README
A skeleton for building simple websites with the Anticus PHP framework
This skeleton includes a blog and pages. Pages can be organised into a flat hierachy and the URLs can reflect this. For example, if you have an about section on the website, the “About” page could have child pages like “Team” and “Story”. The corresponding urls for these pages would be:
- /about
- /about/team
- /about/story
This structure will result in navigation menus being generated for child and sibling pages.
Breadcrumbs are also generated from the URL.
Of course, if these menus do not suit, they can be removed from the twig template files.
If your website needs a CMS, Anticus can be used with the headless CMS Directus which connects to your database and provides an intuitive admin app for managing its content.
Installation
composer create-project --prefer-dist mikebirch/anticus-app
To install into a directory e.g. /name-of-app/:
composer create-project --prefer-dist mikebirch/anticus-app name-of-app
Create a config file. Rename Config/config_example.php to Config/config.php
For local development create Config/config_local.php and overwrite $config
For example:
$config['environment'] = 'dev';
$config['database'] = [
'type' => 'mysql',
'name' => 'dbname',
'host' => 'mysql',
'username' => 'dbuser',
'password' => '123',
'charset' => 'utf8mb4'
];
统计信息
- 总下载量: 6
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-07-27