emsa / comment
Comment module for Anax framework.
Requires
- php: >=5.6
- anax/database: ^1.1
- anax/di: ^1.0
- anax/request: ^1.0
- anax/response: ^1.0
- anax/session: ^1.0
- anax/textfilter: ^1.0
- anax/view: ^1.0
- lrc-se/anax-repository: ^1.1
This package is not auto-updated.
Last update: 2024-11-07 10:11:50 UTC
README
Anax comment module.
Requirements
In order to use this module you need an Anax framework environment. Some of the modules required are not publically available, so it is not possible to use a default Anax setup. In order to try out the below steps, you can use the test branch of the author's own Anax repo:
git clone https://github.com/emsa16/anax.git -b comment-test
cd anax
composer install
For the project to work the database also needs to be setup:
mv config/database_default.php config/database.php
Then change dsn, username and password within database.php
to match your environment.
A User table also needs to be added to the database manually, sql/ddl/user_mysql_default.sql
contains the necessary DDL for that.
Installation
Install the module with the following command:
composer require emsa/comment
Setup in Anax environment
Run the following command to automatically setup the module in your Anax installation (assumes a normal Anax project structure):
make install-module module=emsa/comment
The setup adds example pages and views that can be reached in the browser via the path /comment
.
Finally, a Comment table needs to be manually added to the database, sql/ddl/comment_mysql_default.sql
contains the necessary DDL for that.
The comment functionality can now be demoed under /comment/1
and /comment/2
.
Usage
Short examples on how to use the module comment.
License
This software carries a MIT license.
.
..: Copyright (c) 2018 Emil Sandberg (emil.hietanen@gmail.com)