This release is the first preview of the upcoming version 1.0.0
. NuGet packages are versioned as 1.0.0-preview1
. See https://www.peachpie.io/getstarted for creating new projects with PeachPie. Update existing projects by changing the version accordingly.
What's new
Supported PHP 8.0 features
- Non-capturing catches
- Throw expression
match
expression::class
on variables- union types
- Trailing comma in parameter lists
- Constructor property promotion
Improvements
- base class library fixes
- parsing HEREDOC fixes
- parse_ini improvements
- XML and DOM updates
- stability improvements
- performance improvements (fewer allocations)
ASP.NET Core integration
- add support for
netstandard2.0
(netstandard2.0
,netstandard2.1
,netcoreapp3.0
,netcoreapp3.1
,net5.0
) - new API for request handling
app.UsePhp( options )
andservices.AddPhp( options )
- see https://docs.peachpie.io/net/hosting/aspnetcore/ for details