PHPackages                             vektormuhammadlutfi/codeigniter-log-viewer - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Logging &amp; Monitoring](/categories/logging)
4. /
5. vektormuhammadlutfi/codeigniter-log-viewer

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

vektormuhammadlutfi/codeigniter-log-viewer
==========================================

This is a simple Log Viewer for viewing Code Igniter 4 log files on the browser

1.1.7(2y ago)01.0k1MITPHPPHP &gt;=7.1

Since Jan 11Pushed 2y agoCompare

[ Source](https://github.com/vektormuhammadlutfi/codeigniter-log-viewer)[ Packagist](https://packagist.org/packages/vektormuhammadlutfi/codeigniter-log-viewer)[ RSS](/packages/vektormuhammadlutfi-codeigniter-log-viewer/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)DependenciesVersions (14)Used By (0)

**CodeIgniter Log Viewer with Composer**

The `CodeIgniter Log Viewer` package is a convenient library for viewing and managing log files in a CodeIgniter 4 application. It allows users to display logs, download log files, and perform other log-related operations easily.

A typical log view looks like this:

[![sample.png](sample.png)](sample.png)

Requirements
------------

[](#requirements)

- PHP 7.2 or later
- CodeIgniter 4

Installation via Composer
-------------------------

[](#installation-via-composer)

You can install the `CodeIgniter Log Viewer` package using Composer, which is the recommended method for managing dependencies in CodeIgniter 4 applications.

1. Require the library via Composer by running the following command in your terminal:

    ```
    composer require vektormuhammadlutfi/codeigniter-log-viewer:^1.0

    ```
2. Once the package is installed, you can load the `CILogViewer` class in your controller or any other place where you want to use it:

    ```
    use \VektorMuhammadLutfi\CodeIgniterLogViewer\CILogViewer;
    ```
3. Create a new instance of the `CILogViewer` class:

    ```
    $logViewer = new CILogViewer();
    ```
4. Call the `showLogs` method to display the logs in the log viewer:

    ```
    echo $logViewer->showLogs();
    ```
5. You can customize the behavior and appearance of the log viewer by modifying the configuration variables and view files as required.

Usage
-----

[](#usage)

To use the `CodeIgniter Log Viewer` package in your CodeIgniter 4 application, follow these steps:

1. Make sure that the Composer autoloader is properly set up in your application. If you don't have an `index.php` file in your public directory, create one and add the following lines:

    ```
