Download the PHP package neyric/mangopay-bundle without Composer
On this page you can find all versions of the php package neyric/mangopay-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download neyric/mangopay-bundle
More information about neyric/mangopay-bundle
Files in neyric/mangopay-bundle
Package mangopay-bundle
Short Description MangoPay bundle for Symfony
License MIT
Homepage https://github.com/neyric/mangopay-bundle
Informations about the package mangopay-bundle
MangoPay Bundle for Symfony
A Symfony bundle for MangoPay, providing additionnal services on top of the official MangoPay PHP SDK
- Provide a service to access the API for a better Symfony integration
- Add useful commands
- Webhook handler (HTTP controller) + Webhook Event
Requirements
- Php 7.1
- Symfony 4.4
Installation
Load the bundle in your app
Configuration
The bundle (in particular the MangoPayService), expects those 3 environement variables to be defined
- MANGOPAY_CLIENT_ID
- MANGOPAY_PASSWORD
- MANGOPAY_BASE_URL (should be https://api.sandbox.mangopay.com or https://api.mangopay.com)
Accessing the MangoPay API
Once configured, you can use Symfony dependency injection to access the API from the sdk:
Symfony Commands
Display a list of installed hooks :
Display rate limits (performs 1 api call) :
Using the webhook handler
First, setup the route in your routes.yaml file :
Then register the webhook, you want using the Mangopay console.
Create a subscriber
And eventually declare the service with the kernel.event_subscriber
tag :
License
neyric/mangopay-bundle is distributed under MIT license, see the LICENSE file.
Contacts
Report bugs or suggest features using issue tracker on GitHub.
All versions of mangopay-bundle with dependencies
symfony/event-dispatcher Version ^4.4 || ^5.0
symfony/framework-bundle Version ^4.4 || ^5.0
symfony/yaml Version ^4.4 || ^5.0
mangopay/php-sdk-v2 Version ^2.12 || ^3.0