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

ActiveLibrary[API Development](/categories/api)

towallet/towallet-php
=====================

Towallet API PHP Library

010PHP

Since Jul 18Pushed 8y agoCompare

[ Source](https://github.com/towallet/towallet-php)[ Packagist](https://packagist.org/packages/towallet/towallet-php)[ RSS](/packages/towallet-towallet-php/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

ToWallet-PHP
============

[](#towallet-php)

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

[](#installation)

### Using Composer

[](#using-composer)

You can install the library via [Composer](https://getcomposer.org/). If you don't already have Composer installed, first install it by following one of these instructions depends on your OS of choice:

- [Composer installation instruction for Windows](https://getcomposer.org/doc/00-intro.md#installation-windows)
- [Composer installation instruction for Mac OS X and Linux](https://getcomposer.org/doc/00-intro.md#installation-linux-unix-osx)

1. After composer is installed, you can declare ToWallet-PHP as a project dependency by creating a `composer.json` at the root of your project directory with the following content:

    ```
    {
      "require": {
        "towallet/towallet-php": "dev-master"
      }
    }
    ```
2. Then run the following command to install the ToWallet-PHP library:

    ```
    composer install

    ```
3. Once you run the `composer install` command, the Composer will generate a `vendor` folder at the same directory as `composer.json`. Now you can then add the following line to PHP script to load the library:

    ```
    require_once dirname(__FILE__).'/vendor/autoload.php';
    ```

### Manually

[](#manually)

If you're not using Composer, you can also download [ToWallet-PHP](https://github.com/towallet/towallet-php/archive/master.zip). Then, follows the instruction below to install **ToWallet-PHP** to the project.

1. Extract the library to your project.
2. Then, include the following line into your PHP file,

    ```
    require_once dirname(__FILE__).'/towallet-php/lib/Towallet.php';
    ```
3. Now you are ready to start using the library

Quick Start
-----------

[](#quick-start)

Now from the above sections, your code will looks similar like the below.

```
require_once dirname(__FILE__).'/vendor/autoload.php';

define('TOWALLET_PUBLIC_KEY', 'pkey-xxxxxxxxxx');
define('TOWALLET_SECRET_KEY', 'skey-xxxxxxxxxx');
```

```
$transaction = TowalletTransaction::get(array(
    'invoice_id'   => 'M12345678'
));
```

###  Health Score

20

—

LowBetter than 17% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/e40172b80ec7e29857a075d6e5220319ede09d52bf16c7fd4196e93317d59bd8?d=identicon)[CODE7STUDIO](/maintainers/CODE7STUDIO)

---

Top Contributors

[![code7studio](https://avatars.githubusercontent.com/u/28973820?v=4)](https://github.com/code7studio "code7studio (6 commits)")

### Embed Badge

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

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

###  Alternatives

[google/apiclient

Client library for Google APIs

9.8k186.9M875](/packages/google-apiclient)[stripe/stripe-php

Stripe PHP Library

4.0k139.3M411](/packages/stripe-stripe-php)[webonyx/graphql-php

A PHP port of GraphQL reference implementation

4.7k75.4M270](/packages/webonyx-graphql-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k90.6M248](/packages/twilio-sdk)[friendsofsymfony/jsrouting-bundle

A pretty nice way to expose your Symfony routing to client applications.

1.5k52.7M205](/packages/friendsofsymfony-jsrouting-bundle)[knplabs/github-api

GitHub API v3 client

2.2k15.3M170](/packages/knplabs-github-api)

PHPackages © 2026

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