PHP code example of mrgoon / aliyun-iot

1. Go to this page and download the library: Download mrgoon/aliyun-iot library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

mrgoon / aliyun-iot example snippets

 
$iot_service = new \Mrgoon\AliIot\AliIot('access key', 'access secret');
$response = $iot_service->queryDevice('product key', 'current page', 'page size');