saiashirwadinformatia / vesta-cp-api
VestaCP client for Laravel
1.3
2021-02-04 17:08 UTC
Requires
- guzzlehttp/guzzle: ^7.2
- laravel/framework: ^5.8|^6.0|^7.0|^8.0
This package is auto-updated.
Last update: 2024-12-17 11:03:34 UTC
README
Forked from - github-tabuna/VestaAPI
Powerful API client hosting VestaCP for Laravel
Installation
Via Composer
Going your project directory on shell and run this command:
$ composer require saiashirwadinformatia/vesta-cp-api
Publication
$ php artisan vendor:publish --provider="VestaCP\Providers\VestaServiceProvider"
Generate new API key
$ bash /usr/local/vesta/bin/v-generate-api-key
List Existing API Key's
$ ls -l /usr/local/vesta/data/keys/
Usage
Simple usage
use VestaCP\Facades\Vesta;
$backups = Vesta::server('default')->listUserBackups();
$accounts = Vesta::server('default')->listUserAccount();