cuteminded/directadmin-laravel
最新稳定版本:V3.0.0
Composer 安装命令:
composer require cuteminded/directadmin-laravel
包简介
Run DirectAdmin commands through your laravel application
README 文档
README
Run DirectAdmin commands through your laravel application
Installation
You can install the package via composer:
composer require cuteminded/directadmin-laravel
Add the Service Provider and Facade to your app.php config file if you're not using Package Discovery.
// config/app.php 'providers' => [ ... cuteminded\DirectadminLaravel\DirectAdminServiceProvider::class, ... ]; 'aliases' => [ ... 'DirectAdmin' => cuteminded\DirectadminLaravel\DirectAdmin::class, ... ];
Publish the config file using the artisan CLI tool:
php artisan vendor:publish --provider="cuteminded\DirectadminLaravel\DirectAdminServiceProvider"
.env keys
DIRECTADMIN_HOST="" DIRECTADMIN_DOMAIN="" DIRECTADMIN_USERNAME="" DIRECTADMIN_PASSWORD="" DIRECTADMIN_CACERT="cacert.pem"
Usage
Test the connection
Directadmin::checkConnection();
Current domain Information
Directadmin::domainInformation();
List User statistics
Directadmin::UserStatistics();
List email accounts of current domain
Directadmin::emailInformation();
List system information from a DirectAdmin server
Directadmin::systemInformation();
Domain pointers
// add a new pointer Directadmin::createDomainPointer('example.com',true); //remove a pointer Directadmin::removeDomainPointer('example.com',true);
- $pointer (string): The domain name to be added as a pointer.
- $alias (boolean, optional, default: true): Determines whether the pointer should be treated as an alias or not.
统计信息
- 总下载量: 4
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-07-29