-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from mindplay-dk/3.0.0
3.0.0
- Loading branch information
Showing
20 changed files
with
286 additions
and
707 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: CI | ||
|
||
on: [push, pull_request] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
CI: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
php: | ||
- '8.0' | ||
- '8.1' | ||
- '8.2' | ||
- '8.3' | ||
steps: | ||
- uses: shivammathur/[email protected] | ||
with: | ||
php-version: ${{ matrix.php }} | ||
- uses: actions/checkout@v3 | ||
- run: composer install --no-progress --no-ansi --no-interaction --dev --prefer-dist | ||
- run: php test/test.php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
/.idea | ||
.* | ||
!.git* | ||
/vendor | ||
/test/build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
Copyright (c) 2023, Rasmus Schultz | ||
Copyright (c) 2015, Vadim Baryshev | ||
All rights reserved. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
## Upgrade Notes | ||
|
||
### `2.x` to `3.x` | ||
|
||
Version 3 doesn't really attempt to be backwards compatible - I haven't been actively | ||
using PHP for some years, so this release is a revived and modernized package for PHP 8, | ||
with a smaller scope. | ||
|
||
Earlier versions of this package came with a Dispatcher and a URL builder, both of which | ||
have been removed from version `3.0.0` of this package: | ||
|
||
- The Dispatcher had no real connection with the Router itself, and was more like a | ||
proof of concept than a full-blown implementation - if you wish to upgrade to `3.0.0`, | ||
you can copy the dispatcher from the | ||
[old version](https://github.com/mindplay-dk/timber/blob/6defdfaea55bb59171b54a9abcf388e836e18e66/src/Dispatcher.php) | ||
and use this as a basis for your own dispatcher. | ||
|
||
- The URL builder also had no direct connection with the Router, as has been removed - | ||
you can find third-party packages on Packagist specifically for this purpose. | ||
|
||
Major breaking changes: | ||
|
||
- `Router::resolve()` now returns a union type of either `Result` or `Error`. | ||
- `Registry` is now called `PatternRegistry`, and `Symbol` is called `Pattern`. | ||
|
||
Minor breaking changes: | ||
|
||
- Static type-hints were added. | ||
|
||
Other than that, what remains is more or less the same. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,23 +7,19 @@ | |
], | ||
"license": "BSD-3-Clause", | ||
"authors": [ | ||
{ | ||
"name": "Vadim Baryshev", | ||
"email": "[email protected]" | ||
}, | ||
{ | ||
"name": "Rasmus Schultz", | ||
"email": "[email protected]" | ||
} | ||
], | ||
"require": { | ||
"php": "^7.3 || ^8.0" | ||
"php": "^8.0" | ||
}, | ||
"require-dev": { | ||
"mindplay/testies": "^1.0" | ||
"mindplay/testies": "^1.1.2" | ||
}, | ||
"suggest": { | ||
"ext-intl": "provides better/faster support for slug-creation in URL helpers" | ||
"scripts": { | ||
"test": "php test/test.php" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.