PHP code example of taufiqrahman / yii2-apirestlog
1. Go to this page and download the library: Download taufiqrahman/yii2-apirestlog 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/ */
taufiqrahman / yii2-apirestlog example snippets
php yii migrate --migrationPath=@vendor/taufiqrahman/yii2-apirestlog/migrations
use Rahmansoft\Apirestlog\restlog;
class SomeController extends Controller
{
public function behaviors()
{
$behaviors = parent::behaviors();
$behaviors['restlog']=
[
'class' => restlog::class,
'LOG_ON_ERROR'=> true // get all error response, false value to disable error message in your log DB
];
return $behaviors;
}
php composer.phar