Download the PHP package yusufthedragon/treasury-php without Composer
On this page you can find all versions of the php package yusufthedragon/treasury-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download yusufthedragon/treasury-php
More information about yusufthedragon/treasury-php
Files in yusufthedragon/treasury-php
Package treasury-php
Short Description PHP Wrapper for Treasury API.
License GPL-3.0-only
Informations about the package treasury-php
Treasury API Client for PHP
Unofficial PHP wrapper/library for access Treasury API.
- Installation
- Install the Package
- Set to Production Mode
- Usages and Examples
- Authentication
- Login Client Credentials
- Register New User
- Login
- Forgot Password
- Transaction
- Get Gold Price
- Calculate Gold Amount
- Get Available Payment Methods
- Buy Gold
- Sell Gold
- Use Voucher
- Notify Payment
- Get Available Banks
- Minting
- Get Minting Partner
- Get Minting Fee
- Get Minting Piece
- Get Minting Shipping
- Calculate Gold Minting
- Minting Gold
- Profile
- Get Profile
- Update Profile
- Update Password
- History
- Get Transaction History
- Get Detail Transaction History
- Contributing
Installation
Install the Package
Install treasury-php with composer by following command:
or add it manually in your composer.json
file.
Set to Production Mode
When deploying your application to production, you may want to change API Endpoint to production as well by setting setProductionMode
to true
.
Usages and Examples
Authentication
Login Client Credentials
Usage example:
Register New User
Usage example:
Login
Usage example:
Forgot Password
Usage example:
Transaction
Get Gold Price
Usage example:
Calculate Gold Amount
Usage example:
Get Available Payment Methods
Usage example:
Buy Gold
Usage example:
Sell Gold
Usage example:
Use Voucher
Usage example:
Notify Payment
Usage example:
Get Available Banks
Usage example:
Minting
Get Minting Partner
Usage example:
Get Minting Fee
Usage example:
Get Minting Piece
Usage example:
Get Minting Shipping
Usage example:
Calculate Gold Minting
Usage example:
Minting Gold
Usage example:
Profile
Get Profile
Usage example:
Update Profile
Usage example:
Update Password
Usage example:
History
Get Transaction History
Usage example:
Get Detail Transaction History
Usage example:
License
This library is open-sourced software licensed under the GPL-3.0-only License.
Contributing
For any requests, bugs, or comments, please open an issue or submit a pull request.