2017 © Pedro Peláez
 

library chargify-sdk-php

Chargify SDK for PHP - Use the Chargify API in your PHP project

image

chargely/chargify-sdk-php

Chargify SDK for PHP - Use the Chargify API in your PHP project

  • Tuesday, September 19, 2017
  • by chargely
  • Repository
  • 4 Watchers
  • 21 Stars
  • 29,904 Installations
  • PHP
  • 5 Dependents
  • 0 Suggesters
  • 24 Forks
  • 1 Open issues
  • 13 Versions
  • 11 % Grown

The README.md

This project is looking for a new maintainer., (*1)

Chargify SDK for PHP

Total Downloads Build Status Latest Stable Version Apache 2 License Documentation Status, (*2)

Interact with the Chargify API using PHP., (*3)

  • Abstracts away underlying HTTP requests to the Chargify API
  • Supports Chargify API v1 and Chargify Direct (v2)
  • Well documented
  • Unit tested

Installation

Using Composer is the recommended way to install the Chargify SDK for PHP. Composer is a dependency management tool for PHP that allows you to declare the dependencies your project needs and installs them into your project. In order to use the SDK with Composer, you must do the following:, (*4)

  1. Install Composer, if you don't already have it:, (*5)

    curl -sS https://getcomposer.org/installer | php
    
  2. Run the Composer command to install the latest stable version of the SDK:, (*6)

    php composer.phar require chargely/chargify-sdk-php
    
  3. Require Composer's autoloader:, (*7)

    <?php
    require '/path/to/vendor/autoload.php';
    

Quick Example

Create a new customer., (*8)

<?php
require 'vendor/autoload.php';

use Crucial\Service\Chargify;

$chargify = new Chargify([
    'hostname'   => 'yoursubdomain.chargify.com',
    'api_key'    => '{{API_KEY}}',
    'shared_key' => '{{SHARED_KEY}}'
]);

// Crucial\Service\Chargify\Customer
$customer = $chargify->customer()
    // set customer properties
    ->setFirstName('Dan')
    ->setLastName('Bowen')
    ->setEmail('dan@mailinator.com')
    // send the create request
    ->create();

// check for errors
if ($customer->isError()) {
    // array of errors loaded during the transfer
    $errors = $customer->getErrors();
 } else {
    // the transfer was successful
    $customerId = $customer['id']; // Chargify customer ID
    $firstName  = $customer['first_name'];
    $lastName   = $customer['last_name'];
    $email      = $customer['email'];
 }

Help and Documentation

Contributing

Please see CONTRIBUTING.md for more information., (*9)

The Versions

19/09 2017

dev-master

9999999-dev https://github.com/chargely/chargify-sdk-php

Chargify SDK for PHP - Use the Chargify API in your PHP project

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

api php sdk chargify chargely billing portal chargify direct chargify v2

19/09 2017

v0.1.4

0.1.4.0 https://github.com/chargely/chargify-sdk-php

Chargify SDK for PHP - Use the Chargify API in your PHP project

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

api php sdk chargify chargely billing portal chargify direct chargify v2

19/09 2017

dev-develop

dev-develop https://github.com/chargely/chargify-sdk-php

Chargify SDK for PHP - Use the Chargify API in your PHP project

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

api php sdk chargify chargely billing portal chargify direct chargify v2

29/05 2017

v0.1.3

0.1.3.0 https://github.com/chargely/chargify-sdk-php

Chargify SDK for PHP - Use the Chargify API in your PHP project

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

api php sdk chargify chargely billing portal chargify direct chargify v2

09/02 2017

v0.1.2

0.1.2.0 https://github.com/chargely/chargify-sdk-php

Chargify SDK for PHP - Use the Chargify API in your PHP project

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

api php sdk chargify chargely billing portal chargify direct chargify v2

09/02 2017

dev-release/0.1.2

dev-release/0.1.2 https://github.com/chargely/chargify-sdk-php

Chargify SDK for PHP - Use the Chargify API in your PHP project

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

api php sdk chargify chargely billing portal chargify direct chargify v2

13/01 2016

v0.1.1

0.1.1.0 https://github.com/chargely/chargify-sdk-php

Chargify SDK for PHP - Use the Chargify API in your PHP project

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

api php sdk chargify chargely billing portal chargify direct chargify v2

09/01 2016

v0.1.0

0.1.0.0 https://github.com/chargely/chargify-sdk-php

Chargify SDK for PHP - Use the Chargify API in your PHP project

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

api php sdk chargify chargely billing portal chargify direct chargify v2

13/11 2015

v0.0.5

0.0.5.0 https://github.com/chargely/chargify-sdk-php

Chargify SDK for PHP - Use the Chargify API in your PHP project

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

api php sdk chargify chargely billing portal chargify direct chargify v2

07/11 2015

v0.0.4

0.0.4.0 https://github.com/chargely/chargify-sdk-php

Chargify SDK for PHP - Use the Chargify API in your PHP project

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

api php sdk chargify chargely billing portal

13/05 2015

v0.0.3

0.0.3.0 https://github.com/chargely/chargify-sdk-php

Chargify SDK for PHP - Use the Chargify API in your PHP project

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

api php sdk chargify chargely billing portal

06/05 2015

v0.0.2

0.0.2.0 https://github.com/chargely/chargify-sdk-php

Chargify SDK for PHP - Use the Chargify API in your PHP project

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

api php sdk chargify chargely billing portal

19/03 2015

v0.0.1

0.0.1.0 https://github.com/crucialwebstudio/chargify-sdk-php

Chargify SDK for PHP - Use the Chargify API in your PHP project

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

api php sdk chargify