Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/filefabrik/monolog

Monolog from https://github.com/Seldaek/monolog/tree/2.2.0 for Joomla 3.* with typical joomla install manifest
https://github.com/filefabrik/monolog

Last synced: 1 day ago
JSON representation

Monolog from https://github.com/Seldaek/monolog/tree/2.2.0 for Joomla 3.* with typical joomla install manifest

Awesome Lists containing this project

README

        

# monolog for joomla

Monolog Library for Joomla 3.* with installer

## Installation in joomla

Copy this url and follow the installation steps as shown in the description.

```shell
https://github.com/FileFabrik/monolog/archive/refs/tags/1.0.0.zip
```

![install library into joomla 3.9](./docs/install-monolog-for-joomla.png)

## Monolog without Modifications

src completely from tag 2.2.0
https://github.com/Seldaek/monolog/tree/2.2.0

## Usage in your Joomla-Component| Plugin | Library | Module

Simple example to load the library into your Joomla-Component| Plugin | Library

```php
class MyClass{

/**
* @return string|null
*/
public static function isMonologLibrary()
{
// the index.php is a simple connector to composer psr4 autoload
$monologCustomDir = JPATH_LIBRARIES . '/monolog/index.php';

return (is_file($monologCustomDir)) ? $monologCustomDir : null;
}

/**
* @return bool
*/
public static function loadMonolog(): bool
{
$monologDir = self::isMonologLibrary();
if ($monologDir)
{
require_once $monologDir;

return true;
}

return false;
}

}
```

## Nginx-Users

...should disable the webserver-access from outside to the monolog library.
Have a look at the installed .htaccess file in this directory