Neue Auswahl mit Links zu Nachrichten und Materialien. In Release: Objekte in Initialisierern, Erweiterungsnamespaces und anderen RFC-VorschlĂ€gen fĂŒr PHP 8.1. PSR-11 aktualisiert, PSR ClockInterface vorgeschlagen. Ein Teil nĂŒtzlicher Tools, Videos, Podcasts, Artikel und PHP Digest Live um 20:00 Uhr GMT.
Viel SpaĂ beim Lesen!
Nachrichten und Veröffentlichungen
- PHP 8.0.3 , PHP 7.4.16 .
- PSR ClockInterface
, , .
:
namespace Psr\Clock; interface ClockInterface { /** * Returns the current time as a DateTimeImmutable Object */ public function now(): \DateTimeImmutable; }
- PSR-11 Container Interface â , 1.1, , 2.0 â .
- Git clone â . Git 2.30.2.
- PhpStorm 2021.1 EAP â : PHP- , JSONPath . , EAP .
- Composer 1.x â 2021 API packagist.org .
PHP Internals
- [RFC] New in initializers
PHP , , , . , , â . .
, , .
static $x = new Foo(); const C = new Foo(); #[AnAttribute(new Foo())] class Test { public const C = new Foo(); public static $prop = new Foo(); public $prop = new Foo(); public function __construct( private Logger $logger = new NullLogger() ) {} } function test($param = new Foo()) {}
new
, .
. , , , , , . PHP Live.
- [RFC] Namespaces in bundled PHP extensions
, PHP, . .
RFC , PHP. .OpenSSLCertificate
OpenSSL\Certificate
.
, , RFC . :
str_contains()
->String\contains()
in_array()
->Array\contains()
.
PHP 9. - [RFC] Static variables in inherited methods
, , . , .
RFC , .
class A { public static function counter() { static $i = 0; return ++$i; } } class B extends A {} var_dump(A::counter()); // int(1) var_dump(A::counter()); // int(2) var_dump(B::counter()); // int(3) var_dump(B::counter()); // int(4)
- [RFC] Fibers
. , . : , , PHP . , :
Swoole. , Swoole PHP, â , .
Joe Watkins, , /. krakjoe/parallel .
, , â , Swoole parallel. - [RFC] noreturn type
Psalm PHPStan PHP ânoreturn
.
, ,exit()
,die()
,trigger_error()
.
function redirect(string $uri): noreturn { header('Location: ' . $uri); exit(); } function redirectToLoginPage(): noreturn { redirect('/login'); }
Hack, Python, Psalm, PHPStan PhpStorm#[NoReturn]
exitpoint .phpstormmeta.php. - [RFC] debug_backtrace_depth(int $limit=0): int â debug_backtrace_depth(int $limit=0), . , .
:count(debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, $limit=0))
. - [RFC] println(string $data = ''): int â
println
,stdout
.str_contains()
, , .
- spiral/RoadRunner v2.0.0 â PHP Golang.
- QratorLabs/Smocky â runkit7 mock- PHPUnit .
- markdown.
- phpize.online â PHP- 3v4l.org SQL.
Symfony
- symfony/runtime â PHP-FPM, CLI, PHP-PM, Swoole . .
- Symfony 6 PHP 8.0
- ansien/RapidFormBundle â Symfony, PHP 8.
- Symfony
- Symfony Docker
- CI/CD Symfony GitLab
- Symfony #741 (8-14 2021)
Laravel
- RCE Laravel <= v8.4.2 debug mode â
file_get_contents
/file_put_contents
FTP. facade/ignition. - Laravel 7 â LTS 2022.
- spatie/laravel-remote â Artisan spatie/ssh. Freek Van der Herten, c .
- squirephp/squire â Eloquent ( , , .).
- Laravel
- Laravelâ (22 â 7 2021)
Yii
- FFI PHP
- PHP.Watch: PHP.
- PHP â .
- Matthias Noback: â ? â , .
- PHP arm64 vs x86_64 â AWS ARM 20% .
- nginx+fpm Swoole PHP API 91% â github.com/appwrite.
- PHP Xdebug 3, Docker Compose PhpStorm.
- CI Laminas â GitHub Actions , 200+ .
- â .
- Run, config, run: Badoo
- 1-:
- ,
- PHP- â , , .
- : PHP
- : ! PHP.
- PHP Release Radar #6: Bref 1.0 â C Matthieu Napoli.
- PHP Internals News #77 â PHP 8.1 fsync David Gebler.
- PHP Internals News #78 â C Andreas Heigl PHP Git. , , PHP Russia.
- PHP â87: PHP 2021
- PHP â86: PHP 8
- 12: â
Nach einer kurzen Pause kehren wir mit einem Stream und Moderator Valentin Udaltsov zurĂŒck!
Es wird eine Analyse von Nachrichten und Links aus der Ausgabe mit Details und Details, Valentins Meinung zu RFCs und Artikeln geben. Interessant, aber nicht in der Ausgabe enthalten, die Ergebnisse der Zeichnung und ein neuer Wettbewerb mit Elefanten.
Ab 20:00 Uhr Moskau, Minsk / 19:00 Uhr Kiew.
Wenn Sie einen Fehler oder eine Ungenauigkeit bemerken, teilen Sie uns dies bitte in einem persönlichen Habr oder Telegramm mit .
Weitere Neuigkeiten und Kommentare zum PHP Digest Telegram-Kanal .
Link senden
Links in allen Digests suchen
â Vorherige Ausgabe: PHP-Digest # 199