Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/fix-php-code-style-issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
ref: ${{ github.head_ref }}

- name: Install Dependencies
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
2 changes: 1 addition & 1 deletion .github/workflows/phpstan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
16 changes: 5 additions & 11 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/update-changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
ref: main

Expand All @@ -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
Expand Down
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
<h1 align="center">Vapor HTTP Logger</h1>

[![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)

Expand Down
20 changes: 10 additions & 10 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
7 changes: 5 additions & 2 deletions config/http-logger.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
<?php

use AgeekDev\HttpLogger\DefaultLogWriter;
use AgeekDev\HttpLogger\LogNonGetRequests;

return [
/*
* Automatic registration of middleware will only happen if this setting is `true`
Expand All @@ -10,13 +13,13 @@
* The log profile which determines whether a request should be logged.
* It should implement `LogProfile`.
*/
'log_profile' => \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.
Expand Down
48 changes: 27 additions & 21 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,23 +1,29 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd" backupGlobals="false" bootstrap="vendor/autoload.php" colors="true" processIsolation="false" stopOnFailure="false" executionOrder="random" failOnWarning="true" failOnRisky="true" failOnEmptyTestSuite="true" beStrictAboutOutputDuringTests="true" cacheDirectory=".phpunit.cache" backupStaticProperties="false">
<testsuites>
<testsuite name="AGeekDev Test Suite">
<directory>./tests/</directory>
</testsuite>
</testsuites>
<coverage>
<report>
<html outputDirectory="build/coverage"/>
<text outputFile="build/coverage.txt"/>
<clover outputFile="build/logs/clover.xml"/>
</report>
</coverage>
<logging>
<junit outputFile="build/report.junit.xml"/>
</logging>
<source>
<include>
<directory suffix=".php">./src</directory>
</include>
</source>
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
backupGlobals="false"
bootstrap="vendor/autoload.php"
colors="true"
processIsolation="false"
stopOnFailure="false"
executionOrder="random"
failOnWarning="true"
failOnRisky="true"
failOnEmptyTestSuite="true"
beStrictAboutOutputDuringTests="true"
>
<testsuites>
<testsuite name="Ageekdev Test Suite">
<directory>tests</directory>
</testsuite>
</testsuites>
<source>
<include>
<directory suffix=".php">src/</directory>
</include>
</source>
<logging>
<junit outputFile="build/report.junit.xml"/>
</logging>
</phpunit>