Skip to content

Commit

Permalink
Merge pull request #57 from fish3046/laravel11
Browse files Browse the repository at this point in the history
Support Laravel 11
  • Loading branch information
ytake authored May 8, 2024
2 parents 5598030 + e629f6e commit 57d50b5
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 22 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: ['8.1', '8.2']
php-versions: ['8.1', '8.2', '8.3']
name: PHP ${{ matrix.php-versions }} Test
steps:
- uses: actions/checkout@v2
Expand Down
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ fluent logger for laravel

## Versions

| Framework | Library |
|-----------------------|---------------------------------|
| Laravel / Lumen < v10 | ytake/laravel-fluent-logger: ^5 |
| Laravel / Lumen v10 | ytake/laravel-fluent-logger: ^6 |
| Framework | Library |
|------------------------|---------------------------------|
| Laravel / Lumen < v10 | ytake/laravel-fluent-logger: ^5 |
| Laravel / Lumen >= v10 | ytake/laravel-fluent-logger: ^6 |



Expand Down Expand Up @@ -232,7 +232,8 @@ You could use a tag format of `myapp.{{foo}}` to produce a tag of `myapp.bar`.

## Monolog processors

You can add processors to the monolog handlers by adding them to the `processors` array within the `fluent.php` config.
You can add [processors](https://seldaek.github.io/monolog/doc/01-usage.html#using-processors) to the Monolog handlers by adding them to
the `processors` array within the `fluent.php` config.

config/fluent.php:
```php
Expand Down
16 changes: 8 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,18 @@
"require": {
"php": "^8.1",
"fluent/logger": "^1.0",
"illuminate/log": "^10.0",
"illuminate/support": "^10.0",
"illuminate/config": "^10.0",
"illuminate/contracts": "^10.0",
"illuminate/container": "^10.0",
"illuminate/events": "^10.0",
"illuminate/log": "^10.0 | ^11.0",
"illuminate/support": "^10.0 | ^11.0",
"illuminate/config": "^10.0 | ^11.0",
"illuminate/contracts": "^10.0 | ^11.0",
"illuminate/container": "^10.0 | ^11.0",
"illuminate/events": "^10.0 | ^11.0",
"monolog/monolog": "^3.0"
},
"require-dev": {
"phpunit/phpunit": "^9.0",
"phpunit/phpunit": "^10.0",
"php-coveralls/php-coveralls": "^2.4",
"illuminate/filesystem": "^10.0",
"illuminate/filesystem": "^10.0 | ^11.0",
"phpstan/phpstan": "^1.10",
"slevomat/coding-standard": "^6.4",
"squizlabs/php_codesniffer": "^3.5",
Expand Down
18 changes: 10 additions & 8 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false" backupStaticAttributes="false" bootstrap="vendor/autoload.php" colors="true" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" processIsolation="false" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false" bootstrap="vendor/autoload.php" colors="true" processIsolation="false" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/11.1/phpunit.xsd" cacheDirectory=".phpunit.cache" backupStaticProperties="false">
<coverage>
<include>
<directory>./src</directory>
</include>
<exclude>
<directory>./src/config</directory>
<directory suffix="ServiceProvider.php">./src</directory>
</exclude>
<report>
<clover outputFile="tests/logs/clover.xml"/>
<text outputFile="php://stdout" showUncoveredFiles="false"/>
Expand All @@ -19,4 +12,13 @@
</testsuite>
</testsuites>
<logging/>
<source>
<include>
<directory>./src</directory>
</include>
<exclude>
<directory>./src/config</directory>
<directory suffix="ServiceProvider.php">./src</directory>
</exclude>
</source>
</phpunit>

0 comments on commit 57d50b5

Please sign in to comment.