dev-master
9999999-dev https://github.com/vampireJSV/cockpit_clientPHP client api connect to cockpit server
MIT
The Requires
- php >=5.4.0
- guzzlehttp/guzzle ~5.0
by Josevi Canet
cockpit client_api
PHP client api connect to cockpit server
:package_description, (*2)
Add the package-skeleton package to your composer.json
file., (*3)
``` json { "require": { "creativados/cockpit": "@dev" } }, (*4)
Or via the command line in the root of your Laravel installation. ``` bash $ composer require "creativados/cockpit:*"
``` php require DIR . '/vendor/autoload.php';, (*5)
$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 ) ;, (*6)
Testing ------- ``` bash $ phpunit
Please see CONTRIBUTING for details., (*7)
The MIT License (MIT). Please see License File for more information., (*8)
PHP client api connect to cockpit server
MIT
cockpit client_api