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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package ngapi

NG API PHP SDK

NG游戏平台API的PHP SDK。此SDK提供了一种简单高效的方式来与NG游戏平台的API服务进行交互。

官方资源

系统要求

安装

使用方法

开发

安装

测试

代码规范

本项目遵循PSR-4自动加载标准和PSR-12编码风格。

可用方法

  1. createPlayer(string $platType, string $playerId, string $currency) - 创建玩家
  2. getBalance(string $platType, string $playerId, string $currency) - 获取玩家余额
  3. getAllBalance(string $playerId, string $currency) - 获取所有平台余额
  4. transferAll(string $playerId, string $currency) - 全部转账
  5. getGameUrl(string $platType, string $playerId, string $gameType, string $currency, string $ingress, ?string $lang = null, ?string $gameCode = null, ?string $returnUrl = null, ?string $oddsType = null) - 获取游戏URL
  6. getDemoUrl(string $platType, string $playerId, string $gameType, string $currency, string $ingress, ?string $lang = null, ?string $gameCode = null, ?string $returnUrl = null) - 获取试玩URL
  7. getRealTimeRecords(string $currency, ?string $pageNo = null, ?string $pageSize = null) - 获取实时记录
  8. getOrderRecords(string $currency, string $orderIds) - 获取订单记录
  9. getHistoryRecords(string $currency, string $startTime, string $endTime, ?string $pageNo = null, ?string $pageSize = null) - 获取历史记录
  10. transfer(string $platType, string $playerId, string $currency, string $amount, string $type, ?string $orderId = null) - 转账
  11. getTransferStatus(string $playerId, string $currency, string $orderId) - 获取转账状态
  12. getGameCode(string $platType) - 获取游戏代码
  13. getQuota() - 获取配额

错误处理

SDK会对无效参数抛出InvalidArgumentException异常,并以以下格式返回错误响应:

常见错误代码

游戏类型说明

设备类型说明

转账类型说明

技术支持

如需技术支持或有疑问,请联系:

贡献

  1. Fork本仓库
  2. 创建您的功能分支 (git checkout -b feature/amazing-feature)
  3. 提交您的更改 (git commit -m 'Add some amazing feature')
  4. 推送到分支 (git push origin feature/amazing-feature)
  5. 开启Pull Request

许可证

MIT


此文档为中文版本,如需查看英文版本请访问 README.en.md


All versions of ngapi with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0
guzzlehttp/guzzle Version ^6.5
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package newngapi/ngapi contains the following files

Loading the files please wait ...