raruto/cockpit-sample-addon

Sample addon for Cockpit CMS

0.0.1 2021-02-15 14:58 UTC

This package is auto-updated.

Last update: 2024-11-15 23:50:41 UTC


README

Sample addon for Cockpit CMS

Features

  • Add a sample /api/test Rest API endpoint

Installation

Manual

Download latest release and extract to COCKPIT_PATH/addons/SampleAddon directory

Git

git clone https://github.com/Raruto/cockpit-sample-addon.git ./addons/SampleAddon

Cockpit CLI

php ./cp install/addon --name SampleAddon --url https://github.com/Raruto/cockpit-sample-addon.git

Composer

  1. Make sure path to cockpit addons is defined in your projects' composer.json file:

    {
        "name": "MY_PROJECT",
        "extra": {
            "installer-paths": {
                "cockpit/addons/{$name}": ["type:cockpit-module"]
            }
        }
    }
  2. In your project root run:

    composer require raruto/cockpit-sample-addon

Related projects: cockpit-blog

Compatibile with: Cockpit CMS