PHP Library
Last updated
Last updated
Already installed the sublime application, if you don't have the sublime application please download it at the following link. Follow this tutorial.
Already installed the xampp application, if you don't have the xampp application please download it at the following link. Follow this tutorial.
Please download the antares php library and save it on your local computer by clicking the button below.
Firstly, register to create an antares account by clicking register now.
Next, fill in the email, password and name on Antares and click the create account button and wait for the notification.
Next, open the email to verify your Antares account.
After verification is complete, login to the Antares account that you have created
After logging into the Antares account, the next step is to click account, an example is shown in the image below
After clicking the account, the Access Key will appear and then click save access key to proceed to the next step.
Create application, if you have already created an application, ignore it and continue to the next process.
Next, click add to create an application on the Antares platform.
Create device, if you have already created the device you can ignore this process and proceed to the next step.
First create a device name as shown below, in this tutorial the device will be named "sensorSignal". then also select one of the active packages that will be used for the device to be created. In this tutorial using a trial package where the package is only active for seven days. If you have set the device name and selected the package then click +AddFirst create a device name as shown below, in this tutorial the device will be named "sensorSignal". then also select one of the active packages that will be used for the device to be created. In this tutorial using a trial package where the package is only active for seven days. If you have set the device name and selected the package then click +Add
A display of the device that has been created will appear. Data from the device will be entered and displayed in the table provided as shown below.
Next extract the php library that has been downloaded and then copy it to C: \xampp\htdocs, in this tutorial xampp is installed in the C directory.
Next, open xampp then turn on the apache module and wait until the module is green, for example the image as below.
Open the sublime/visualcode/notepad++ application then drag the example.php and Antares.php that have been copied to the xampp htdocs.
Next, use the script section in example.php and also fill in the variables according to the example below. For other lines, you can comment firs
The next step is to open http://localhost/antares-php/example.php (according to the storage folder in htdocs) in the browser, then the following results will appear:
Open the sublime/visualcode/notepad++ application then drag the example.php and Antares.php that have been copied to the xampp htdocs.
Next, use the script section in example.php and also fill in the variables according to the example below. For other lines, you can comment first
The next step is to open http://localhost/antares-php/example.php (according to the storage folder in htdocs) in the browser, then the following results will appear:
Open the sublime/visualcode/notepad++ application then drag the example.php and Antares.php that have been copied to the xampp htdocs.
Next, use the script section in example.php and also fill in the variables according to the example below. For other lines, you can comment first
The next step is to open http://localhost/antares-php/example.php (according to the storage folder in htdocs) in the browser, then the following results will appear: