PHPackages                             litegoio/litego-php - 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. litegoio/litego-php

ActiveLibrary[API Development](/categories/api)

litegoio/litego-php
===================

Litego.io API PHP Class

1.2.0(7y ago)0191MITPHP

Since Feb 6Pushed 7y agoCompare

[ Source](https://github.com/litegoio/litego-php)[ Packagist](https://packagist.org/packages/litegoio/litego-php)[ Docs](https://litego.io)[ RSS](/packages/litegoio-litego-php/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (3)Dependencies (1)Versions (4)Used By (1)

litego-php
==========

[](#litego-php)

Simple Litego API wrapper class, in PHP. Litego API documentation can be found here

Installation
------------

[](#installation)

Preferred way to install is with [Composer](https://getcomposer.org/) as external websocket client library is used.

Just add

```
"require": {
  "litegoio/litego-php": "1.1.*"
}

```

in your projects composer.json.

Examples
--------

[](#examples)

Start by use-ing the class and creating an instance with test/live mode

```
require('vendor/autoload.php');

use Litego\Litego;

$litego = new Litego();
```

If you want to use test mode

```
$litego = new Litego('test');
```

After registration on  and getting secret key and merchant ID values try to authenticate (get auth token for other requests) Two ways how to get auth token:

- secret key and merchant ID
- refresh token (if exists).

```
$result = $litego->authenticate($merchantId, $secretKey);
```

or

```
$result = $litego->reauthenticate($refreshToken $merchantId, $secretKey);
```

You will get auth token and refresh token values. Auth token will be used then for other API requests. Refresh token should be saved for reauthentication when auth token is expired.

Create charge

```
$result = $litego->createCharge($authToken, $description, $amount_satoshi);
print_r($result);
```

Charges list

```
$result = $litego->chargesList($authToken, array(
'page' => 1,
'pageSize' => 5,
'paidOnly' => true,
));
print_r($result);
```

Get charge

```
$result = $litego->getCharge($authToken, $chargeId);
print_r($result);
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~29 days

Total

3

Last Release

2597d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/34b1f67ecdf7a77da221c672359c63d49c4eb6c787a93f84fa9bba407c9c4a83?d=identicon)[litegoio](/maintainers/litegoio)

---

Top Contributors

[![litegoio](https://avatars.githubusercontent.com/u/44262409?v=4)](https://github.com/litegoio "litegoio (5 commits)")

### Embed Badge

![Health badge](/badges/litegoio-litego-php/health.svg)

```
[![Health](https://phpackages.com/badges/litegoio-litego-php/health.svg)](https://phpackages.com/packages/litegoio-litego-php)
```

###  Alternatives

[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[hubspot/api-client

Hubspot API client

23414.2M16](/packages/hubspot-api-client)[tivoka/tivoka

The universal JSON-RPC client/server library. JSON-RPC done right!

74159.0k3](/packages/tivoka-tivoka)

PHPackages © 2026

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