sebtm/inwx-api-bundle

A Symfony bundle for using "inwx/php-client".

v0.2.0 2018-07-23 15:43 UTC

README

Build Status Coverage Status Total Downloads GitHub license

A Symfony bundle for including the INWX PHP-Client.

Installation

The INWX bundle can be installed via Composer by requiring the sebtm/inwx-api-bundle package in your project's composer.json:

{
    "require": {
        "sebtm/inwx-api-bundle": "~0.2"
    }
}

and adding an instance of SebTM\INWX\InwxApiBundle to your application's kernel:

class AppKernel extends Kernel
{
    public function registerBundles()
    {
        return [
            ...
            new \SebTM\INWX\InwxApiBundle(),
        ];
    }
    ...
}

(This is NOT needed for Symfony-Flex while using recipes!)

Configuration

Sample YML Configuration

The sample configuration which can be placed in app/config/config.yml file.

inwx_api:
    environment: "production"
    username: "username"
    password: "password"
    language: "en"
    debug: false

Supported environments: "production", "test" Supported languages: see documentation of INWX PHP-Client

Usage

This bundle exposes an instance of the SebTM\INWX\Domrobot object:

Service | Instance Of
--- | ---
inwx_api | SebTM\INWX\Domrobot

Links