Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/filefabrik/monolog
- Owner: Filefabrik
- License: mit
- Created: 2021-06-02T15:14:01.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-06-03T19:36:13.000Z (over 3 years ago)
- Last Synced: 2024-03-29T18:28:55.677Z (11 months ago)
- Language: PHP
- Size: 235 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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