zfr / zfr-stripe-module
Zend Framework 2 module for using ZfrStripe
Installs: 66 602
Dependents: 2
Suggesters: 0
Security: 0
Stars: 5
Watchers: 3
Forks: 3
Open Issues: 3
Requires
- php: >=5.4
- zendframework/zend-modulemanager: ^2.8
- zendframework/zend-servicemanager: ^3.0
- zfr/zfr-stripe: ~3.0
Requires (Dev)
- phpunit/phpunit: ~3.7
README
ZfrStripeModule is a Zend Framework 2 module that integrates with ZfrStripe.
Versions
For zend-servicemanager 2 use version 4.0
For zend-servicemanager 3 and above use version 5.0
Installation
To install ZfrStripeModule, use composer:
$ composer require zfr/zfr-stripe-module ^5.0
Enable ZfrStripeModule in your application.config.php
, then copy the file
vendor/zfr/zfr-stripe-module/config/zfr_stripe.local.php.dist
to the
config/autoload
directory of your application (don't forget to remove the
.dist
extension from the file name!).
zf-component-installer
If you use zf-component-installer, that plugin will install ZfrStripeModule as a module for you.
Usage
This module registers the ZfrStripe client in your application's service manager.
You can get it by requesting the service ZfrStripe\Client\StripeClient
:
$stripeClient = $serviceManager->get('ZfrStripe\Client\ZfrStripeClient');
For more information on the usage of ZfrStripe
, please refer to its documentation.