Download the PHP package suxianjia/xianjia_getui_sdk without Composer

On this page you can find all versions of the php package suxianjia/xianjia_getui_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 xianjia_getui_sdk

xianjia_getui_sdk

xianjia_getui_sdk_code 是一个为 个推(Getui)推送服务 封装的 PHP SDK 和示例代码项目。它的主要目的是简化开发者将个推的消息推送能力集成到 PHP 后端服务中的流程,提供了一系列针对个推 REST API 的 PHP 封装方法,包括: 单播/批量 CID 或别名推送 绑定/解绑别名(alias) 绑定自定义标签 查询设备状态、用户别名、CID 等 黑名单管理 推送结果状态追踪

xianjia_getui_sdk

mermaid classDiagram class SDK { +__construct() +run() }

class HttpClient {
    +request()
}

class Cache {
    +get()
    +set()
}

class myConfig {
    +load()
}

class myApp {
    +execute()
}

SDK --> HttpClient
SDK --> Cache
SDK --> myConfig
myApp --> SDK


## 功能描述

1. **SDK**: 提供主入口功能,协调其他模块的工作。
2. **HttpClient**: 处理HTTP请求,支持与外部服务的通信。
3. **Cache**: 提供数据缓存功能,提升性能。
4. **myConfig**: 管理应用配置,支持动态加载。
5. **myApp**: 封装业务逻辑,调用SDK完成功能。

## 依赖关系

- 项目依赖通过 `composer.json` 管理。
- 核心模块依赖于 `src/Core` 目录下的实现。

核心价值:提供各种常见使用场景的调用范例,可直接运行测试

该目录下包含多个 PHP 脚本,展示如何使用 SDK 提供的接口,例如:

文件  功能说明
push_single_cid.php 向单个 CID 推送消息
push_single_alias.php   向单个别名推送消息
push_single_batch_cid.php / push_single_batch_alias.php 批量向多个 CID / 别名推送
find_alias.php  通过别名或 CID 查询用户信息
bind_alias.php  绑定 CID 和 别名
delete_batch_alias.php / delete_all_alias.php   批量或全部删除别名绑定
find_cid.php    查询 CID 相关信息
bind_custom_tag.php 绑定自定义标签
set_badge.php   设置应用角标数字(iOS)
add_blacklist.php / delete_blacklist.php    用户黑名单管理
✅ 每个示例都包含:
引入 autoload
初始化配置(通过 myConfig 或直接调用)
调用 myApp 的方法(如 push_single_cid()、find_alias())
打印返回的 JSON 结果
项目结构

src/: 存放源代码文件,包括核心功能、服务、客户端、配置、驱动、工厂、接口、ORM、服务器和站点地图等模块。
demo/: 包含一些示例文件和配置文件,用于演示如何使用该项目。
examples/: 可能包含更多的示例代码。
tests/: 测试文件目录。
vendor/: 第三方依赖库。

git filter-repo --path-glob '*.so' --invert-paths --force
git push origin --force --all

rm composer.lock
composer install --ignore-platform-reqs  # 临时忽略环境检查

rm composer.lock
php82 composer82.phar install  --ignore-platform-reqs 

composer update --dry-run

## License

This package is open-sourced software licensed under the [MIT license](LICENSE).

All versions of xianjia_getui_sdk with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0|>=8.3.3
ext-pdo Version *
ext-xmlwriter Version *
predis/predis Version ^2.2
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 suxianjia/xianjia_getui_sdk contains the following files

Loading the files please wait ...