senfenico / senfenico-php
Senfenico payment API sdk
v0.3.0
2024-09-08 03:31 UTC
Requires
- php: >=5.6.0
- ext-curl: *
- ext-json: *
- ext-mbstring: *
Requires (Dev)
- friendsofphp/php-cs-fixer: 3.5.0
- phpstan/phpstan: ^1.2
- phpunit/phpunit: ^5.7 || ^9.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
The Senfenico PHP library provides convenient access to the Stripe API from applications written in the PHP language.
Requirements
PHP 7.3.0 and later.
Composer
You can install the bindings via Composer. Run the following command:
composer require senfenico/senfenico-php
To use the bindings, use Composer's autoload:
require_once 'vendor/autoload.php';
Manual Installation
If you do not wish to use Composer, you can download the latest release. Then, to use the bindings, include the init.php file.
require_once '/path/to/senfenico-php/init.php';
Getting Started
Simple usage looks like:
$senfenico = new \Senfenico\Senfenico('sk_test_...'); $charge = $senfenico->charge->create([ 'amount' => 1000, 'phone' => '76xxxxxx', 'provider' => 'orange_bf' ]); echo $charge;
Documentation
See the PHP API docs.