almrooth/comment
Composer 安装命令:
composer require almrooth/comment
包简介
Comment module for Anax.
README 文档
README
This is a comment module for use with Anax. The module contains provides login/logout and CRUD functionality for users, admins and comments.
Setup
Install with composer
composer require almrooth/comment
Database
The comment module uses a MYSQL-database for storage. Make sure you have one installed.
Make sure you have a configuration file for your database. There is a sample to use in vendor/almrooth/comment/config/database.php.
To setup all tables for use with the module execute the code in vendor/almrooth/comment/sql/setup.sql.
Router files
Copy the router files to your config/route.
rsync -av vendor/almrooth/comment/config/route/* config/route/
Inlcude the routes in your router configuration config/route.php. There is a sample to use in vendor/almrooth/comment/config/route.php.
DI services
Add the required services to DI, config/di.php. There is a sample to use in vendor/almrooth/comment/config/di.php.
Make sure that all services that are in the sample file are added to your DI.
Views
The comment module ships with its own default views. Copy them to your view directory.
rsync -av vendor/almrooth/comment/view/* view/
License
This software carries a MIT license.
.
..: Copyright (c) 2017 Tobias Almroth (almrooth@gmail.com)
统计信息
- 总下载量: 46
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-10-08