avametix/directapi 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

avametix/directapi

Composer 安装命令:

composer require avametix/directapi

包简介

An API wrapper for the DirectAdmin API

README 文档

README

DirectApi is a wrapper for the DirectAdmin API.

Latest Stable Version Total Downloads Latest Unstable Version License PHP Version Require

Installation

Use the package manager composer to install DirectApi.

composer require avametix/directapi

Usage

use Avametix\DirectApi;

// Create a new DirectApi instance logged in with user "username" and password "password"
$directapi = new DirectApi(
    'da.domain.io',
    'username',
    'password',
    'https',
    2222
);

// Get user domains
$domains = $directapi->get_api("SHOW_DOMAINS");

if ($domains === false) {
    die(
        "Something went wrong fetching domains for username,<br/>
        are you using the right password?"
        );
}

foreach ($domain in $domains) {
    echo $domain . "<br/>";
}

// Log-in as user via reseller (directapi is initialised with reseller or admin login)
$directapi->login_as('clientuser');

// ...

$directapi->logout();

All DirectAdmin API commands can be found in the DirectAdmin documentation.

Contributing

Contributions are primarily made by members of Avametix, however pull requests are welcome. Planning a major change? Please open an issue first and discuss your changes.

License

GNU General Public License

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPL-3.0-only
  • 更新时间: 2022-02-12

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固