PHP code example of uzdevid / yii2-header-checker
1. Go to this page and download the library: Download uzdevid/yii2-header-checker 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/ */
uzdevid / yii2-header-checker example snippets
public function behaviors(): array {
$behaviors = parent::behaviors();
$behaviors['HeaderCheck'] = [
'class' => HeaderCheckerFilter::class,
'actions' => [
'verify' => ['User-Agent', 'Device-Id', 'Device-Type'],
'refresh' => ['Refresh-Token']
],
];
return $behaviors;
}