新鲜的选择以及指向新闻和材料的链接。该版本中有关PHP 8的所有内容:第一个alpha版本,新表达式
match
,@@
属性的语法错误,实际的JIT基准测试,4个新建议。以及一如既往的工具,文章,视频和播客。
享受阅读!
新闻和发布
- PHP 8.0 alpha 1 — - PHP! .
:
PHP 8 . 3v4l.org Docker-.
- `CurlHandle` class objects replace curl handlers — , PHP resource /. PHP 8 curl_
\CurlHandle
. - JIT PHP 8 — JIT .
Derick Rethans , JIT , , C. Brent Roose - .
Benjamin Eberlei , JIT . - — — . 8 .
PHP Internals
- [RFC] Shorter Attribute Syntax —
@@
.
, , , .
:function(@@X \ Y $z)
function(@@X\Y $z)
(X\Y
)function(@@X \Y $z)
(X
\Y
). PHP .
@@
, , [RFC] Treat namespaced names as single token. - [RFC] Match expression v2 — PHP 8
match
,switch
, .
// switch: switch ('foo') { case 0: $result = "Oh no!\n"; break; case 'foo': $result = "This is what I expected\n"; break; } echo $result; //> Oh no! // match: echo match ('foo') { 0 => "Oh no!\n", 'foo' => "This is what I expected\n", }; //> This is what I expected
- [RFC] Allow trailing comma in closure use lists —
use
, .
$longArgs_longVars = function ( $longArgument, $longerArgument, $muchLongerArgument, // PHP 8.0 ) use ( $longVar1, $longerVar2, $muchLongerVar3 // ) { // body };
- [RFC] Property write/set visibility — : . :
// Syntax Option A class User { public:private int $id; public:protected string $name; } // Syntax Option B class User { public private(set) int $id; public protected(set) string $name; }
, - , PHP 8.1, RFC, , , , . - [RFC] Language Constructs Syntax Changes —
declare
__halt_compiler
— , ,echo
, .
declare(strict_types=1); // => declare strict_types = 1;
- [RFC] Saner numeric strings — RFC .
-, «, ».echo '2str' + 2;
4, 2E_NOTICE “A non well formed numeric value encountered”
E_WARNING “A non-numeric value encountered”
.
-, ,"123 " == " 123"
true
, .
- Guzzle 7 — HTTP- PHP. PSR-18, PHP 7.2, .
- deligoez/xDebug-Toggler — macOS / Xdebug.
- denisyukphp/tmpfile-manager — . , , . @jebox.
- php-aidc/label-printer — Fingerprint, Direct Protocol, TSPL/TSPL2. jhaoda.
Symfony
- EasyAdmin 3 — Symfony-.
- ferrius/ddd-cqrs-example — CQRS, DDD, ADR Symfony 5 PHP 7.4.
- Symfony #705 (29 — 5 2020)
- 10 Symfony.
- [Symfony 5] .
- ACL Symfony.
Laravel
- Laravel Worldwide Meetup — - Laravel 14 21:00 UTC+3.
- Laravel Idea 3.1 — PhpStorm Livewire nWidart/laravel-modules.
- scil/LaravelFly — Laravel Swoole. , PHP-FPM Swoole. .
- N+1 Laravel.
- Laravel- (29 – 5 2020)
- Laravel:
Async PHP
- amphp/websocket-server 2.0 — Amp.
- clue/reactphp-buzz — HTTP-.
- — ,
memory_get_usage()
. - PHP FFI .
- 0xbigshaq/php7-internals — PHP, .
- 2025?
- max_execution_time?
- Xdebug PhpStorm Symfony.
- PHP- Xdebug PhpStorm.
- , , .
- , - ?
/
- Xdebug, PhpStorm Laravel Docker — Xdebug Derick Rethans.
- PHP: PhpStorm macOS Metal.
- PHP: 25 PHP — .
- PHP fwdays 2020
- -: , , .
- MoreView #11 — , PHP, JetBrains.
- OpenSource, Yii 3 .
- Serverless Chats Podcast #55 — C Mathew Napoli Bref PHP.
- PHP Internals News #60 — C Eliot Lear RFC-5652 PHP 8.
- PHP Internals News #59 — C , PHP 8.
感谢您的关注!
如果您发现错误或不准确,请通过个人信息告知我们。
问题和建议写在邮件或推特上。
有关PHP Digest Telegram频道的更多新闻和评论。
发送
链接在所有摘要中搜索链接
← 上一期:PHP-摘要№182