dekalee/cdn77-bundle

A bundle to use the lib to communicate with the cdn77 api

Installs: 14 157

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 3

Forks: 0

Open Issues: 0

Type:symfony-bundle

v1.5.2 2019-01-29 14:23 UTC

This package is auto-updated.

Last update: 2024-04-29 03:41:04 UTC


README

Scrutinizer Code Quality Latest Stable Version Total Downloads License

This symfony bundle wraps the usage of the library Cdn77

Installation

Use composer to install this bundle :

    composer require dekalee/cdn77-bundle

Activate it in the AppKernel.php file:

    new Dekalee\Cdn77Bundle\DekaleeCdn77Bundle(),

Configuration

In the config.yml file, you should set at least :

    dekalee_cdn77:
        login: %dekalee_cnd77_login%
        password: %dekalee_cnd77_password%

If you want to override the api urls used, you can do it for each of them :

    dekalee_cdn77:
        list: Your url
        create: Your url
        purge: Your url
        purge_all: Your url
        resource_log: Your url
        delete_resource: Your url

Usage

To use a query in your project, you can call (from a ContainerAwareInterface class) :

    $this->container->get('dekalee_cdn77.query.purge_all')->execute();

Each action will have it's own service.

Debug

In order to see some usefull debug information in the symfony profiler, you can install the eightpoints/guzzle-bundle.