chriskapp/blog
v0.1.5
2024-09-07 22:42 UTC
Requires
- php: >=8.1
- ext-dom: *
- psx/framework: ^7.0
Requires (Dev)
- vimeo/psalm: ^5.0
README
简单的博客引擎
安装
该博客引擎使用PSX进行安装,你只需要安装此包
composer require chriskapp/blog
配置
然后你需要在configuration.php
文件中添加以下配置
return [ // the blog source xml file containing all posts 'blog_file' => __DIR__ . '/resources/blog.xml', 'blog_title' => 'chrisk.app', // the default author of the blog posts 'blog_author_name' => 'chriskapp', 'blog_author_uri' => 'https://chrisk.app/', // the blog template files 'blog_template_index' => 'blog.php', 'blog_template_detail' => 'blog/detail.php', // ... ];
并且你需要将container.php
文件添加到容器构建器中
return \PSX\Framework\Dependency\ContainerBuilder::build( __DIR__, true, __DIR__ . '/vendor/psx/framework/resources/container.php', __DIR__ . '/vendor/chriskapp/blog/resources/container.php', __DIR__ . '/resources/container.php', );