1. Go to this page and download the library: Download p2made/p2y2-things-demo 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/ */
p2made / p2y2-things-demo example snippets
php composer.phar
public function actions()
{
return [
...
'page' => [
'class' => 'yii\web\ViewAction',
],
];
}