1. Go to this page and download the library: Download wolf-leo/phplogviewer 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/ */
wolf-leo / phplogviewer example snippets
public function test()
{
return (new \Wolfcode\PhpLogviewer\thinkphp\LogViewer())->fetch();
}
public function test()
{
return (new \Wolfcode\PhpLogviewer\laravel\LogViewer())->fetch();
}
// 如果项目中采用 laravel 组件
public function test()
{
return (new \Wolfcode\PhpLogviewer\webman\laravel\LogViewer())->fetch();
}
// 如果项目中采用 thinkphp 组件
public function test()
{
return (new \Wolfcode\PhpLogviewer\webman\thinkphp\LogViewer())->fetch();
}