PHP code example of mamadali / yii2-aparat

1. Go to this page and download the library: Download mamadali/yii2-aparat 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/ */

    

mamadali / yii2-aparat example snippets


login
profile
userBySearch
profilecategories
video
categoryVideos
videoByUser
videoBySearch
videobytag

    'components' => [
        ...
        'aparat' => [
            'class' => 'mamadali\Aparat',
        ],
        ...
    ];

   $res = Yii::$app->aparat->profile([
           'username' => 'username',
       ]);