All Projects → crucialwebstudio → chargify-sdk-php

crucialwebstudio / chargify-sdk-php

Licence: Apache-2.0 License
Chargify SDK for PHP

Programming Languages

PHP
23972 projects - #3 most used programming language
Makefile
30231 projects

Projects that are alternatives of or similar to chargify-sdk-php

SchannelGroupPolicy
Group Policy Template for Schannel
Stars: ✭ 70 (+169.23%)
Mutual labels:  maintainer-wanted
lottie-node
Export lottie animations in Node.js
Stars: ✭ 51 (+96.15%)
Mutual labels:  maintainer-wanted
python-ouraring
Oura ring API client for python
Stars: ✭ 68 (+161.54%)
Mutual labels:  maintainer-wanted
yup-phone
☎️ Adds a phone number validation check to yup validator using google-libphonenumber
Stars: ✭ 219 (+742.31%)
Mutual labels:  maintainer-wanted
kirby-helpsection
Panel view to display help for users.
Stars: ✭ 35 (+34.62%)
Mutual labels:  maintainer-wanted
jmeter-to-k6
Converts JMeter .jmx files to k6 JS code
Stars: ✭ 57 (+119.23%)
Mutual labels:  maintainer-wanted
biguint-format
Node.js module to format big uint numbers from a byte array or a Buffer
Stars: ✭ 16 (-38.46%)
Mutual labels:  maintainer-wanted
certbot-dns-loopia
Loopia DNS authentication plugin for Certbot
Stars: ✭ 28 (+7.69%)
Mutual labels:  maintainer-wanted
xcbeautify
A little beautifier tool for xcodebuild
Stars: ✭ 687 (+2542.31%)
Mutual labels:  maintainer-wanted
gulp-typedoc
Gulp plugin for the typedoc TypeScript documentation tool.
Stars: ✭ 43 (+65.38%)
Mutual labels:  maintainer-wanted
Android Inapp Billing V3
A lightweight implementation of Android In-app Billing Version 3
Stars: ✭ 2,123 (+8065.38%)
Mutual labels:  maintainer-wanted

This project is looking for a new maintainer.

Chargify SDK for PHP

Total Downloads Build Status Latest Stable Version Apache 2 License Documentation Status

Interact with the Chargify API using PHP.

  • 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:

  1. Install Composer, if you don't already have it:

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

    php composer.phar require chargely/chargify-sdk-php
  3. Require Composer's autoloader:

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

Quick Example

Create a new customer.

<?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('[email protected]')
    // 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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].