承接 mythicalsystems/aapanelapi 相关项目开发

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

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

mythicalsystems/aapanelapi

最新稳定版本:1.0.1

Composer 安装命令:

composer require mythicalsystems/aapanelapi

包简介

AAPanel-PHP is a library that allows you to interact with your AAPanel account using PHP. It provides a simple and easy-to-use API that you can use to manage your AAPanel account, such as creating and managing users, domains, and websites.

README 文档

README

AAPanel-PHP is a library that allows you to interact with your AAPanel account using PHP. It provides a simple and easy-to-use API that you can use to manage your AAPanel account, such as creating and managing users, domains, and websites.

This README file will guide you through the steps on how to use the AAPanel-PHP library.

Prerequisites

  • You must have an AAPanel account.
  • You must have enabled the API in your AAPanel account.
  • You must have your API secret key.
  • You must know your AAPanel IP address and port.

Instructions

  1. Enable the API in your AAPanel account.

  2. Generate a new API secret key.

  3. Enter your public IP address in the IP whitelist.

  4. Save your changes.

  5. Create a new file and paste the following code:

<?php

use mythicalsystems\aapanel\aapanel_api;

$aapanel = new aapanel_api();

$aapanel->key = 'YOUR_API_KEY';
$aapanel->url = 'YOUR_AAPANEL_IP_AND_PORT';

?>

Composer

This will be soon published as a composer package

Method list :

Show Logs


$aapanel->logs();

Add Site


$aapanel->addSite($domain, $path, $desc, $type_id = 0, $type = 'php', $phpversion = '73', $port = '80', $ftp = null, $ftpusername = null, $ftppassword = null, $sql = null, $userdbase = null, $passdbase = null, $setSsl = 0, $forceSsl = 0);

Add Sub Domain (must install DNS Manager with domain ready)


$aapanel->addSubDomain($subdomain,$maindomain,$iptarget);

Delete Sub Domain (must install DNS Manager with domain ready)


$aapanel->deleteSubDomain($subdomain, $mainDomain, $iptarget);

Update Sub Domain (must install DNS Manager with domain ready)


$aapanel->modifySubDomain($subdomain, $mainDomain, $iptarget, $id)

Unzip file (file must exist in server)

$aapanel->unzip($sourcefilepath,$destinationpath,$password = null);

Force HTTPS for site (site must exist in website tab)

$aapanel->forceHTTPS($sitename);

apply SSL for new domain/subdomain (site must exist in website tab)


$aapanel->applySSL($domain, $id_site);

Site list


$aapanel->siteList($limit,$page,$projectType,$search = null);

Disable Site


$aapanel->disableSite($id_site,$domain);

Enable Site


$aapanel->enableSite($id_site,$domain);

Import database file

$file = complete path


$aapanel->importDbase($file, $dbasename);

Edit file body


$aapanel->safeFileBody($databody,$filepath);

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-08-06

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固