Sample addon for Cockpit CMS
- Add a sample
/api/test
Rest API endpoint
Download latest release and extract to COCKPIT_PATH/addons/SampleAddon
directory
git clone https://github.com/Raruto/cockpit-sample-addon.git ./addons/SampleAddon
php ./cp install/addon --name SampleAddon --url https://github.com/Raruto/cockpit-sample-addon.git
-
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"] } } }
-
In your project root run:
composer require raruto/cockpit-sample-addon
Related projects: cockpit-blog