Fresh selection with links to news and materials. In release: The latest PHP 8.0 release candidate before the final release and fresh materials on PHP 8, RFCs and discussions from PHP Internals, a portion of useful tools, streams, podcasts, articles.
Enjoy reading!
News and releases
- 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; \
Or like this: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` โ
number
numeric
int | 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/ โ ! .
More news and comments on the PHP Digest Telegram channel .
Send link
Search links in all digests
โ Previous issue: PHP-Digest # 191