Download the PHP package newngapi/ngapi without Composer
On this page you can find all versions of the php package newngapi/ngapi. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download newngapi/ngapi
More information about newngapi/ngapi
Files in newngapi/ngapi
Download newngapi/ngapi
More information about newngapi/ngapi
Files in newngapi/ngapi
Vendor newngapi
Package ngapi
Short Description A PHP SDK for integrating with the NG gaming platform API. This SDK provides a simple and efficient way to interact with the NG gaming platform's API services.
License MIT
Homepage https://www.neapi.com
Package ngapi
Short Description A PHP SDK for integrating with the NG gaming platform API. This SDK provides a simple and efficient way to interact with the NG gaming platform's API services.
License MIT
Homepage https://www.neapi.com
Please rate this library. Is it a good library?
Informations about the package ngapi
NG API PHP SDK
A PHP SDK for integrating with the NG gaming platform API. This SDK provides a simple and efficient way to interact with the NG gaming platform's API services.
Official Resources
- NG Official Website: https://www.neapi.com
- NG Documentation: https://wiki.neapi.com
- Contact Email: [email protected]
Requirements
- PHP >= 7.0
- Composer
- Guzzle HTTP Client
Installation
Usage
Development
Installation
Testing
Code Style
This project follows PSR-4 autoloading standard and PSR-12 coding style.
Available Methods
createPlayer(string $platType, string $playerId, string $currency)
getBalance(string $platType, string $playerId, string $currency)
getAllBalance(string $playerId, string $currency)
transferAll(string $playerId, string $currency)
getGameUrl(string $platType, string $playerId, string $gameType, string $currency, string $ingress, ?string $lang = null, ?string $gameCode = null, ?string $returnUrl = null, ?string $oddsType = null)
getDemoUrl(string $platType, string $playerId, string $gameType, string $currency, string $ingress, ?string $lang = null, ?string $gameCode = null, ?string $returnUrl = null)
getRealTimeRecords(string $currency, ?string $pageNo = null, ?string $pageSize = null)
getOrderRecords(string $currency, string $orderIds)
getHistoryRecords(string $currency, string $startTime, string $endTime, ?string $pageNo = null, ?string $pageSize = null)
transfer(string $platType, string $playerId, string $currency, string $amount, string $type, ?string $orderId = null)
getTransferStatus(string $playerId, string $currency, string $orderId)
getGameCode(string $platType)
getQuota()
Error Handling
The SDK will throw InvalidArgumentException
for invalid parameters and return error responses in the following format:
Common error codes:
- 10000: Success
- 10001: Request error
- 10002: Player ID already exists
- 10003: Player ID not exists
- 10004: Player ID format error
- 10005: Transfer error
- 10006: Amount error
- 10007: Time format error
- 10008: Return URL error
- 10009: Frequent interface requests
- 10010: Game not support demo
- 10011: Order ID format error
- 10012: Order ID already exists
- 10013: Order ID not exists
- 10014: Insufficient quota
- 10015: Insufficient merchant balance
- 10403: IP restricted access
- 10404: Signature verification failed
- 10405: Missing parameter
- 10406: Too many parameters
- 10407: Platform code error
- 10408: Game type error
- 10409: Transfer type error
Support
For technical support or questions, please contact:
- Email: [email protected]
- Documentation: https://wiki.neapi.com
Contributing
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add some amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
License
MIT
All versions of ngapi with dependencies
PHP Build Version
Package Version
The package newngapi/ngapi contains the following files
Loading the files please wait ....