library chargify-laravel
Laravel service provider for chargifys API using the chargley chargify SDK.
andrewlamers/chargify-laravel
Laravel service provider for chargifys API using the chargley chargify SDK.
- Thursday, October 29, 2015
- by emaw
- Repository
- 1 Watchers
- 2 Stars
- 79 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 2 Forks
- 0 Open issues
- 5 Versions
- 1 % Grown
Chargify Wrapper for Laravel 4
This is a wrapper using the chargley chargify SDK. It creates a service provider and facade for autoloading into laravel., (*1)
How to Install
Laravel 5.0
-
Install the andrewlamers/chargify-laravel
package, (*2)
$ composer require andrewlamers/chargify-laravel
-
Update config/app.php
to activate ChargifyLaravel, (*3)
# 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, (*4)
$ php artisan vendor:publish
-
Update app/config/chargify.php
with your chargify API Information, (*5)
return 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, (*6)
$ composer require andrewlamers/chargify-laravel:1.*
-
Update config/app.php
to activate ChargifyLaravel, (*7)
# 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, (*8)
$ php artisan config:publish andrewlamers/chargify-laravel
-
Update app/config/packages/andrewlamers/chargify-laravel/config.php
with your chargify API Information, (*9)
return array(
'hostname' => 'mysite.chargify.com',
'api_key' => 'my chargify api key',
'shared_key' => 'my chargify shared key'
);