iqtool/ci3-log-viewer
最新稳定版本:v0.1
Composer 安装命令:
composer require iqtool/ci3-log-viewer
包简介
Log Viewer package adapted for CodeIgniter 3 (PHP 7.4+)
README 文档
README
A CodeIgniter 3 adaptation of opcodesio/log-viewer package compatible with PHP 7.4+.
Installation
-
Install via Composer:
composer require iqtool/ci3-log-viewer
-
Copy the config template from
vendor/iqtool/ci3-log-viewer/config/log_viewer.phpto yourapplication/config/log_viewer.php. -
Copy the view folder to
application/views/log_viewer/. -
Copy the controller file to
application/controllers/LogViewer.php. -
Copy the static assets (
app.js,app.css) from the package'sassets/to your public directory pathassets/iqtool/ci3-log-viewer/.
Configuration
Ensure that Composer Autoloading is enabled in your application/config/config.php:
$config['composer_autoload'] = TRUE;
Load the library in your code or via application/config/autoload.php:
$autoload['libraries'] = array('Ci3LogViewer');
Add routes to application/config/routes.php:
$route['log-viewer'] = 'LogViewer/index'; $route['log-viewer/api/files'] = 'LogViewer/get_files'; $route['log-viewer/api/files/(:any)/download'] = 'LogViewer/download_file/$1'; $route['log-viewer/api/files/(:any)'] = 'LogViewer/delete_file/$1';
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-06-10