creativados/cockpit

PHP client api connect to cockpit server

dev-master 2018-03-09 12:35 UTC

This package is not auto-updated.

Last update: 2024-04-23 15:17:03 UTC


README

Build Status Total Downloads Latest Stable Version License

: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.