hostware returns structured information regarding the hosting, the product options and the customer itself.
Software licensing
With hostware, you can easily sell software products and add paid licensing to them. For that, enable the HwLicensing module in the module list.
Enable licensing feature
The licensing feature is hidden by default. To enable the feature, append the following string to your .env file in /var/www/hostware:
HOSTWARE_ENABLE_SOFTWARE_PRODUCTS=trueReload the cache:
cd /var/www/hostware && php artisan optimizeAfter that, you can enable the licensing module.
Manage software packages
In the administration sidebar you can find the new "Software" menu entry. Here you can manage one or multiple software packages. Each package can have multiple versions with a proper changelog and download link.
Also, each version can contain an encrypted as well as an open source version.
Configure software product
During product creation, you can now select the "SOFTWARE" type. Select the "HwLicensing" module for the provisioning as usual.
At the tab "Software" you can then select the desired software package which should be available for this product.
API for validation
hostware offers a REST API endpoint to validate the validity of a given license.
Validate (JSON)
POST/api/v1/license/{licenseKey}/verify
Replace the licensekey in the URL.
Headers
Name | Value |
|---|---|
Accept |
|
Response
Successful
On error case
hostware returns the property "error" with the message.
Validate (WHMCS Style)
Our customers can easily migrate from WHMCS to hostware. The local license verification code does not need to be adjusted, you just have to change the url. hostware will return the data 1:1 the same style as WHMCS so your integration does not break.
POST/api/v1/license/whmcs-verify
Body
Name | Description |
|---|---|
| The licensekey |
Response
Successful
hostware will return the same structure used by the WHMCS verification endpoint. That way, existing integrations wont break.