Skip to content
This repository has been archived by the owner on Jul 2, 2021. It is now read-only.
/ inwx-api-bundle Public archive

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

License

Notifications You must be signed in to change notification settings

SebTM/inwx-api-bundle

Folders and files

NameName
Last commit message
Last commit date
Dec 22, 2019
Dec 22, 2019
Dec 22, 2019
Dec 22, 2019
Apr 9, 2019
Apr 8, 2018
Apr 2, 2018
Apr 2, 2018
Dec 22, 2019
Dec 22, 2019
Jul 23, 2018

Repository files navigation

INWX Service Provider for Symfony

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": "~1.0"
    }
}

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

class AppKernel extends Kernel
{
    public function registerBundles(): void
    {
        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:
    debug: false
    environment: "development"
    json: true
    language: "en"
    username: "username"
    password: "password"

Supported environments: "production", "development" 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

It provides an additional function called "loginWrapper()" (BC >=1.0.0: login will not overwritten anymore!) for using the login data from configuration.

Links