New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

andrewlamers/chargify-laravel

Laravel service provider for chargifys API using the chargley chargify SDK.
95 2
Install
composer require andrewlamers/chargify-laravel
Latest Version:v2.0.0
PHP:>=5.4.0
Laravel:4 · 5
License:Apache 2.0
Last Updated:Oct 29, 2015
Links: GitHub  ·  Packagist
Maintainer: emaw

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

Related Packages

doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

660,512,042 9,702
laravel/framework

The Laravel Framework.

625,568,548 34,998
laravel/tinker

Powerful REPL for the Laravel framework.

531,591,559 7,442
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

450,320,528 608
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

424,642,029 4,662

Version History

Version Released PHP Laravel License
v2.0.0 >=5.4.0 4.*|5.* Apache 2.0
v1.0.2 >=5.4.0 4.2.*
v1.0.1 >=5.4.0 4.2.*
v1.0.0 >=5.4.0 4.2.*