承接 mrwebappdeveloper/hiddify-api-php 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

mrwebappdeveloper/hiddify-api-php

最新稳定版本:1.3.1

Composer 安装命令:

composer require mrwebappdeveloper/hiddify-api-php

包简介

PHP package (packagist) for interaction with Hiddify panel remotely.

README 文档

README

This is a third-party library For Hiddify


📑 TODO :

  • API

    • Misc

      • Is Conected
      • Get System Stats
    • User

      • Get user list
      • Get User Info + Servers & Time Remain
      • Add User
      • Del User
      • Update User
      • Del deactive Usres
      • Get Telegram Proxy If available
    • Admin

      • Get Admin list
      • Add New Admin
      • Del admin
    • Unit Tests

      • Add User
      • Del User
  • Support More Language

  • MISC

    • Write Doc
    • Error Handling

💡 Usage Php :

<?php

include('src/HiddifyApi.php');

$api = new hiddifyApi(
    '', //! https://domain.com
    '', //! hiddify hidden path
    '' //! admin secret
);

$api->is_connected(); // return bool

$api->getSystemStats(); // return array


/////----------- USER API -----------\\\\\

//! if success return user uuid else return false
$api->user()->create(name: 'MrWebappDeveloper',
                    package_days: 30,
                    package_size: 30,
                    telegram_id: null, // optional
                    comment: null, // optional
                    resetMod: 'no_reset'); // 'no_reset' default
                    
//! if success return user uuid else return false
$api->user()->update(name: 'MrWebappDeveloper',
                    package_days: 30,
                    package_size: 30,
                    uuid: "user uuid"
                    telegram_id: null, // optional
                    comment: null, // optional
                    resetMod: 'no_reset'); // 'no_reset' default
                    
$api->user()->delete(string $uuid); // returns bool

$api->user()->list(); // return array

$api->user()->find(string $uuid); // returns user details in an array and returns null if can't find.

?>

🤝 Contributing :

Contributions to this project are always welcome! Feel free to submit a pull request or create an issue if you encounter any problems.

📃 License :

This project is licensed under the MIT License. See the LICENSE file for more information.

统计信息

  • 总下载量: 33
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-02-28