Download the PHP package colu/colu without Composer
On this page you can find all versions of the php package colu/colu. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package colu
Colu-node
Colu platform, PHP SDK
Install
Install Composer in your project:
Create a composer.json
file in your project root:
Install via Composer
Generate keys for your company:
If you create an instance of the class with only the company name, the will be generated randomly on your machine. Your is what defines your company.
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 with your key:
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:
-
QR registration:
This will return an array containing the QR and the message to be verified:
Send the registration request:
This will send a push notification to the user mobile application that will wait until approval is recieved.
-
Phonenumber Registration:
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:
save the for future verifications.
Verify user:
To verify a user:
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.
All versions of colu with dependencies
bitcoin-php/bitcoin-ecdsa Version 1.1
endroid/qrcode Version >=1.5.0
bitwasp/bitcoin-lib Version 1.0.2