Skip to content

Commit

Permalink
Merge pull request #1 from alex-patterson-webdev/feature/0.1.0
Browse files Browse the repository at this point in the history
- Range of new Handler factories for existing Monolog classes ErrorLo…
  • Loading branch information
alex-patterson-webdev authored Mar 20, 2022
2 parents 02ad688 + 31ac942 commit 578058d
Show file tree
Hide file tree
Showing 30 changed files with 1,680 additions and 670 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ vendor/
.idea/
composer.phar
.phpunit.result.cache
test/coverage/clover.xml
test/coverage/
.php_cs.cache
.php-cs-fixer.cache
File renamed without changes.
20 changes: 19 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,22 @@ Monolog integration module for Laminas Applications

Installation via [Composer](https://getcomposer.org).

require alex-patterson-webdev/laminas-monolog ^1
require alex-patterson-webdev/laminas-monolog ^0.1

Register the modules services with the Laminas Service Manager by adding the module namespace to your applications `config/modules.config.php` file.

// config/modules.config.php
return [
// ...
'Arp\\LaminasMonolog',
// ...
];

## Loggers

The easiest way to create a new Monolog logger is via configuration options. The `Arp\\Monolog` provides factory classes to allow
for _most_ of the default Monolog features to be optionally included, without having to write any code.




21 changes: 11 additions & 10 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,16 @@
],
"require" : {
"php": ">=7.4 || >=8.0",
"alex-patterson-webdev/laminas-factory" : "dev-feature/3.0.0",
"monolog/monolog" : "^2.2"
"alex-patterson-webdev/laminas-factory" : "^3.0.0",
"monolog/monolog" : "^2.2",
"ext-json": "*"
},
"require-dev" : {
"phpspec/prophecy": "^1.15.0",
"phpunit/phpunit": "^9.5",
"squizlabs/php_codesniffer": "^3.5",
"phpstan/phpstan": ">=0.12",
"friendsofphp/php-cs-fixer": "^2.18"
"squizlabs/php_codesniffer": "^3.6",
"phpstan/phpstan": "^1.4.8",
"friendsofphp/php-cs-fixer": "^3.6.0"
},
"autoload": {
"psr-4": {
Expand All @@ -42,14 +44,13 @@
"@arp:check",
"@arp:lint",
"@arp:fix",
"@arp:analyse-max",
"@arp:analyse",
"@arp:unit-test"
],
"arp:check": "php vendor/bin/phpcs -s --standard=phpcs.xml --colors src/ test/",
"arp:lint": "php vendor/bin/php-cs-fixer fix --dry-run --config=.php_cs.dist",
"arp:fix": "php vendor/bin/php-cs-fixer fix --config=.php_cs.dist",
"arp:analyse": "php vendor/bin/phpstan analyse src/ test/ --level=7",
"arp:analyse-max": "php vendor/bin/phpstan analyse src/ test/ --level=8",
"arp:lint": "php vendor/bin/php-cs-fixer fix --dry-run --verbose --config=.php-cs-fixer.dist",
"arp:fix": "php vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.dist",
"arp:analyse": "php vendor/bin/phpstan analyse -c phpstan.neon --level=7",
"arp:unit-test": "php vendor/bin/phpunit",
"arp:unit-test-with-coverage": [
"@putenv XDEBUG_MODE=coverage",
Expand Down
Loading

0 comments on commit 578058d

Please sign in to comment.