creativados / cockpit
PHP client api connect to cockpit server
dev-master
2018-03-09 12:35 UTC
Requires
- php: >=5.4.0
- guzzlehttp/guzzle: ~5.0
This package is not auto-updated.
Last update: 2025-03-11 19:31:30 UTC
README
:package_description
Installation
Add the package-skeleton package to your composer.json
file.
{ "require": { "creativados/cockpit": "@dev" } }
Or via the command line in the root of your Laravel installation.
$ composer require "creativados/cockpit:*"
Usage
require __DIR__ . '/vendor/autoload.php'; $server = new Creativados\Cockpit_client\api( "http://domain.tld", "TOKEN_ID", "LANGUAGE" ); $server->getCockpit( MODULE_NAME, FUNCTION_NAME, ARRAY_PARAMETERS ); $server->getRegions( REGION_NAME ); $server->getGallery( GALLERY_NAME,BOOL_ADD_DOMAIN ) ; $server->getGallery( GALLERY_NAME,BOOL_ADD_DOMAIN ) ; $server->getCollection( COLLECTION_NAME, ARRAY_FILTERS, SORT_OPTIONS, NUMBER_LIMIT_ELEMENTS, NUMBER_SKIP_ELEMENTS ) ; $server->getCollectionMultilang( COLLECTION_NAME, ARRAY_FILTERS, SORT_OPTIONS, NUMBER_LIMIT_ELEMENTS, NUMBER_SKIP_ELEMENTS ) ;
Testing
$ phpunit
Contributing
Please see CONTRIBUTING for details.
Credits
License
The MIT License (MIT). Please see License File for more information.