jelrikvh / MollieBundle

A Symfony2 bundle for working with Mollie

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RuudkMollieBundle

A Symfony2 bundle for working with Mollie

This bundle uses AMNL\Mollie created by Arno Moonen.

Installation

Step1: Require the package with Composer

php composer.phar require ruudk/mollie-bundle

Step2: Enable the bundle

Enable the bundle in the kernel:

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...

        new Ruudk\MollieBundle\RuudkMollieBundle(),
    );
}

Step3: Configure

Finally, add the following to your config.yml

# app/config/config_prod.yml

ruudk_mollie:
    partner_id:  # Your partner ID
    profile_key: ~  # Optional profile key
    testmode:    true
	buzz_client: # Optional Buzz client, can be file_get_contents or curl

Congratulations! You're ready.

Use the API

$ideal = $this->container->get('mollie.ideal');
$minitix = $this->container->get('mollie.minitix');
$ivr = $this->container->get('mollie.ivr');

For full usage of the Mollie API see the documentation.

About

A Symfony2 bundle for working with Mollie


Languages

Language:PHP 100.0%