dopee/transip-api-bundle

TransIp API bundle

1.2.9 2017-05-08 15:23 UTC

This package is auto-updated.

Last update: 2024-06-09 17:43:16 UTC


README

A Symfony2 bundle for the TransIP API

Installation

Run the following command

composer require dopee/transip-api-bundle

Register bundle in AppKernel

#app/AppKernel.php
$bundles = array(
  ...
  new Dopee\TransipApiBundle\TransipApiBundle()
);

Configuration

#app/config/config.yml
transip_api:
    login       : "%transip_login%"
    private_key : "%transip_privatekey%"
    read_only   : "%transip_readonly%"
    endpoint    : "%transip_endpoint%"
#parameters.yml
parameters:
     transip_login:      yourusername
     transip_privatekey: "yourkey"
     transip_readonly:   true
     transip_endpoint:   'https://api.transip.nl'

Info: privatekey is a multiline key from transip, just remove the breaks to create a one-liner