diff --git a/.github/workflows/fix-php-code-style-issues.yml b/.github/workflows/fix-php-code-style-issues.yml index 3097b89..084668a 100644 --- a/.github/workflows/fix-php-code-style-issues.yml +++ b/.github/workflows/fix-php-code-style-issues.yml @@ -11,7 +11,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: ref: ${{ github.head_ref }} @@ -19,6 +19,6 @@ jobs: run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress - name: Commit changes - uses: stefanzweifel/git-auto-commit-action@v5 + uses: stefanzweifel/git-auto-commit-action@v7 with: commit_message: Fix styling diff --git a/.github/workflows/phpstan.yml b/.github/workflows/phpstan.yml index bc44be9..954d415 100644 --- a/.github/workflows/phpstan.yml +++ b/.github/workflows/phpstan.yml @@ -17,7 +17,7 @@ jobs: steps: - name: Check out repository code - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Setup PHP uses: shivammathur/setup-php@v2 diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index ca691c9..d7b35ba 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -13,23 +13,17 @@ jobs: strategy: fail-fast: true matrix: - php: [ 8.4, 8.3, 8.2, 8.1 ] - laravel: [ "^12.0", "^11.0", "^10.0", "^9.0" ] + php: [ 8.4, 8.3, 8.2 ] + laravel: [ "^13.0", "^12.0" ] exclude: - - php: 8.1 - laravel: "^12.0" - - php: 8.1 - laravel: "^11.0" - - php: 8.4 - laravel: "^9.0" - - php: 8.3 - laravel: "^9.0" + - php: 8.2 + laravel: "^13.0" name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }} steps: - name: Checkout code - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Setup PHP uses: shivammathur/setup-php@v2 diff --git a/.github/workflows/update-changelog.yml b/.github/workflows/update-changelog.yml index 7437524..0aac0ff 100644 --- a/.github/workflows/update-changelog.yml +++ b/.github/workflows/update-changelog.yml @@ -10,7 +10,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: ref: main @@ -21,7 +21,7 @@ jobs: release-notes: ${{ github.event.release.body }} - name: Commit updated CHANGELOG - uses: stefanzweifel/git-auto-commit-action@v5 + uses: stefanzweifel/git-auto-commit-action@v7 with: branch: main commit_message: Update CHANGELOG diff --git a/README.md b/README.md index abc1e03..f6a7a71 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,8 @@

Vapor HTTP Logger

[![Latest Version on Packagist](https://img.shields.io/packagist/v/ageekdev/vapor-http-logger.svg?style=flat-square&logo=Packagist)](https://packagist.org/packages/ageekdev/vapor-http-logger) -[![Laravel 9.x](https://img.shields.io/badge/Laravel-9.x-red?style=flat-square&logo=Laravel)](https://laravel.com/docs/9.x) -[![Laravel 10.x](https://img.shields.io/badge/Laravel-10.x-red?style=flat-square&logo=Laravel)](http://laravel.com/docs/10.x) -[![Laravel 11.x](https://img.shields.io/badge/Laravel-11.x-red?style=flat-square&logo=Laravel)](http://laravel.com/docs/11.x) [![Laravel 12.x](https://img.shields.io/badge/Laravel-12.x-red?style=flat-square&logo=Laravel)](http://laravel.com/docs/12.x) +[![Laravel 13.x](https://img.shields.io/badge/Laravel-13.x-red?style=flat-square&logo=Laravel)](http://laravel.com/docs/13.x) [![GitHub Tests Action Status](https://img.shields.io/github/actions/workflow/status/ageekdev/vapor-http-logger/run-tests.yml?logo=github&label=tests&style=flat-square)](https://github.com/ageekdev/vapor-http-logger/actions?query=workflow%3Arun-tests+branch%3Amain) [![Total Downloads](https://img.shields.io/packagist/dt/ageekdev/vapor-http-logger.svg?style=flat-square&logo=Packagist)](https://packagist.org/packages/ageekdev/vapor-http-logger) diff --git a/composer.json b/composer.json index b09f0e8..708a80f 100644 --- a/composer.json +++ b/composer.json @@ -15,18 +15,18 @@ } ], "require": { - "php": "^8.1", - "illuminate/contracts": "^9.0|^10.0|^11.0|^12.0" + "php": "^8.2", + "illuminate/contracts": "^12.0|^13.0" }, "require-dev": { - "laravel/pint": "^1.5", - "larastan/larastan": "^2.4.1|^3.0", - "orchestra/testbench": "^7.31|^8.11|^9.0|^10.0", - "pestphp/pest": "^1.0|^2.0|^3.0", - "pestphp/pest-plugin-laravel": "^1.4|^2.0|^3.0", - "phpstan/extension-installer": "^1.1|^2.0", - "phpstan/phpstan-deprecation-rules": "^1.0|^2.0", - "phpstan/phpstan-phpunit": "^1.0|^2.0", + "laravel/pint": "^1.18", + "larastan/larastan": "^3.0", + "orchestra/testbench": "^10.0|^11.0", + "pestphp/pest": "^3.0|^4.0", + "pestphp/pest-plugin-laravel": "^3.0|^4.0", + "phpstan/extension-installer": "^1.4", + "phpstan/phpstan-deprecation-rules": "^2.0", + "phpstan/phpstan-phpunit": "^2.0", "roave/security-advisories": "dev-latest" }, "autoload": { diff --git a/config/http-logger.php b/config/http-logger.php index 48d03bd..3093fd1 100644 --- a/config/http-logger.php +++ b/config/http-logger.php @@ -1,5 +1,8 @@ \AgeekDev\HttpLogger\LogNonGetRequests::class, + 'log_profile' => LogNonGetRequests::class, /* * The log writer used to write the request to a log. * It should implement `LogWriter`. */ - 'log_writer' => \AgeekDev\HttpLogger\DefaultLogWriter::class, + 'log_writer' => DefaultLogWriter::class, /* * The log channel used to write the request. diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 8fd5244..e04bf5b 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,23 +1,29 @@ - - - - ./tests/ - - - - - - - - - - - - - - - ./src - - + + + + tests + + + + + src/ + + + + +