2017 © Pedro PelĂĄez
 

library laravel-sofortlib

Laravel 5 package for use with SofortLib/SOFORT API, provides a facade to work with.

image

codedge/laravel-sofortlib

Laravel 5 package for use with SofortLib/SOFORT API, provides a facade to work with.

  • Tuesday, June 7, 2016
  • by codedge
  • Repository
  • 1 Watchers
  • 2 Stars
  • 192 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 8 % Grown

The README.md

Latest Stable Version Total Downloads License, (*1)

Laravel integration for Sofortlib

This repository implements a simple ServiceProvider that creates a singleton instance of the Sofortlib client easily accessible via a Facade., (*2)

See SofortLib for more information about the usage., (*3)

Installation

$ composer require codedge/laravel-sofortlib

The package registers itself., (*4)

Next run
php artisan vendor:publish --provider="Codedge\Sofortlib\SofortlibServiceProvider" --tag=config
to publish the configuration file for the SOFORT API to config/sofortlib.php., (*5)

Note: Open this file and enter your correct API credentials and other settings., (*6)

Usage

To use the static interfaces (facades) you need to add the following lines to your config/app.php., (*7)

SofortĂŒberweisung

// app/Http/routes.php

Route::get('/', function () {

    Sofortueberweisung::setAmount(5);
    Sofortueberweisung::setCurrencyCode('EUR');
    Sofortueberweisung::sendRequest();

    if(Sofortueberweisung::isError()) {
        // do something...
    }

});

Billcode

// app/Http/routes.php

Route::get('/', function () {

    Billcode::setAmount(47.11);
    Billcode::setCurrencyCode('USD');
    Billcode::createBillcode();

    if(Billcode::isError()) {
        // do something...
    }

});

The Versions

07/06 2016

dev-master

9999999-dev

Laravel 5 package for use with SofortLib/SOFORT API, provides a facade to work with.

  Sources   Download

MIT

The Requires

 

laravel sofortuberweisung sofortueberweisung sofortlib paycode sofort api