andrewlamers/chargify-laravel

Laravel service provider for chargifys API using the chargley chargify SDK.

v2.0.0 2015-10-23 16:09 UTC

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

  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'
    );