
Pilihan baru dengan tautan ke berita dan materi. Dalam rilis: Kandidat rilis PHP 8.0 terbaru sebelum rilis final dan materi segar tentang PHP 8, RFC dan diskusi dari PHP Internal, sebagian dari alat, aliran, podcast, artikel yang berguna.
Selamat membaca!
Berita dan rilis
- PHP 8.0 RC 4 β - PHP 8, 26 .
PHP 8:
- Larry Garfield: .
PHP 8 Spatie.- PHP 8 `@` , :
E_ERROR,E_CORE_ERROR,E_COMPILE_ERROR,E_USER_ERROR,E_RECOVERABLE_ERROR,E_PARSE. - WeakMap PHP 8 .
- JIT PHP 8.
, PHP 8 PECL. - Dockerfile, . PECL FriendsOfPHP/pickle.RUN curl -L -o /tmp/pickle.phar https://github.com/FriendsOfPHP/pickle/releases/latest/download/pickle.phar; \ mv /tmp/pickle.phar /usr/local/bin/pickle; \ chmod +x /usr/local/bin/pickle; \ pickle install xdebug; \ RUN echo "extension=xdebug.so" >> $PHP_INI_DIR/conf.d/php.ini; \
Atau seperti ini:RUN mkdir -p /usr/src/php/ext/xdebug && \ curl -fsSL https://pecl.php.net/get/xdebug | \ tar xvz -C "/usr/src/php/ext/xdebug" --strip 1 && docker-php-ext-install xdebug
- phpcommunity.ru β PHP- , , .
: PHP- , 19 ; Online- PHP SimbirSoft, 20 .
PHP Internals
- [Draft] Closure self reference β .
$lambda, .$this.$fibonacci = function (int $n) use (&$fibonacci) { if ($n === 0) return 0; if ($n === 1) return 1; return $fibonacci($n-1) + $fibonacci($n-2); }; // => $fibonacci = function (int $n) { if ($n === 0) return 0; if ($n === 1) return 1; return $lambda($n-1) + $lambda($n-2); }; - [PR] Support for <func>::function syntax β
::function(::fn)::class. , . - [Discussion] Alias for `int|float` β
numbernumericint | float. , TypeScript:type Number = Foo|Bar;.
- mnavarrocarter/php-fetch β fetch WebApi PHP . HTTP- :
use function MNC\Http\fetch; $response = fetch('https://habr.com'); echo $response->status()->code(); // 200 echo buffer($response->body()); // or while (($chunk = $response->body()->read()) !== null) { echo $chunk; } - themsaid/ibis β PDF markdown-.
- i582/phpstats β PHP. VKCOM/noverify, Go.
- mihaeu/dephpend β , .
- httpsoft/http-message β #PSR-7 #PSR-17.
- spatie/crypto β openssl / . .
- icanhazstring/systemctl-php β PHP- systemctl.
Symfony
Laravel
- laravel/breeze β . , Laravel + Tailwind CSS + .
. - spatie/laravel-settings β . .
- ksassnowski/venture β Laravel.
Laravel Podcast S4:E17 β C Christoph Rumpel - Laravel.
spatie/laravel-event-sourcing PHP 8.
Laravel Idea PhpStorm.
Laravelβ (2β8 2020)
Yii
Yii 2020, 7 β Yii 2, Yii 3, Yii 1 .
Async PHP
- clue/reactphp-term β .
- clue/reactphp-utf8 β UTF-8.
PhpStorm
- PhpStorm 2020.3 EAP #6 β Tailwind CSS Xdebug 3.
- PhpStorm .
- IntelliJ Alpine.js β .
- Elephpant Progress Bar β .

VKCOM/kphp β PHP. , .- PHP 7.4 PHP 7.1 rectorphp/rector GitHub Actions. , .
- PHP 8 Psalm.
- php-fig-rectified/fig-rectified-standards β . , PSR-2-R .
/
- PHP Internals News β , Derick Rethans (Xdebug) RFC.
Episode 69: Short Functions β C Larry Garfield / .
Episode 70: Explicit Octal Literal β C George Peter Banyard PHP.
β .
PHPBenelux Virtual Meetup: Damien Seguy β Modernize your PHP with Exakat, Wim Godden β Why and How of moving to PHP 8.
- PHP Docker Compose.
Β« PHPΒ»: β Yii: , β Cycle ORM , β .
- vincentpontier.com/elephpant/ β ! .
Lebih banyak berita dan komentar di saluran Telegram PHP Digest .
Kirim tautan
Cari tautan di semua intisari
β Edisi sebelumnya: PHP-Digest # 191