Download the PHP package hostinger/api-php-sdk without Composer

On this page you can find all versions of the php package hostinger/api-php-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 api-php-sdk

Hostinger API PHP SDK

About

This is a PHP SDK for the Hostinger API. For more information, please visit https://developers.hostinger.com.

Installation & Usage

Requirements

PHP 8.1 and later.

Composer

To install the package via Composer, run the following command:

Manual Installation

Download the files and include autoload.php:

Getting Started

Please follow the installation procedure and then run the following:

API Endpoints

All URIs are relative to https://developers.hostinger.com

Class Method HTTP request Description
BillingCatalogApi getCatalogItemListV1 GET /api/billing/v1/catalog Get catalog item list
BillingOrdersApi createNewServiceOrderV1 POST /api/billing/v1/orders Create new service order
BillingPaymentMethodsApi deletePaymentMethodV1 DELETE /api/billing/v1/payment-methods/{paymentMethodId} Delete payment method
BillingPaymentMethodsApi getPaymentMethodListV1 GET /api/billing/v1/payment-methods Get payment method list
BillingPaymentMethodsApi setDefaultPaymentMethodV1 POST /api/billing/v1/payment-methods/{paymentMethodId} Set default payment method
BillingSubscriptionsApi cancelSubscriptionV1 DELETE /api/billing/v1/subscriptions/{subscriptionId} Cancel subscription
BillingSubscriptionsApi getSubscriptionListV1 GET /api/billing/v1/subscriptions Get subscription list
DNSSnapshotApi getSnapshotListV1 GET /api/dns/v1/snapshots/{domain} Get snapshot list
DNSSnapshotApi getSnapshotV1 GET /api/dns/v1/snapshots/{domain}/{snapshotId} Get snapshot
DNSSnapshotApi restoreSnapshotV1 POST /api/dns/v1/snapshots/{domain}/{snapshotId}/restore Restore snapshot
DNSZoneApi deleteZoneRecordsV1 DELETE /api/dns/v1/zones/{domain} Delete zone records
DNSZoneApi getRecordsV1 GET /api/dns/v1/zones/{domain} Get records
DNSZoneApi resetZoneRecordsV1 POST /api/dns/v1/zones/{domain}/reset Reset zone records
DNSZoneApi updateZoneRecordsV1 PUT /api/dns/v1/zones/{domain} Update zone records
DNSZoneApi validateZoneRecordsV1 POST /api/dns/v1/zones/{domain}/validate Validate zone records
DomainsAvailabilityApi checkDomainAvailabilityV1 POST /api/domains/v1/availability Check domain availability
DomainsForwardingApi createForwardingDataV1 POST /api/domains/v1/forwarding Create forwarding data
DomainsForwardingApi deleteForwardingDataV1 DELETE /api/domains/v1/forwarding/{domain} Delete forwarding data
DomainsForwardingApi getForwardingDataV1 GET /api/domains/v1/forwarding/{domain} Get forwarding data
DomainsPortfolioApi disableDomainLockV1 DELETE /api/domains/v1/portfolio/{domain}/domain-lock Disable domain lock
DomainsPortfolioApi disablePrivacyProtectionV1 DELETE /api/domains/v1/portfolio/{domain}/privacy-protection Disable privacy protection
DomainsPortfolioApi enableDomainLockV1 PUT /api/domains/v1/portfolio/{domain}/domain-lock Enable domain lock
DomainsPortfolioApi enablePrivacyProtectionV1 PUT /api/domains/v1/portfolio/{domain}/privacy-protection Enable privacy protection
DomainsPortfolioApi getDomainListV1 GET /api/domains/v1/portfolio Get domain list
DomainsPortfolioApi getDomainV1 GET /api/domains/v1/portfolio/{domain} Get domain
DomainsPortfolioApi purchaseNewDomainV1 POST /api/domains/v1/portfolio Purchase new domain
DomainsPortfolioApi updateNameserversV1 PUT /api/domains/v1/portfolio/{domain}/nameservers Update nameservers
DomainsWHOISApi createWHOISProfileV1 POST /api/domains/v1/whois Create WHOIS profile
DomainsWHOISApi deleteWHOISProfileV1 DELETE /api/domains/v1/whois/{whoisId} Delete WHOIS profile
DomainsWHOISApi getWHOISProfileListV1 GET /api/domains/v1/whois Get WHOIS profile list
DomainsWHOISApi getWHOISProfileUsageV1 GET /api/domains/v1/whois/{whoisId}/usage Get WHOIS profile usage
DomainsWHOISApi getWHOISProfileV1 GET /api/domains/v1/whois/{whoisId} Get WHOIS profile
VPSActionsApi getActionListV1 GET /api/vps/v1/virtual-machines/{virtualMachineId}/actions Get action list
VPSActionsApi getActionV1 GET /api/vps/v1/virtual-machines/{virtualMachineId}/actions/{actionId} Get action
VPSBackupsApi deleteBackupV1 DELETE /api/vps/v1/virtual-machines/{virtualMachineId}/backups/{backupId} Delete backup
VPSBackupsApi getBackupListV1 GET /api/vps/v1/virtual-machines/{virtualMachineId}/backups Get backup list
VPSBackupsApi restoreBackupV1 POST /api/vps/v1/virtual-machines/{virtualMachineId}/backups/{backupId}/restore Restore backup
VPSDataCentersApi getDataCentersListV1 GET /api/vps/v1/data-centers Get data centers list
VPSFirewallApi activateFirewallV1 POST /api/vps/v1/firewall/{firewallId}/activate/{virtualMachineId} Activate firewall
VPSFirewallApi createFirewallRuleV1 POST /api/vps/v1/firewall/{firewallId}/rules Create firewall rule
VPSFirewallApi createNewFirewallV1 POST /api/vps/v1/firewall Create new firewall
VPSFirewallApi deactivateFirewallV1 POST /api/vps/v1/firewall/{firewallId}/deactivate/{virtualMachineId} Deactivate firewall
VPSFirewallApi deleteFirewallRuleV1 DELETE /api/vps/v1/firewall/{firewallId}/rules/{ruleId} Delete firewall rule
VPSFirewallApi deleteFirewallV1 DELETE /api/vps/v1/firewall/{firewallId} Delete firewall
VPSFirewallApi getFirewallListV1 GET /api/vps/v1/firewall Get firewall list
VPSFirewallApi getFirewallV1 GET /api/vps/v1/firewall/{firewallId} Get firewall
VPSFirewallApi syncFirewallV1 POST /api/vps/v1/firewall/{firewallId}/sync/{virtualMachineId} Sync firewall
VPSFirewallApi updateFirewallRuleV1 PUT /api/vps/v1/firewall/{firewallId}/rules/{ruleId} Update firewall rule
VPSMalwareScannerApi getScanMetricsV1 GET /api/vps/v1/virtual-machines/{virtualMachineId}/monarx Get scan metrics
VPSMalwareScannerApi installMonarxV1 POST /api/vps/v1/virtual-machines/{virtualMachineId}/monarx Install Monarx
VPSMalwareScannerApi uninstallMonarxV1 DELETE /api/vps/v1/virtual-machines/{virtualMachineId}/monarx Uninstall Monarx
VPSOSTemplatesApi getTemplateListV1 GET /api/vps/v1/templates Get template list
VPSOSTemplatesApi getTemplateV1 GET /api/vps/v1/templates/{templateId} Get template
VPSPTRRecordsApi createPTRRecordV1 POST /api/vps/v1/virtual-machines/{virtualMachineId}/ptr Create PTR record
VPSPTRRecordsApi deletePTRRecordV1 DELETE /api/vps/v1/virtual-machines/{virtualMachineId}/ptr Delete PTR record
VPSPostInstallScriptsApi createPostInstallScriptV1 POST /api/vps/v1/post-install-scripts Create post-install script
VPSPostInstallScriptsApi deleteAPostInstallScriptV1 DELETE /api/vps/v1/post-install-scripts/{postInstallScriptId} Delete a post-install script
VPSPostInstallScriptsApi getPostInstallScriptListV1 GET /api/vps/v1/post-install-scripts Get post-install script list
VPSPostInstallScriptsApi getPostInstallScriptV1 GET /api/vps/v1/post-install-scripts/{postInstallScriptId} Get post-install script
VPSPostInstallScriptsApi updatePostInstallScriptV1 PUT /api/vps/v1/post-install-scripts/{postInstallScriptId} Update post-install script
VPSPublicKeysApi attachPublicKeyV1 POST /api/vps/v1/public-keys/attach/{virtualMachineId} Attach public key
VPSPublicKeysApi createNewPublicKeyV1 POST /api/vps/v1/public-keys Create new public key
VPSPublicKeysApi deleteAPublicKeyV1 DELETE /api/vps/v1/public-keys/{publicKeyId} Delete a public key
VPSPublicKeysApi getPublicKeyListV1 GET /api/vps/v1/public-keys Get public key list
VPSRecoveryApi startRecoveryModeV1 POST /api/vps/v1/virtual-machines/{virtualMachineId}/recovery Start recovery mode
VPSRecoveryApi stopRecoveryModeV1 DELETE /api/vps/v1/virtual-machines/{virtualMachineId}/recovery Stop recovery mode
VPSSnapshotsApi createSnapshotV1 POST /api/vps/v1/virtual-machines/{virtualMachineId}/snapshot Create snapshot
VPSSnapshotsApi deleteSnapshotV1 DELETE /api/vps/v1/virtual-machines/{virtualMachineId}/snapshot Delete snapshot
VPSSnapshotsApi getSnapshotV1 GET /api/vps/v1/virtual-machines/{virtualMachineId}/snapshot Get snapshot
VPSSnapshotsApi restoreSnapshotV1 POST /api/vps/v1/virtual-machines/{virtualMachineId}/snapshot/restore Restore snapshot
VPSVirtualMachineApi getAttachedPublicKeysV1 GET /api/vps/v1/virtual-machines/{virtualMachineId}/public-keys Get attached public keys
VPSVirtualMachineApi getMetricsV1 GET /api/vps/v1/virtual-machines/{virtualMachineId}/metrics Get metrics
VPSVirtualMachineApi getVirtualMachineListV1 GET /api/vps/v1/virtual-machines Get virtual machine list
VPSVirtualMachineApi getVirtualMachineV1 GET /api/vps/v1/virtual-machines/{virtualMachineId} Get virtual machine
VPSVirtualMachineApi purchaseNewVirtualMachineV1 POST /api/vps/v1/virtual-machines Purchase new virtual machine
VPSVirtualMachineApi recreateVirtualMachineV1 POST /api/vps/v1/virtual-machines/{virtualMachineId}/recreate Recreate virtual machine
VPSVirtualMachineApi resetHostnameV1 DELETE /api/vps/v1/virtual-machines/{virtualMachineId}/hostname Reset hostname
VPSVirtualMachineApi restartVirtualMachineV1 POST /api/vps/v1/virtual-machines/{virtualMachineId}/restart Restart virtual machine
VPSVirtualMachineApi setHostnameV1 PUT /api/vps/v1/virtual-machines/{virtualMachineId}/hostname Set hostname
VPSVirtualMachineApi setNameserversV1 PUT /api/vps/v1/virtual-machines/{virtualMachineId}/nameservers Set nameservers
VPSVirtualMachineApi setPanelPasswordV1 PUT /api/vps/v1/virtual-machines/{virtualMachineId}/panel-password Set panel password
VPSVirtualMachineApi setRootPasswordV1 PUT /api/vps/v1/virtual-machines/{virtualMachineId}/root-password Set root password
VPSVirtualMachineApi setupNewVirtualMachineV1 POST /api/vps/v1/virtual-machines/{virtualMachineId}/setup Setup new virtual machine
VPSVirtualMachineApi startVirtualMachineV1 POST /api/vps/v1/virtual-machines/{virtualMachineId}/start Start virtual machine
VPSVirtualMachineApi stopVirtualMachineV1 POST /api/vps/v1/virtual-machines/{virtualMachineId}/stop Stop virtual machine

Models


All versions of api-php-sdk with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
ext-curl Version *
ext-json Version *
ext-mbstring Version *
guzzlehttp/guzzle Version ^7.4.5
guzzlehttp/psr7 Version ^2.0
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 hostinger/api-php-sdk contains the following files

Loading the files please wait ....