andrewlamers / chargify-laravel
Laravel service provider for chargifys API using the chargley chargify SDK.
v2.0.0
2015-10-23 16:09 UTC
Requires
- php: >=5.4.0
- chargely/chargify-sdk-php: 0.0.3
- illuminate/support: 4.*|5.*
This package is auto-updated.
Last update: 2024-11-29 04:52:13 UTC
README
This is a wrapper using the chargley chargify SDK. It creates a service provider and facade for autoloading into laravel.
How to Install
Laravel 5.0
-
Install the
andrewlamers/chargify-laravel
package$ composer require andrewlamers/chargify-laravel
-
Update
config/app.php
to activate ChargifyLaravel# Add `ChargifyLaravelServiceProvider` to the `providers` array 'providers' => array( ... Andrewlamers\ChargifyLaravel\ChargifyLaravelServiceProvider::class, ) # Add the `ChargifyLaravelFacade` to the `aliases` array 'aliases' => array( ... 'Chargify' => Andrewlamers\ChargifyLaravel\ChargifyLaravelFacade::class )
-
Generate a template Chargify config file
$ php artisan vendor:publish
-
Update
app/config/chargify.php
with your chargify API Informationreturn array( 'hostname' => 'mysite.chargify.com', 'api_key' => 'my chargify api key', 'shared_key' => 'my chargify shared key' );
Laravel 4.2
-
Install the
andrewlamers/chargify-laravel
1.* version$ composer require andrewlamers/chargify-laravel:1.*
-
Update
config/app.php
to activate ChargifyLaravel# Add `ChargifyLaravelServiceProvider` to the `providers` array 'providers' => array( ... 'Andrewlamers\ChargifyLaravel\ChargifyLaravelServiceProvider' ) # Add the `ChargifyLaravelFacade` to the `aliases` array 'aliases' => array( ... 'Chargify' => 'Andrewlamers\ChargifyLaravel\ChargifyLaravelFacade' )
-
Generate a template Chargify config file
$ php artisan config:publish andrewlamers/chargify-laravel
-
Update
app/config/packages/andrewlamers/chargify-laravel/config.php
with your chargify API Informationreturn array( 'hostname' => 'mysite.chargify.com', 'api_key' => 'my chargify api key', 'shared_key' => 'my chargify shared key' );