Download the PHP package cviebrock/laravel-mangopay without Composer
On this page you can find all versions of the php package cviebrock/laravel-mangopay. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package laravel-mangopay
Laravel-Mangopay Integration
This package makes it easier (hopefully!) to integrate the official Mangopay SDK into your Laravel and Lumen applications.
⚠️ This Package Will Be Abandoned
Due to several factors, including the fact that I no longer use Mangopay, I will be ceasing development on this package. If you are interested in taking over this project, please reach out to me here in the Issues board.
- Installation
- Laravel
- Lumen
- Configuration
- Usage
- Bugs, Suggestions and Contributions
- Copyright and License
Installation
Depending on your version of Laravel, you should install a different version of the package. NOTE: As of version 6.0, the package's version should match the Laravel version.
Laravel Version | Package Version |
---|---|
9.0 | ^9.0 |
8.0 | ^8.0 |
7.0 | ^7.0 |
6.0 | ^6.0 |
5.* | ^0.9 |
Laravel
-
Install the package via composer:
After updating composer, the package will automatically register its service provider.
-
Publish the configuration file:
- Finally, generate the required temporary directories:
Lumen
-
Install the package via composer:
-
Copy the configuration file to your
config
folder and enable everything inbootstrap/app.php
: - Generate the required temporary directories:
Configuration
This package supports authentication configuration through the services configuration file located
in config/services.php
. Add the following block to that file, and set the appropriate
values in your .env
file:
The configuration file you can publish to config/mangopay.php
provides additional
properties that can be passed to the MangopayAPI object when it is instantiated. In
most cases, you won't need to change anything here, so you can choose to not publish this
configuration, or have it simply return an empty array.
If you do use this file, see the SDK documentation for the various properties that can be set
(basically any public property on the MangoPay\Libraries\Configuration
class).
Usage
All this package really does is make instantiating the MangopayAPI
easy by
putting the configuration into Laravel/Lumen's config system.
Using it is now as easy as injecting Mangopay into your controller, and then
using it the same way you would use the MangopayAPI
class:
Bugs, Suggestions and Contributions
Thanks to everyone who has contributed to this project! Special thanks to JetBrains for their Open Source License Program ... and the excellent PHPStorm IDE, of course!
Please use Github for reporting bugs, and making comments or suggestions.
See CONTRIBUTING.md for how to contribute changes.
Copyright and License
laravel-mangopay was written by Colin Viebrock and released under the MIT License. See LICENSE.md file for details.
Copyright (c) 2016 Colin Viebrock
All versions of laravel-mangopay with dependencies
illuminate/support Version ^8.0|^9.0
mangopay/php-sdk-v2 Version ^3.1