PHPackages                             robertboloc/rbcomment - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. robertboloc/rbcomment

ActiveModule[Utility &amp; Helpers](/categories/utility)

robertboloc/rbcomment
=====================

Comments for Zend Framework 2 applications

v2.0.0(9y ago)153172MITPHPPHP ^5.6 || ^7.0

Since Oct 24Pushed 9y ago3 watchersCompare

[ Source](https://github.com/robertboloc/RbComment)[ Packagist](https://packagist.org/packages/robertboloc/rbcomment)[ Docs](https://github.com/robertboloc/RbComment)[ RSS](/packages/robertboloc-rbcomment/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (7)Dependencies (21)Versions (10)Used By (0)

RbComment
=========

[](#rbcomment)

[![Build Status](https://camo.githubusercontent.com/2e1ce1a3c8612c837920ac5356f70ac18d64308032f1462998d7acaf48a4163b/68747470733a2f2f7472617669732d63692e6f72672f726f62657274626f6c6f632f5262436f6d6d656e742e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/robertboloc/RbComment)[![Scrutinizer Quality Score](https://camo.githubusercontent.com/157bda5e9bed5bb8cb51c491f6c7f4b8ac1f3a6acea0e6cda35c672a318592cc/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f726f62657274626f6c6f632f5262436f6d6d656e742f6261646765732f7175616c6974792d73636f72652e706e673f733d32613932383265343865616364363365366362393336366165353439316639343039666364616563)](https://scrutinizer-ci.com/g/robertboloc/RbComment/)[![Code Coverage](https://camo.githubusercontent.com/5c9af4053e7150281a37551bdaac10729fb35466e191dad9ff55cb30b8064246/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f726f62657274626f6c6f632f5262436f6d6d656e742f6261646765732f636f7665726167652e706e673f733d37643639323562346438636232616464323539636262613765303538333833323362636563653363)](https://scrutinizer-ci.com/g/robertboloc/RbComment/)[![Total Downloads](https://camo.githubusercontent.com/408b9a74fbfb0f7ddea7218563980a20ce679b6e5a27af0817d67a0c8fff6eb8/68747470733a2f2f706f7365722e707567782e6f72672f726f62657274626f6c6f632f7262636f6d6d656e742f646f776e6c6f6164732e706e67)](https://packagist.org/packages/robertboloc/rbcomment)[![Latest Stable Version](https://camo.githubusercontent.com/b2ece7611205c4ed0673ffc039bba72be0fd428b2b0719b644e656659abcf664/68747470733a2f2f706f7365722e707567782e6f72672f726f62657274626f6c6f632f7262636f6d6d656e742f762f737461626c652e706e67)](https://packagist.org/packages/robertboloc/rbcomment)[![License](https://camo.githubusercontent.com/b23a5fe2076b557a4f17642b1a1e6df6617e6132d76f8b2b8df12479b4cfb8f3/68747470733a2f2f706f7365722e707567782e6f72672f726f62657274626f6c6f632f7262636f6d6d656e742f6c6963656e73652e706e67)](https://packagist.org/packages/robertboloc/rbcomment)

Zend Framework 2 module for drop-in, self-hosted comments, with email notifications, Akismet, ZfcUser and Gravatar integration.

Table of contents
-----------------

[](#table-of-contents)

- [Installation](#installation)
- [Usage](#usage)
- [Themes](#themes)
- [Configuration](#configuration)
- [CLI](#cli)
- [Roadmap](#roadmap)
- [Notes](#notes)

Installation
------------

[](#installation)

1. Add the module key to your `composer.json` file

```
    {
        "require": {
            "robertboloc/rbcomment": "^2.0"
        }
    }
```

2. Run `composer update`
3. Import the schema from `data/schema.sql` into your database.
4. Add the new module to your application's modules list in `config/application.config.php`

```
    'modules' => array(
        'Application',
        'RbComment', // Add this
    ),
```

Usage
-----

[](#usage)

In your views use the `rbComment` helper to display the count, the list and a form for adding new comments. Invoke it where you want your comments box to appear. Simple isn't it? This helper can be used in any view.

```

```

The `$theme` parameter is used to specify the theme of the comments box (if none is specified `default` is used).

Currently, the module is designed to allow only one comment box per page, as it uses the page uri to identify a thread.

Themes
------

[](#themes)

The module comes with 2 themes for now. To implement new ones create a new partial using as base the existing ones.

Use your new theme calling `$this->rbComment('yourpartial')`

The current themes (and possible values of the `$theme` parameter if not using a custom partial) are :

#### default

[](#default)

Basic theme with no external dependencies. Contains the minimum styling to make it look decent.

```

```

[![uikit](preview/default.png)](preview/default.png)

#### uikit

[](#uikit)

This theme requires the [UIkit](http://www.getuikit.com/) CSS framework. Use this theme if your project is based on the UIkit framework.

```
