Download the PHP package teaminfinitylk/laravel-hestiacp-sdk without Composer

On this page you can find all versions of the php package teaminfinitylk/laravel-hestiacp-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-hestiacp-sdk

Laravel HestiaCP SDK

A modern, fully-typed Laravel SDK for the HestiaCP Control Panel API.

PHP ^8.2 Laravel


Installation

Configuration

Publish the config file:

Add to your .env:

Note: HestiaCP's modern auth uses an access key pair in the format ACCESS_KEY_ID:SECRET_ACCESS_KEY.
Generate one from Admin → Access Keys in your HestiaCP panel.


Quick Start

Using the Facade

Using Dependency Injection

Manual / Standalone Usage


Resources

All resources are accessed via the client. Methods that operate on user data require $username as the first argument.

Users — users()


Web Domains — web()


Mail Domains & Accounts — mail()


Databases — databases()

HestiaCP automatically prefixes database and DB user names with the owner's username.
e.g. user john + database blog → stored as john_blog.


DNS — dns()


Cron Jobs — cron()


Backups — backups()


Firewall — firewall()


IP Addresses — ips()

System-level IPs. Requires admin privileges.


Packages — packages()


DTOs

Typed Data Transfer Objects are returned by list() calls:

DTO Returned by
UserDto users()->list()
WebDomainDto web()->list()
MailDomainDto mail()->list()
DatabaseDto databases()->list()
DnsRecordDto dns()->listRecords()

Exception Handling

HestiaCP Return Codes

Code Name Meaning
0 OK Success
1 E_ARGS Missing or invalid arguments
2 E_INVALID Invalid object value
3 E_NOTEXIST Object does not exist
4 E_EXISTS Object already exists
5 E_SUSPENDED Object is suspended
6 E_UNSUSPENDED Object is not suspended
7 E_INUSE Object is in use
8 E_LIMIT Resource limit reached
9 E_PASSWORD Invalid password
10 E_FORBIDDEN Command not permitted
11 E_DISABLED Feature disabled
15 E_CONNECT Connection error
17 E_DB Database error

Billing Automation Example

A common billing integration pattern — create a full hosting account:


Testing


Requirements


License

MIT © TeamInfinity PVT LTD


All versions of laravel-hestiacp-sdk with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package teaminfinitylk/laravel-hestiacp-sdk contains the following files

Loading the files please wait ...