mythicalsystems/aapanelapi 问题修复 & 功能扩展

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

邮箱: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);

mythicalsystems/aapanelapi 适用场景与选型建议

mythicalsystems/aapanelapi 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 133 次下载、GitHub Stars 达 0, 最近一次更新时间为 2023 年 08 月 06 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「AAPanel」 「mythicalsystems」 「aapanel-api」 「nayskutzu」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 mythicalsystems/aapanelapi 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 mythicalsystems/aapanelapi 我们能提供哪些服务?
定制开发 / 二次开发

基于 mythicalsystems/aapanelapi 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

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

GitHub 信息

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

其他信息

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