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
2 changes: 1 addition & 1 deletion .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.1
php-version: 8.2
extensions: json, mbstring, pcntl, intl, fileinfo
coverage: xdebug

Expand Down
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,9 @@
vendor
.php-cs-fixer.cache
build
tests/coverage
tests/coverage
.DS_Store
node_modules
npm-debug.log
package-lock.json
package.json
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

# Release Notes for 0.4.x

## [v0.4.0 (2024-12-20)](https://github.com/phenixphp/phenix/compare/0.3.8...0.4.0)

## Added
- Start server with file watcher. ([#72](https://github.com/phenixphp/phenix/pull/72))
- CORS and validation layer. ([#71](https://github.com/phenixphp/phenix/pull/71))

# Release Notes for 0.3.x

## [v0.3.8 (2023-10-10)](https://github.com/phenixphp/phenix/compare/0.3.7...0.3.8)
Expand Down
2 changes: 1 addition & 1 deletion app/Http/Controllers/WelcomeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace App\Http\Controllers;

use Amp\Http\Server\Response;
use Phenix\Http\Response;
use Phenix\Http\Controller;

class WelcomeController extends Controller
Expand Down
12 changes: 0 additions & 12 deletions app/Http/Middleware/AcceptJsonResponses.php

This file was deleted.

12 changes: 12 additions & 0 deletions app/Http/Middleware/HandleCors.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php

Check failure on line 1 in app/Http/Middleware/HandleCors.php

View workflow job for this annotation

GitHub Actions / test

* [Braces] @@ -10,3 +10,2 @@ { - } * [No blank lines after class opening] @@ -10,3 +10,2 @@ { - }

Check failure on line 1 in app/Http/Middleware/HandleCors.php

View workflow job for this annotation

GitHub Actions / test

* [Braces] @@ -10,3 +10,2 @@ { - } * [No blank lines after class opening] @@ -10,3 +10,2 @@ { - }

declare(strict_types=1);

namespace App\Http\Middleware;

use Phenix\Http\Middlewares\HandleCors as HandleCorsBase;

class HandleCors extends HandleCorsBase
{

}
15 changes: 9 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@
"email": "contacto@omarbarbosa.com"
}],
"require": {
"php": "^8.1",
"php": "^8.2",
"ext-pcntl": "*",
"phenixphp/framework": "^0.3.8"
"phenixphp/framework": "^0.5.0"
},
"require-dev": {
"amphp/phpunit-util": "^v3.0.0-beta.3",
"amphp/phpunit-util": "^v3.0.0",
"friendsofphp/php-cs-fixer": "^3.11",
"mockery/mockery": "^1.6",
"nunomaduro/collision": "^6.3",
Expand All @@ -37,8 +37,7 @@
"phpstan/phpstan-deprecation-rules": "^1.1",
"phpstan/phpstan-phpunit": "^1.3",
"phpunit/phpunit": "^9.5",
"spatie/pest-plugin-test-time": "^1.1",
"symfony/var-dumper": "^6.1"
"spatie/file-system-watcher": "^1.2"
},
"config": {
"optimize-autoloader": true,
Expand All @@ -63,6 +62,10 @@
"test:parallel": "vendor/bin/pest --parallel",
"format": "vendor/bin/php-cs-fixer fix",
"analyze": "vendor/bin/phpinsights",
"analyze:static": "vendor/bin/phpstan"
"analyze:static": "vendor/bin/phpstan",
"dev": [
"Composer\\Config::disableProcessTimeout",
"@php server"
]
}
}
Loading
Loading