iqtool/ci3-log-viewer

Log Viewer package adapted for CodeIgniter 3 (PHP 7.4+)

Maintainers

Package info

github.com/iqlearning/ci3-log-viewer

pkg:composer/iqtool/ci3-log-viewer

Statistics

Installs: 1

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v0.1 2026-06-10 07:29 UTC

This package is auto-updated.

Last update: 2026-06-10 07:32:12 UTC


README

A CodeIgniter 3 adaptation of opcodesio/log-viewer package compatible with PHP 7.4+.

Installation

  1. Install via Composer:

    composer require iqtool/ci3-log-viewer
  2. Copy the config template from vendor/iqtool/ci3-log-viewer/config/log_viewer.php to your application/config/log_viewer.php.

  3. Copy the view folder to application/views/log_viewer/.

  4. Copy the controller file to application/controllers/LogViewer.php.

  5. Copy the static assets (app.js, app.css) from the package's assets/ to your public directory path assets/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';