iwalkalone/matrix-api
最新稳定版本:v1.3
Composer 安装命令:
composer require iwalkalone/matrix-api
包简介
PHP library to interact with Matrix Servers API.
README 文档
README
Description
Library to interact with Matrix servers API.
Install
Install with composer:
composer require iwalkalone/matrix-api
Or a specific version:
composer require iwalkalone/matrix-api ^1.0
How to use it
Authenticate with user and password to obtain an access_token:
$data = \iwalkalone\MatrixAPI::Authenticate("https://127.0.0.1:80", "user", "pass");
if ($data['status'] == 1) {
$access_token = $data['result']['access_token'];
} else {
print_r($data['result']); // It contains the error message and error code
}
If you implement an Appservice you can use as_token as access_token in functions.
You can check API specs here:
统计信息
- 总下载量: 92
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0-or-later
- 更新时间: 2025-09-10