Download the PHP package vektormuhammadlutfi/codeigniter-log-viewer without Composer

On this page you can find all versions of the php package vektormuhammadlutfi/codeigniter-log-viewer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package codeigniter-log-viewer

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:

Requirements

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:

  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:

  3. Create a new instance of the CILogViewer class:

  4. Call the showLogs method to display the logs in the log viewer:

  5. You can customize the behavior and appearance of the log viewer by modifying the configuration variables and view files as required.

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:

  2. Load the CILogViewer class in your controller or any other place where you want to use it:

  3. Create a new instance of the CILogViewer class:

  4. Call the showLogs method to display the logs in the log viewer:

  5. You can customize the behavior and appearance of the log viewer by modifying the configuration variables and view files as required.

API Usage

The CodeIgniter Log Viewer package also provides an API that allows you to programmatically access log files and perform operations.

  1. To retrieve a list of log files, send a GET request to /logs?api=list.

  2. To view the logs of a specific file, send a GET request to /logs?api=view&f=<file_name>, where <file_name> is the base64-encoded name of the log file.

  3. To delete a log file, send a GET request to /logs?api=delete&f=<file_name>, where <file_name> is the base64-encoded name of the log file you want to delete. You can also use &f=all to delete all log files.

  4. Make sure to handle the JSON response from the API and display it appropriately in your application.

Contributing

Contributions to this project are highly welcomed! If you encounter any issues or have suggestions for improvements, please feel free to open an issue or submit a pull request.

License

This project is licensed under the MIT license.

Credits

Resources


We hope you find the CodeIgniter Log Viewer package helpful for accessing and managing log files in your CodeIgniter 4 application. If you have any questions or need further assistance, please don't hesitate to reach out!


All versions of codeigniter-log-viewer with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package vektormuhammadlutfi/codeigniter-log-viewer contains the following files

Loading the files please wait ....