# Getting Started

## Installation

Hi There,

Here we will help you install PHPMyLicense.

First, of course, download the Software Package and License Certificate from CodeCanyon. You can found it in [this page](https://codecanyon.net/downloads).

Then, unzip the file you just downloaded, and carefull take a look on the ReadMe.txt file. I promiss, is just a few words.&#x20;

You'll need to upload only the ***/Application*** folder to your server. Be advised: some Linux enviroments when you unzip, get rid of the .htaccess file. Please check, is very important.

So, after upload all files, just hit **exampledomain.net/yourfolder** and wait to PHPMyLicense process and take you to the Install Page. It looks just like this:

![](https://2428543159-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LThEnY4SzN4_Z8IMkOg%2F-LThJQWX21D52g9grS5G%2F-LThKMe319fgnTdZaN9_%2FuhAANY9_0a1C6_0nXtaRKSp5E4glL07fzg.png?alt=media\&token=6816ddd9-5519-48cd-b985-a737067cf787)

Then, press next and input your Purchase Code located in your License Certificate you downloaded in CodeCanyon Downloads Page.

![](https://2428543159-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LThEnY4SzN4_Z8IMkOg%2F-LThJQWX21D52g9grS5G%2F-LThKfj_mQzBACfTyUN-%2FJujAhOD02Q-rlImwbcVBdhjvJqZBFu2x0w.png?alt=media\&token=efe8b9e5-38eb-4f47-88b2-0b57c566ae6f)

After that, you will be taken to Requisite Veritication Page. PHPMyLicense needs some configurations and modules to be present in your server to work fine. And check the file and folder permissions too. If everything is black and avaiable, just click Next.

![](https://2428543159-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LThEnY4SzN4_Z8IMkOg%2F-LThJQWX21D52g9grS5G%2F-LThKmx9Wa1KiZoikgUG%2F8CQKnzZ7RagFq6vIDEEfu_RD3NdB73gpUw.png?alt=media\&token=b73cedc1-f78c-4982-a711-74302ff1b11d)

In the next page, you need to double check the Website URL and Full Installation Path. This is very important. But generally, PHPMyLicense don't mess up and fills with the correct information.

In the 5th page, is time to fill your Database Login Information. Create the database in your Server just the way you do normally, and then input the login informations prompted. Easy, right?

![](https://2428543159-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LThEnY4SzN4_Z8IMkOg%2F-LThJQWX21D52g9grS5G%2F-LThKw9ZZTqd8Hzeh-eo%2FLvfEx7onwwieV2sIhBuiR3S2JXBRJd1ESA.png?alt=media\&token=e55c097a-f2a2-449d-8939-f29112eb2577)

Click next when you done. At this time, PML will run all preinstall checks and ask you to confirm. Clicking next again, all the magic will be done, and in few seconds, PHPMyLicense will be installed.

After that, you will be prompted to Fill your personal informations to insert your Admin Account. Then, everything is good to go!&#x20;

For security reasons, delete the Install Folder to avoid any problems, okay?

But, if you still have questions about Installing PHPMyLicense, watch this video: <https://www.youtube.com/watch?v=1BmFDhG-c28>

If you have any other questions, open a ticket!

Regards.


# Changelog

## 3.7.0 - 06/05/2020

### Fixed

* Fixed bug in Protection Class
* Fixed Slow Connection Bug
* Fixed bugs in Cryptography and Signature Handler
* Minor bug fixed

### Added

* Full support to PHP 7.2 and newer
* Support for OpenSSL
* New template for Protection Class
* Better Customer Support Experience
* License Management via API

### Removed

* MCrypt Library (Check FAQ for futher informations)
* Minor Outdated Libraries

### Updated

* Dependencies
* Crypto Libraries

## 3.5.16 - 27/11/2018

### Fixed

* Bugs in License Verification API
* Fixed bug that locked PHPMyLicense even with a valid Purchase Code.

### Changed

* Ajax Handler Refactored

### Added

* Support to PHP 7.x
* Offline Mode
* PMLv4 Transition/Migration Modules


# PHPMyLicense API

## Validate License by Hostname

<mark style="color:blue;">`GET`</mark> `https://yourpmlinstall.tld/api/validate/host/:host/:product`

Validate your licenses by Hostname.

#### Path Parameters

| Name    | Type    | Description                                |
| ------- | ------- | ------------------------------------------ |
| host    | string  | Server Host, Domain or IP Address.         |
| product | integer | Product ID. Can be found at Products Page. |

{% tabs %}
{% tab title="200 License is Valid" %}

```javascript
{
    "status":200,
    "message":"License is valid.",
    "parameters":{
        "param":""
    },
    "licensedata":{
        "domain":"kkk.com",
        "customer_email":"ssp@s.com",
        "licensekey":"PML-204E-68G0-P2TH-H3Q21svc",
        "expirydate":"1545962400",
        "issued-by":"2",
        "comments":"komen"
    },
    "signature":"ftAX+sQMlGv+neK5utf9MTHNKHU0nYzOkb39hbxgFTIJfcoutNkvw6794C4utypAgqeM2EqX\/qCSRQ+ViuGcFsAqUX5wad9hhIj968U8LgQ+SedXpCdtSSd448zvdcjijDZq53Hm1Z3gwcsfQp\/ESbsPl2BnH\/0OKo+T7gmbueMkSJhxPrVWS3SWdNsX8fL5nnlMYDrFAOVeUHVseElgkeDM+un06yI3o8WkIisVv\/UxCBJW46w7kL\/C6rrJ+ngERxwCRZi+rBz7M\/XCVU1MBy8ngae6iLJ+5wY+YRPzPo4PksGA3\/XJfY2bS3KaeOFVb4DvRBwGxD3QIf7ycBe\/0Q=="
}
```

{% endtab %}

{% tab title="403 " %}

```javascript
{
    "status":403,
    "message":"Your license is inactive. Maybe, you need to activate it.",
    "signature":"VQRNusCXtbGY6DlEkUYN0h8acOycSTLPwRuPmu1RghVW8CIbxQnZE9BTddJjaUI2j7McvZXdwlPNB2wT843TePk5KXv2DphSw0jpSpwHwA28HA8QLubW2Q2wqOiJeDBe69ZZl9OiunwEThSOheEuoqFVGnb2YSWnGJHlAuQCKD9FGpnQMgDZQQOLqgu8VbMWgisCDdMvipy+quwB5UkjZONjy3fYfRGQ3duFYO2\/TviytvQLC7w8\/JRpkMqXey9zTXDXTkaRcfO+MN7nqy2h9v2McmArkq6t2q4hw+5psySpEILjrQCJUiuElw0411wYUolx2yKYhwWLQF3ORhaQAg==",
    "signaturetype":"raw_base64"
}
```

{% endtab %}

{% tab title="404 Could not find a cake matching this query." %}

```javascript
{
    "status":404,
    "message":"License not Found",
    "signature":"rZ8Ut8N4FP07fP4plW00ZzuZPAxzSKSV3r+UPVdaI2Yoqu6QOmVTxPx20f+WCI6R+7u4uewtocRVtAL2cQVLNSN8pwQbbT7RI1ABXCbZwxT7rpHUa8RLVn70ov6Ewgeuf9bfU5fYmQnDGJTfFUI4tmO\/2hINAUtLknmlHyY9ZA46SnLStFs0J6itDkCIew4\/a7C3nO0s666WQGEQGYsrrFnkX5L02L5Kwpq1b7dh2DgNPqgDkScXCY6xNvoalHT3siCaZrzp8vnJ2Epe8ny5NGg9padc86OgoMMofRfyGLjJRRNzdN5Nyj1mmw3\/kYUmz0fxZB44jdZixM+sUZsEiA=="
}
```

{% endtab %}
{% endtabs %}

## Validate LIcense by License Key&#x20;

<mark style="color:blue;">`GET`</mark> `https://yourpmlinstall.tld/api/validate/licensekey/:licensekey/:product`

#### Path Parameters

| Name       | Type    | Description                                |
| ---------- | ------- | ------------------------------------------ |
| licensekey | string  | Your customer's license key.               |
| product    | integer | Product ID. Can be found at Products Page. |

{% tabs %}
{% tab title="200 " %}

```
{
    "status":200,
    "message":"License is valid.",
    "parameters":{
        "param":""
    },
    "licensedata":{
        "domain":"kkk.com",
        "customer_email":"ssp@s.com",
        "licensekey":"PML-204E-68G0-P2TH-H3Q21svc",
        "expirydate":"1545962400",
        "issued-by":"2",
        "comments":"komen"
    },
    "signature":"ftAX+sQMlGv+neK5utf9MTHNKHU0nYzOkb39hbxgFTIJfcoutNkvw6794C4utypAgqeM2EqX\/qCSRQ+ViuGcFsAqUX5wad9hhIj968U8LgQ+SedXpCdtSSd448zvdcjijDZq53Hm1Z3gwcsfQp\/ESbsPl2BnH\/0OKo+T7gmbueMkSJhxPrVWS3SWdNsX8fL5nnlMYDrFAOVeUHVseElgkeDM+un06yI3o8WkIisVv\/UxCBJW46w7kL\/C6rrJ+ngERxwCRZi+rBz7M\/XCVU1MBy8ngae6iLJ+5wY+YRPzPo4PksGA3\/XJfY2bS3KaeOFVb4DvRBwGxD3QIf7ycBe\/0Q=="
}
```

{% endtab %}

{% tab title="403 " %}

```
{
    "status":403,
    "message":"Your license is inactive. Maybe, you need to activate it.",
    "signature":"VQRNusCXtbGY6DlEkUYN0h8acOycSTLPwRuPmu1RghVW8CIbxQnZE9BTddJjaUI2j7McvZXdwlPNB2wT843TePk5KXv2DphSw0jpSpwHwA28HA8QLubW2Q2wqOiJeDBe69ZZl9OiunwEThSOheEuoqFVGnb2YSWnGJHlAuQCKD9FGpnQMgDZQQOLqgu8VbMWgisCDdMvipy+quwB5UkjZONjy3fYfRGQ3duFYO2\/TviytvQLC7w8\/JRpkMqXey9zTXDXTkaRcfO+MN7nqy2h9v2McmArkq6t2q4hw+5psySpEILjrQCJUiuElw0411wYUolx2yKYhwWLQF3ORhaQAg==",
    "signaturetype":"raw_base64"
}
```

{% endtab %}

{% tab title="404 " %}

```
{
    "status":404,
    "message":"License not Found",
    "signature":"rZ8Ut8N4FP07fP4plW00ZzuZPAxzSKSV3r+UPVdaI2Yoqu6QOmVTxPx20f+WCI6R+7u4uewtocRVtAL2cQVLNSN8pwQbbT7RI1ABXCbZwxT7rpHUa8RLVn70ov6Ewgeuf9bfU5fYmQnDGJTfFUI4tmO\/2hINAUtLknmlHyY9ZA46SnLStFs0J6itDkCIew4\/a7C3nO0s666WQGEQGYsrrFnkX5L02L5Kwpq1b7dh2DgNPqgDkScXCY6xNvoalHT3siCaZrzp8vnJ2Epe8ny5NGg9padc86OgoMMofRfyGLjJRRNzdN5Nyj1mmw3\/kYUmz0fxZB44jdZixM+sUZsEiA=="
}
```

{% endtab %}
{% endtabs %}


# FAQ

## What is Sandbox in Product Management?

Sandbox will disable all license verification for that domain. It means that all API Calls for that product will return Valid, even if the license does not really exists or is suspended or blocked. Be careful!

## How can I use API Encryption?

Under construction...


