/hiddify-api

Hiddify API

Primary LanguagePHPMIT LicenseMIT

Hiddify-API

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
      • Del deactive Usres
      • Get Telegram Proxy If available
    • Admin

      • Get Admin list
      • Add New Admin
      • Del admin
  • Support More Language

    • PHP 🐘 Code | Doc
    • Python 🐍 *need help
    • NodeJS ✨ *need help
    • MORE...
  • MISC

    • Write Doc
    • Error Handling

💡 Usage :

<?php

include('api.php');

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

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

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


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

$api->User->addUser(string $name,
                    int $package_days = 30,
                    int $package_size = 30,
                    ?string $telegram_id = null,
                    ?string $comment = null
                    string $resetMod = 'no_reset'); //! if success return user uuid else return false 

$api->User->getUserList(); // return array

$api->User->getUserdetais(string $uuid); // return array

?>

🤝 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.