andrewlamers / chargify-laravel by emaw

Laravel service provider for chargifys API using the chargley chargify SDK.
94
2
2
Package Data
Maintainer Username: emaw
Maintainer Contact: andrew.lamers@gmail.com (Andrew Lamers)
Package Create Date: 2015-10-21
Package Last Update: 2015-10-29
Language: PHP
License: Apache 2.0
Last Refreshed: 2024-11-26 15:07:56
Package Statistics
Total Downloads: 94
Monthly Downloads: 1
Daily Downloads: 0
Total Stars: 2
Total Watchers: 2
Total Forks: 2
Total Open Issues: 0

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.

How to Install

Laravel 5.0

  1. Install the andrewlamers/chargify-laravel package

    $ composer require andrewlamers/chargify-laravel
    
  2. 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
    )
    
  3. Generate a template Chargify config file

    $ php artisan vendor:publish
    
  4. Update app/config/chargify.php with your chargify API Information

    return array(
        'hostname' => 'mysite.chargify.com',
        'api_key' => 'my chargify api key',
        'shared_key' => 'my chargify shared key'
    );
    

Laravel 4.2

  1. Install the andrewlamers/chargify-laravel 1.* version

    $ composer require andrewlamers/chargify-laravel:1.*
    
  2. 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'
    )
    
  3. Generate a template Chargify config file

    $ php artisan config:publish andrewlamers/chargify-laravel
    
  4. Update app/config/packages/andrewlamers/chargify-laravel/config.php with your chargify API Information

    return array(
        'hostname' => 'mysite.chargify.com',
        'api_key' => 'my chargify api key',
        'shared_key' => 'my chargify shared key'
    );