Skip to content

Commit

Permalink
Add laravel v11 support
Browse files Browse the repository at this point in the history
  • Loading branch information
kitloong committed Mar 3, 2024
1 parent 9f62604 commit 9a545bb
Show file tree
Hide file tree
Showing 3 changed files with 71 additions and 64 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ jobs:
- laravel: 10.*
php: 8.2
stability: prefer-stable
- laravel: 11.*
php: 8.3
stability: prefer-stable

name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }}

Expand Down
70 changes: 38 additions & 32 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,44 +1,50 @@
{
"name": "kitloong/laravel-app-logger",
"description": "Laravel log for your application",
"keywords": ["laravel", "log", "query", "request", "performance"],
"name": "kitloong/laravel-app-logger",
"description": "Laravel log for your application",
"keywords": [
"laravel",
"log",
"query",
"request",
"performance"
],
"homepage": "https://github.com/kitloong/laravel-app-logger",
"license": "MIT",
"authors": [
{
"name": "Kit Loong",
"email": "[email protected]"
}
],
"require": {
"php": ">=7.1.3",
"illuminate/support": "^5.8|^6.0|^7.0|^8.0|^9.0|^10.0",
"license": "MIT",
"authors": [
{
"name": "Kit Loong",
"email": "[email protected]"
}
],
"require": {
"php": ">=7.1.3",
"illuminate/support": "^5.8|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0",
"spatie/laravel-http-logger": "^1.0",
"ext-json": "*"
},
"require-dev": {
"orchestra/testbench": "^3.8|^4.0|^5.0|^6.0|^7.0|^8.0",
"orchestra/testbench": "^3.8|^4.0|^5.0|^6.0|^7.0|^8.0|^9.0",
"squizlabs/php_codesniffer": "^3.5",
"mockery/mockery": "^1.0",
"friendsofphp/php-cs-fixer": "^2.17|^3.0"
"mockery/mockery": "^1.0",
"friendsofphp/php-cs-fixer": "^2.17|^3.0"
},
"autoload": {
"psr-4": {
"autoload": {
"psr-4": {
"KitLoong\\AppLogger\\": "src"
}
},
"autoload-dev": {
"psr-4": {
"KitLoong\\AppLogger\\Tests\\": "tests/"
}
},
"extra": {
"laravel": {
"providers": [
"KitLoong\\AppLogger\\AppLoggerServiceProvider"
]
}
},
}
},
"autoload-dev": {
"psr-4": {
"KitLoong\\AppLogger\\Tests\\": "tests/"
}
},
"extra": {
"laravel": {
"providers": [
"KitLoong\\AppLogger\\AppLoggerServiceProvider"
]
}
},
"minimum-stability": "dev",
"prefer-stable": true
}
62 changes: 30 additions & 32 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,34 +1,32 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="./vendor/phpunit/phpunit/phpunit.xsd"
bootstrap="vendor/autoload.php"
colors="true"
stderr="true">
<coverage>
<include>
<directory suffix=".php">src/</directory>
</include>
<report>
<clover outputFile="build/logs/clover.xml"/>
<html outputDirectory="build/coverage"/>
<text outputFile="build/coverage.txt"/>
</report>
</coverage>
<testsuites>
<testsuite name="Test Suite">
<directory>./tests</directory>
</testsuite>
</testsuites>
<!-- <coverage processUncoveredFiles="true">-->
<!-- <include>-->
<!-- <directory suffix=".php">./src</directory>-->
<!-- </include>-->
<!-- </coverage>-->
<logging>
<junit outputFile="build/report.junit.xml"/>
</logging>
<php>
<server name="DB_CONNECTION" value="sqlite"/>
<server name="DB_DATABASE" value=":memory:"/>
</php>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd" bootstrap="vendor/autoload.php" colors="true" stderr="true">
<coverage>
<report>
<clover outputFile="build/logs/clover.xml"/>
<html outputDirectory="build/coverage"/>
<text outputFile="build/coverage.txt"/>
</report>
</coverage>
<testsuites>
<testsuite name="Test Suite">
<directory>./tests</directory>
</testsuite>
</testsuites>
<!-- <coverage processUncoveredFiles="true">-->
<!-- <include>-->
<!-- <directory suffix=".php">./src</directory>-->
<!-- </include>-->
<!-- </coverage>-->
<logging>
<junit outputFile="build/report.junit.xml"/>
</logging>
<php>
<server name="DB_CONNECTION" value="sqlite"/>
<server name="DB_DATABASE" value=":memory:"/>
</php>
<source>
<include>
<directory suffix=".php">src/</directory>
</include>
</source>
</phpunit>

0 comments on commit 9a545bb

Please sign in to comment.