Download the PHP package qixiangyun/sdk without Composer

On this page you can find all versions of the php package qixiangyun/sdk. 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 sdk

企享云 SDK (PHP)

基于 PHP 7.4 开发的企享云 SDK,提供完整的 API 访问接口和业务功能封装。

特性

安装

快速开始

基本使用

便捷获取客户端

SDK 提供了便捷的 get 方法来直接获取各个业务客户端:

链式操作

SDK 1.0.0 版本起支持链式操作,提供类型安全的响应对象,使API调用更加直观和易于维护。

基本链式操作

类型化数据处理

多级链式操作

类型安全操作

更多链式操作示例和最佳实践请参考:

配置选项

配置项 类型 必填 默认值 说明
appKey string 是 - 应用 Key
apiHost string 是 - API 主机地址
appSecret string 是 - 应用密钥
timeout int 否 30 请求超时时间(秒)
enableCache bool 否 true 是否启用 Token 缓存
cacheDir string 否 ./cache 缓存目录
maxRetries int 否 3 最大重试次数
retryDelay int 否 1000 重试延迟(毫秒)
enableLog bool 否 true 是否启用日志
logLevel string 否 info 日志级别

业务客户端

SDK 提供以下业务客户端,推荐使用便捷的 get 方法获取:

1. 发票客户端 (InvoiceClient)

发票查验、查询等业务

2. 企业管理客户端 (OrgClient)

企业信息管理

3. 账号管理客户端 (AccountClient)

账号管理相关业务

4. 登录客户端 (LoginClient)

登录相关业务

5. 税务申报客户端 (TaxClient)

税务申报业务

6. 个税客户端 (IitClient)

个人所得税相关业务

7. 办税人员管理客户端 (BsryglClient)

办税人员管理业务

8. 产品管理客户端 (ProductClient)

产品订购管理

9. 企业信息采集客户端 (OrgInfoClient)

企业信息采集

10. 消息客户端 (MessageClient)

消息通知管理

11. 办税小号客户端 (PhoneClient)

办税小号业务

12. 前台发票客户端 (QdfpClient)

前台发票业务

13. 商品信息客户端 (SpxxClient)

商品信息管理

14. 客户信息客户端 (KhxxClient)

客户信息管理

15. 认证客户端 (RzClient)

认证相关业务

16. 文件版式下载客户端 (SdFileClient)

文件版式下载业务

17. 发票入账客户端 (FpruzClient)

发票入账业务

18. 发票归集客户端 (GjClient)

发票归集业务

19. 企业税务信息客户端 (OrgTaxInfoClient)

企业税务信息业务

20. 企业税种客户端 (QysClient)

企业税种业务

21. 生产经营所得客户端 (ScjyClient)

生产经营所得业务

22. 社保客户端 (ShbxClient)

社保业务

23. 海关客户端 (CustomsClient)

海关业务

24. 出口退税客户端 (CktsClient)

出口退税业务

25. 企业采集客户端 (CollectClient)

企业采集业务

26. 风险查询客户端 (RiskClient)

风险查询业务

27. 企业洞察客户端 (InsightClient)

企业洞察业务

28. 政策法规客户端 (LegislationClient)

政策法规业务

错误处理

SDK 提供完整的异常处理机制:

高级功能

自定义客户端

您可以注册自定义客户端:

更新配置

直接访问 HTTP 客户端

项目结构

系统要求

示例代码

完整的示例代码请参考 examples 目录。

许可证

MIT License

支持

如有问题,请联系技术支持或提交 Issue。


All versions of sdk with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4 || ^8.0
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 qixiangyun/sdk contains the following files

Loading the files please wait ...