dafiti/datajet-service-provider

A Silex Service Provider for Datajet

1.2.0 2016-02-26 18:26 UTC

This package is not auto-updated.

Last update: 2021-06-12 01:13:56 UTC


README

Build Status Scrutinizer Code Quality Code Coverage HHVM Latest Stable Version Total Downloads License

A Silex Service Provider for Datajet

Instalation

The package is available on Packagist. Autoloading is PSR-4 compatible.

{
    "require": {
        "dafiti/datajet-service-provider": "dev-master"
    }
}

Usage

use Silex\Application;
use Dafiti\Silex\SolariumServiceProvider;

$app = new Application();
$app->register(new DatajetServiceProvider(), [
    'datajet.config' => [
      'hawk' => [
        'import_key' => KEY_IMPORT,
        'search_key' => KEY_SEARCH,
      ],
    ],
]);

$id = 1;
$result = $app['datajet']->delete($id);

Please see DatajetClient docs: https://github.com/dafiti/datajet-client/

License

MIT License