This package is designed to work with VestaCP. It is friendly to other version of VestaCP such myVesta and Hestia Control Panel. We cannot guarantee it will be interoperable however, we are making an effort to test.
Currently Available API Packages
- Dns
- List DNS Zones (Domains)
- List Zone Records
- Zone CRUD
- Zone Record CRUD
- Domains
- List Users Domains
- Domain CRUD
composer require nextgi/vestacp-apiuse nextgi\VestaCP\VestaApi;
// Initiate SDK. Host example: https://vesta.panel.com:8083/api/
// We have chosen to not predict or extrapolate the host port and final endpoint to prevent too much guess work.
$vesta = new VestaApi('<host>', '<user>', '<password>');
$registrar->dns()->getZoneList('<dns_user>');{
"1": {
"RECORD": "@",
"TYPE": "NS",
"PRIORITY": "",
"VALUE": "exampledomain.com.",
"ID": "1",
"SUSPENDED": "no",
"TIME": "15:56:51",
"DATE": "2021-02-15"
}
}