PHPackages                             colu/colu - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. colu/colu

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

colu/colu
=========

colu php SDK

v1.0.4(11y ago)081MITPHPPHP &gt;=5.4

Since Mar 11Pushed 10y ago6 watchersCompare

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

READMEChangelogDependencies (3)Versions (5)Used By (0)

Colu-node
=========

[](#colu-node)

Colu platform, PHP SDK

Install
-------

[](#install)

Install Composer in your project:

```
    $curl -s http://getcomposer.org/installer | php
```

Create a `composer.json` file in your project root:

```
    {
        "require": {
            "Colu/Colu": "1.0.4"
        }
    }

```

Install via Composer

```
    $php composer.phar install
```

Generate keys for your company:
-------------------------------

[](#generate-keys-for-your-company)

If you create an instance of the `Colu` class with only the company name, the `privateKey` will be generated randomly on your machine. Your `privateKey` is what defines your company.

```
require_once ('vendor/autoload.php');
use Colu\ColuSDK\Colu;
$colu = new Colu('my_company', 'testnet');

// This is your private key, keep it safe!!!
echo 'WIF: '.$colu->getWIF();
```

Create instance from an existing key:
-------------------------------------

[](#create-instance-from-an-existing-key)

When you want to use our module in your server you need to generate keys only once. After that you can create an instance of `Colu` with your key:

```
require_once ('vendor/autoload.php');
use Colu\ColuSDK\Colu;

$privateKey = 'cQQy71GeXGeFWnDtypas2roY2qrk3KWjJLCxoFqc2wibXr2wWxie'; // this is the WIF version of a private key

$colu = new Colu('my_company', 'testnet', $privateKey);
```

Register a user using 2FA:
--------------------------

[](#register-a-user-using-2fa)

There are two methods for registering a user using 2FA, directly by using a Phonenumber or by generating a QR code and then having the user scan the QR with their phone.

In both methods you need to Create a registration message:

```
$username = 'bob';
$registrationMessage = $colu->createRegistrationMessage($username);
```

1. QR registration:

```
$qr = $colu->createRegistrationQR($registrationMessage);
```

This will return an array containing the QR and the message to be verified:

```
  "qr" => $qrCode->getDataUri (), // this is the actual QR image
  "code" => $qrRegCode, // send this to the registerUserByCode function
  "message" => $message // send this to the registerUserByCode function
```

Send the registration request:

```
$colu->registerUserByCode ( $code, $message );
```

This will send a push notification to the user mobile application that will wait until approval is recieved.

2. Phonenumber Registration:

```
$phonenumber = "+12323455673";
$colu->registerUserByPhonenumber ( $phonenumber, $registrationMessage );
```

This will send a push notification to the user mobile application that will wait until approval is recieved.

If successful both cases return an array:

```
"success" => true,
"userId" => $user->getId () // this is the user ID
```

save the `userId` for future verifications.

Verify user:
------------

[](#verify-user)

To verify a user:

```
$username = 'bob';
$userId = 'tpubDCgCu2jpxrR7j9JwFQ959wSkNwPQFNQvJJMFnikg1Sb4tkDnBNYaS3Sc1BxKL71hk3jPkQStEY1VE9mTaQjF8kDfEhzxjWid7eVK5F7nWi5';

if ($colu->verifyUser($username, $userId, 0)) {
    echo "verified";
  }
  else {
    echo $colu->error;
    // something bad happened
  }
}
```

This will send a push to the user mobile application and prompt him to sign on your message, you will receive the user signature and verify it locally.

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity61

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 ~0 days

Total

4

Last Release

4132d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/11404358?v=4)[Eyal Alsheich](/maintainers/Quilamir)[@Quilamir](https://github.com/Quilamir)

---

Top Contributors

[![assafshomer](https://avatars.githubusercontent.com/u/2572475?v=4)](https://github.com/assafshomer "assafshomer (1 commits)")

---

Tags

phpDERbitcoinbtctransactionscryptocurrencyhd-walleteccbip32electrum

### Embed Badge

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

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

###  Alternatives

[bitwasp/bitcoin-lib

Implementation of raw transactions in bitcoin, HD wallets, Electrum wallets, and other fun stuff.

13922.5k5](/packages/bitwasp-bitcoin-lib)[ccxt/ccxt

A cryptocurrency trading API with more than 100 exchanges in JavaScript / TypeScript / Python / C# / PHP / Go

43.2k341.0k1](/packages/ccxt-ccxt)[bitwasp/secp256k1-php

PHP Extension with bindings for bitcoin/secp256k1.

58190.4k35](/packages/bitwasp-secp256k1-php)[coinpaymentsnet/coinpayments-php

A PHP wrapper for the CoinPayments.net v1 API.

56130.1k](/packages/coinpaymentsnet-coinpayments-php)[jimmerioles/bitcoin-currency-converter-php

A simple and lightweight bitcoin to currency converter and vice versa based on current exchange rates from your chosen provider: Coinbase, Coindesk, Bitpay and etc.

132.7k](/packages/jimmerioles-bitcoin-currency-converter-php)

PHPackages © 2026

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