senfenico/senfenico-php

Senfenico payment API sdk

v0.3.0 2024-09-08 03:31 UTC

This package is not auto-updated.

Last update: 2025-06-15 07:52:42 UTC


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.