bongloy / bongloy-php
Bongloy PHP Library
v1.0.3
2020-11-14 16:30 UTC
Requires
- php: >=5.6.0
- stripe/stripe-php: >=6.17.2
Requires (Dev)
- phpunit/phpunit: ^5.7
This package is auto-updated.
Last update: 2024-04-27 12:27:15 UTC
README
The Bongloy PHP library provides convenient access to the Bongloy API from applications written in the PHP language. It includes a pre-defined set of classes for API resources that initialize themselves dynamically from API responses which makes it compatible with a wide range of versions of the Bongloy API.
Requirements
PHP 5.6.0 and later.
Composer
You can install the bindings via Composer. Run the following command:
composer require bongloy/bongloy-php
To use the bindings, use Composer's autoload:
require_once('vendor/autoload.php');
Getting Started
Simple usage looks like:
\Bongloy\Bongloy::setApiKey('sk_test_*****'); $charge = \Bongloy\Charge::create([ 'amount' => 1000, 'currency' => 'USD', 'source' => '6b1ca112-add7-4bc6-b520-829e004c0580', ]); echo $charge;
Documentation
For a comprehensive list of examples, check out the API documentation.