2017 © Pedro Peláez
 

library revolut-php-bundle

Symfony PHP Bundle for the Revolut Business API

image

sverraest/revolut-php-bundle

Symfony PHP Bundle for the Revolut Business API

  • Sunday, April 8, 2018
  • by simon@appfleet.uk
  • Repository
  • 1 Watchers
  • 0 Stars
  • 48 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 12 % Grown

The README.md

RevolutPHPBundle

Symfony Bundle for RevolutPHP - https://github.com/sverraest/revolut-php, (*1)

Build Status codecov Scrutinizer Code Quality Maintainability, (*2)

Installation

This bundle is for Symfony3 and higher., (*3)

Step 1: Download the Bundle

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:, (*4)

$ composer require sverraest/revolut-php-bundle

This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation., (*5)

Step 2: Enable the Bundle

Then, enable the bundle by adding it to the list of registered bundles in the app/AppKernel.php file of your project:, (*6)

<?php
// app/AppKernel.php

// ...
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            // ...
            new Sverraest\RevolutPHPBundle\SverraestRevolutPHPBundle(),
        );

        // ...
    }

    // ...
}

Step 3: Add configuration

You must specify the following configuration, (*7)

sverraest_revolut_php:
    api_key: 'foo'
    mode: 'production' # options are production or sandbox

Step 4: Get the RevolutPHP Service

You can get an instance of the public RevolutPHP Service or autowire it., (*8)

// src/AppBundle/Controller/AcmeController.php
...

$revolut = $this->get('revolut_php.client');
print_r($revolut->accounts->all())

...

Or via autowiring:, (*9)

// src/AppBundle/Service/AcmeService.php
...

public function __construct(RevolutPHP\Client $client) 
{
    $this->client = $client;
}

...

Documentation

Read the documentation for this bundle, (*10)


www.appfleet.uk, (*11)

, (*12)

The Versions

08/04 2018

dev-master

9999999-dev

Symfony PHP Bundle for the Revolut Business API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Simon Verraest

api php symfony3 symfony business flex symfony4 revolut

08/04 2018
08/04 2018