codex/comments

Codex Addon - Adds comments to your documents like Disqus or create your own adapter

dev-master / 2.1.x-dev 2019-04-27 07:24 UTC

This package is auto-updated.

Last update: 2024-11-26 22:58:36 UTC


README

Comments Addon

Adds comments to your documents. The addon uses adapters to provide Codex with a comment system. You can either use one of the included adapters or use a custom adapter.

Includes the following adapters:

  • Disqus

Installation

composer require codex/comments
php artisan codex:addons:enable codex/comments

Configuration

config/codex-comments.php

[
    'default' => 'disqus',
    'connections' => [
        'disqus' => [
            'driver'    => 'disqus',
            'shortcode' => 'codex-project',
        ],
    ],
]

[project]/config.php [project]/[revision]/revision.yml [project]/[revision]/[document] (as attributes)

[
    'processors' => [
        'enabled' => [
            // ...
            'comments' => true
        ],
        'comments' => [
            'enabled' => true,
            'connection' => 'disqus' 
        ]
    ]
]

Creating a custom adapter

Copyright/License

Copyright 2019 Robin Radic - MIT Licensed