PHPackages                             nicklas/comment - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. nicklas/comment

ActiveLibrary[Framework](/categories/framework)

nicklas/comment
===============

Anax comment module.

1.0.8(8y ago)0971[1 PRs](https://github.com/Nicklas766/Comment/pulls)MITPHPPHP &gt;=5.6

Since Sep 29Pushed 8y agoCompare

[ Source](https://github.com/Nicklas766/Comment)[ Packagist](https://packagist.org/packages/nicklas/comment)[ Docs](https://dbwebb.se/anax)[ RSS](/packages/nicklas-comment/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (12)Versions (10)Used By (0)

[![Build Status](https://camo.githubusercontent.com/3b7592fe235fd2fe4ac1aa705050a81b41395efe177bea43e1236a5e53f1564d/68747470733a2f2f7472617669732d63692e6f72672f4e69636b6c61733736362f436f6d6d656e742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Nicklas766/Comment)[![CircleCI](https://camo.githubusercontent.com/18b8c77009938034a7c9b0087756a7ffc9ad5768d9514f17518988795b2e2cdf/68747470733a2f2f636972636c6563692e636f6d2f67682f4e69636b6c61733736362f436f6d6d656e742e7376673f7374796c653d737667)](https://circleci.com/gh/Nicklas766/Comment)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/a5c05622d1abef9870b5305d397956c7968b828d64b63b11fe95394e6054ee9c/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4e69636b6c61733736362f436f6d6d656e742f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/Nicklas766/Comment/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/f7cce2da189bb56a67dc3a203ee1cecd433366ef593ef3875c890f1a74b20359/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4e69636b6c61733736362f436f6d6d656e742f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/Nicklas766/Comment/?branch=master)[![Build Status](https://camo.githubusercontent.com/88da474c2bc42c157c4c925e00515df7d1671749ea8da858fa0c2522d4021635/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4e69636b6c61733736362f436f6d6d656e742f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/Nicklas766/Comment/build-status/master)[![SensioLabsInsight](https://camo.githubusercontent.com/ccfb71736894244e6ebc571b9a9a4b8ab577276a2bfb4a12ffb50417fd3989ad/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f62356330343162652d313262612d343565382d626435302d3762353239323838393565332f6d696e692e706e67)](https://insight.sensiolabs.com/projects/b5c041be-12ba-45e8-bd50-7b52928895e3)[![Gitter](https://camo.githubusercontent.com/7024bd8fae2d13d413ed1576cee1710f3b4420a9c3e4631e7977a9bcb682a6d1/68747470733a2f2f6261646765732e6769747465722e696d2f4e69636b6c61733736362f436f6d6d656e742e737667)](https://gitter.im/Nicklas766/Comment?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)

Comment Module for Anax
=======================

[](#comment-module-for-anax)

This is a comment module for the Anax framework. This README.md assumes you have a decent knowledge of the Anax-framework.

Why use this module?
--------------------

[](#why-use-this-module)

Well, maybe you are a front-end developer who's building an anax app and can't really bother with the backend stuff. Well this is prebuilt for you, so you can style the default views and use data from modules to create new ideas and pages with the data.

We've added some jquery in the views, so you can get some Ajax in the questions views, but it's optional to use.

What does it contain?
---------------------

[](#what-does-it-contain)

1. Login System (users,admins)
2. Questions and Answers System.
3. Comment System
4. Prebuilt HTMLForms

Setup
-----

[](#setup)

Let's get started. You can use composer to install the package, then we will integrate the module with your Anax.

### Install with composer

[](#install-with-composer)

```
composer require nicklas/comment

```

### Router files

[](#router-files)

1. Copy the `config/route/comment` catalog and paste it in your own Anax installation.
2. Copy code in the `config/route.php` and paste it in your own `config/route.php`.

### DI-container

[](#di-container)

Copy everything that lies in the `config/di.php` and paste it in your own DI-container. Also make sure that you add any dependency that you might not added already.

Also don't be surprised that we're adding a `renderpage` class, since this module uses it's own renderpage functions, therefore we need to add them in our DI.

### Database

[](#database)

Use the SQL-code in the `src/Comment/sql/setup.sql` to setup your database.

You'll need a `config/database.php` file. In other words, you'll need a normal setup for [anax\\database](https://github.com/canax/database). If you already have a file, then you can use that one.

### Views

[](#views)

In `/views` you'll find the views for the module. You can copy them and paste it in own Anax installation. Then you can style them for your own website.

### PageRender

[](#pagerender)

I recommend that you copy the `src/page` into your own and that to the `commentFrontController`in your DI, so you have better control of this part.

### Add more?

[](#add-more)

You can use `use class()` if you want to make your own Pagerenders with the modules.

License
-------

[](#license)

This software carries a MIT license.

```
 .
..:  Copyright (c) 2017 Nicklas Envall (Nicklas766@live.se)

```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~3 days

Total

9

Last Release

3124d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/930dd25ef25fdbd296cc02fe09c429f58da22b14bc47e5ac6ada9184fdbdb7cb?d=identicon)[Nicklas766](/maintainers/Nicklas766)

---

Top Contributors

[![Nicklas766](https://avatars.githubusercontent.com/u/23198321?v=4)](https://github.com/Nicklas766 "Nicklas766 (41 commits)")

---

Tags

frameworkmicromvcboilerplateeducation

### Embed Badge

![Health badge](/badges/nicklas-comment/health.svg)

```
[![Health](https://phpackages.com/badges/nicklas-comment/health.svg)](https://phpackages.com/packages/nicklas-comment)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
