yana/dr

Yana - Quick Logs - PHP Log Parser

1.4.x-dev 2019-07-15 18:01 UTC

This package is auto-updated.

Last update: 2020-03-15 19:50:59 UTC


README

Build Status License

Quick Logs - Error Log Parser

Parse quickly your php errors and php warnings via a web browser. if you are tired of 'tail -f' or 'cat error_log' QuickLogs is your solution

Windows server and Unix Server compatible - yay !

Features

  • QuickLogs - Php Error Log

  • QuickAuthentication

Composer

composer require yana/dr

How To use it in your web page

<?php

require_once __DIR__.'vendor/autoload.php';

$authenticationInstance = new \Yana\Authentication\QuickAuthentication();
$quickLogs = new \Yana\Logs\QuickLogs($authenticationInstance);
$quickLogs->process();

Set Up PHP Error Log path in vendor/yana/dr/Yana/Logs/conf.php

<?php
    /**
     * Setup Error Log file
     *
     * @author    David Raleche
     * @link      david.raleche.com
     *
     * @since     2019-05-10
     **/

return [
    'error_log_path' => '/var/log/php-fpm/www-error.log',
    'error_log_path_backup' => __DIR__.'\demo\www-error.log'
];

Default Credentials

username : admin
password : davidr

Command Lines for PSR-2 Standard

./bin/phpcs -p --extensions=php --standard=PSR2 --error-severity=1 --warning-severity=0 ./src ./tests

Contributing

Feel free to submit Github Issues or pull requests.