PHPackages                             chiarillomassimo/satispay-php-sdk - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. chiarillomassimo/satispay-php-sdk

ActiveLibrary[API Development](/categories/api)

chiarillomassimo/satispay-php-sdk
=================================

PHP SDK for Satispay API

v0.1.1(8y ago)45416[4 issues](https://github.com/massimo-me/satispay-php-sdk/issues)[2 PRs](https://github.com/massimo-me/satispay-php-sdk/pulls)MITPHPPHP &gt;=5.5

Since Jan 14Pushed 3y ago1 watchersCompare

[ Source](https://github.com/massimo-me/satispay-php-sdk)[ Packagist](https://packagist.org/packages/chiarillomassimo/satispay-php-sdk)[ RSS](/packages/chiarillomassimo-satispay-php-sdk/feed)WikiDiscussions master Synced yesterday

READMEChangelog (2)Dependencies (1)Versions (6)Used By (0)

[![SensioLabsInsight](https://camo.githubusercontent.com/c24a0b41fdbbc24e5dbc02c1447a53861b8bb1cf1338fbe51a8843322e82fb1d/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f36376338346538392d646664312d346364362d383630342d3533353034663564643130312f6d696e692e706e67)](https://insight.sensiolabs.com/projects/67c84e89-dfd1-4cd6-8604-53504f5dd101)[![Build Status](https://camo.githubusercontent.com/8c163cc4e40638358328c517a0c9101d6a61950166ea79aea0d7faa937ab2742/68747470733a2f2f7472617669732d63692e6f72672f4368696172696c6c6f4d617373696d6f2f73617469737061792d7068702d73646b2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/ChiarilloMassimo/satispay-php-sdk)

Satispay PHP SDK
================

[](#satispay-php-sdk)

- Check Bearer
- Users
- Charges
- Amounts
- Refunds

Install
=======

[](#install)

[Download composer](https://getcomposer.org/download)

```
$ composer require chiarillomassimo/satispay-php-sdk

```

API: Init
---------

[](#api-init)

```
use ChiarilloMassimo\Satispay\Authorization\Bearer;
use ChiarilloMassimo\Satispay\Satispay;

$satispay = new Satispay(
    new Bearer('osh_...'),
    'sandbox'
);
```

API: Check Bearer
-----------------

[](#api-check-bearer)

### Check Authorization

[](#check-authorization)

```
if ($satispay->getBearerHandler()->isAuthorized()) {
 ....
};
```

API: Users
----------

[](#api-users)

### Creation

[](#creation)

```
$satispay->getUserHandler()->createByPhoneNumber('+39 yourphone')

$user = new User(null, '+39 yourphone');
$satispay->getUserHandler()->persist($user)
```

### Get

[](#get)

```
$satispay->getUserHandler()->findOneById('id')
```

### Find

[](#find)

```
$satispay->getUserHandler()->find()
$satispay->getUserHandler()->find(50, 'starting_id', 'ending_id')

$users = $satispay->getUserHandler()->find();

foreach ($users as $user) {
    //...
}
```

API: Charge
-----------

[](#api-charge)

### Create

[](#create)

```
use ChiarilloMassimo\Satispay\Model\Charge;

$charge = new Charge();

$user = $satispay->getUserHandler()->createByPhoneNumber('+39 yourphone');

$charge
    ->setUser($user)
    ->setAmount(15) // 0.15 €
    ->setCallbackUrl('http://fakeurl.com/satispay-callback')
    ->setCurrency('EUR')
    ->setDescription('Test description')
    ->setExpireMinutes(20)
    ->setExtraFields([
        'orderId' => 'id',
        'extra' => 'extra'
    ])
    ->setSendMail(false);

$satispay->getChargeHandler()->persist($charge, true);

$charge->isPaid(); //false
$charge->getStatus(); //Charge::STATUS_REQUIRED
```

### Get

[](#get-1)

```
$satispay->getChargeHandler()->findOneById('charge_id')
```

### Update

[](#update)

```
$charge = $satispay->getChargeHandler()->findOneById('charge_id')
$charge->setDescription('My fantastic description!!')

$satispay->getChargeHandler()->update($charge)
```

### Find

[](#find-1)

```
$satispay->getChargeHandler()->find()
$satispay->getChargeHandler()->find(50, 'starting_id', 'ending_id')

$charges = $satispay->getChargeHandler()->find();

foreach ($charges as $charge) {
    //...
}
```

API: Refund
-----------

[](#api-refund)

### Creation

[](#creation-1)

```
use \ChiarilloMassimo\Satispay\Model\Refund;

$charge = $satispay->getChargeHandler()->findOneById('id');

$refund = new Refund();
$refund
    ->setCharge($charge)
    ->setDescription('Test')
    ->setAmount(15)
    ->setReason(Refund::DUPLICATE);

$satispay->getRefundHandler()->persist($refund);
```

### Get

[](#get-2)

```
$satispay->getRefundHandler()->findOneById('id'));
```

### Update

[](#update-1)

```
$refund = $satispay->getRefundHandler()->findOneById('id');
$refund->setDescription('My fantastic description!!');

$satispay->getRefundHandler()->update($refund);
```

### Find

[](#find-2)

```
$satispay->getRefundHandler()->find()
$satispay->getRefundHandler()->find(50, 'starting_id', 'ending_id')

$refunds = $satispay->getRefundHandler()->find();

foreach ($refunds as $refund) {
    //...
}
```

API: Amounts
------------

[](#api-amounts)

### Get

[](#get-3)

```
$amount = $satispay->getAmountHandler()->findBy(
    new DateTime('2018-01-01'),
    new DateTime('now')
);
```

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 88.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~215 days

Total

2

Last Release

3238d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3f5b74708ecda4b63fb2d116a74156394f37cf2b05c50b6b0db41f9a84b31494?d=identicon)[massimo-me](/maintainers/massimo-me)

---

Top Contributors

[![massimo-me](https://avatars.githubusercontent.com/u/5167596?v=4)](https://github.com/massimo-me "massimo-me (47 commits)")[![tspencer244](https://avatars.githubusercontent.com/u/15922667?v=4)](https://github.com/tspencer244 "tspencer244 (5 commits)")[![portapipe](https://avatars.githubusercontent.com/u/1362836?v=4)](https://github.com/portapipe "portapipe (1 commits)")

---

Tags

hacktoberfest

### Embed Badge

![Health badge](/badges/chiarillomassimo-satispay-php-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/chiarillomassimo-satispay-php-sdk/health.svg)](https://phpackages.com/packages/chiarillomassimo-satispay-php-sdk)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3661.2M46](/packages/tencentcloud-tencentcloud-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k496.1k33](/packages/neuron-core-neuron-ai)[avalara/avataxclient

Client library for Avalara's AvaTax suite of business tax calculation and processing services. Uses the REST v2 API.

528.3M7](/packages/avalara-avataxclient)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

252.5k](/packages/eslazarev-wildberries-sdk)[files.com/files-php-sdk

Files.com PHP SDK

2478.1k](/packages/filescom-files-php-sdk)[aimeos/prisma

A powerful PHP package for integrating media related Large Language Models (LLMs) into your applications

1942.4k4](/packages/aimeos-prisma)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
