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.
0.0.9
2017-12-17 00:33 UTC
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.