tdcreative / cockpit-php
A Cockpit wrapper package in php.
This package's canonical repository appears to be gone and the package has been frozen as a result. Email us for help if needed.
Installs: 417
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 1
pkg:composer/tdcreative/cockpit-php
Requires
- php: >=7.0
- guzzlehttp/guzzle: ^6.2
Requires (Dev)
- laravel/framework: >=5.3
- laravel/lumen-framework: ^5.4
- orchestra/testbench: ~3.0
- phpunit/phpunit: ^6.5
README
A Cockpit PHP wrapper for Laravel
Installation
- Pull in using composer:
composer require tdcreative/cockpit-php
- Add
Cockpit\ServiceProvider::class
to yourconfig/app.php
. - Add the Cockpit facade to your
config/app.php
:'Cockpit' => Cockpit\Facades\Cockpit::class
. - If using Laravel's default Database Caching, be sure to run
php artisan cache:table
and thenphp artisan migrate
. - Run
php artisan vendor:publish --tag=config
to copycockpit.php
to yourconfig/
directory. Add your resources to the array. - In your Cockpit CMS, register a webhook to
/webhooks/cockpit/collections/save
on thecollections.save.after
event.