Fresh selection with links to news and materials. In release: Composer 2.0 Alpha and other releases, 5 new and one accepted RFC offer from PHP Internals, as well as updated attributes on voting, a portion of useful tools, podcasts, interviews and much more.
Enjoy reading!
 News and Releases
 News and Releases
 PHP Internals
 PHP Internals
- [RFC] throw expression โ PHP 8 throw, . , , :
 
 $callable = fn() => throw new Exception();
$foo = $bar['key'] ?? throw new KeyNotSetOnBarException();
 
- [RFC] Attributes v2 โ () . , , , , . .
 
 , . :<<>>@:.
 
 <<ExampleAttribute>>
class Foo
{
    <<ExampleAttribute>>
    public const FOO = 'foo';
    <<ExampleAttribute>>
    public $x;
    <<ExampleAttribute>>
    public function foo(<<ExampleAttribute>> $bar) { }
}
$object = new <<ExampleAttribute>> class () { };
<<ExampleAttribute>>
function f1() { }
$f2 = <<ExampleAttribute>> function () { };
$f3 = <<ExampleAttribute>> fn () => 1;
 
- [RFC] PHP Namespace in core, [RFC] PHP Namespace Policy โ RFC-, \PHP, .
- [RFC] Mixed Type v2 โ , , - . mixed.
 
 PHP 8.mixedarray|bool|callable|int|float|null|object|resource|string.
- [RFC] non-capturing catches โ catch:
 
 try {
    changeImportantData();
} catch (PermissionException) { 
    echo "You don't have permission to do this";
}
 
- [RFC] Match expression โ switch match,switch, . -.
 
 match ($condition) {
    1 => {
        foo();
        bar();
    },
    2 => baz(),
}
$expressionResult = match ($condition) {
    1, 2 => foo(),
    3, 4 => bar(),
    default => baz(),
};
 
- [RFC] Pipe Operator v2 โ |>c . Elixir / JS (Hack)$$.
 
 $result = "Hello World"
    |> 'htmlentities'
    |> 'explode'
    |> fn($x) => array_map(fn($v) => 'strtoupper', $x)
    |> fn($x) => array_filter(fn($v) => $v != 'O');
 
- : [RFC] Compact Object Property Assignment

- jlaswell/compote โ PHP Go. Composer, , , CI. .
- repman.io โ Composer.
 CDN packagist.org, .
- dantleech/what-changed โ Composer, , composer update.
- maciejczyzewski/bottomline โ lodash / underscore PHP. //.
- VKCOM/noverify v0.2.0 โ PHP Go. PHP 7, , .
- markrogoyski/math-php 1.0 โ PHP. /, , . @dmitrybalabka.
 Symfony
 Symfony
 Laravel
 Laravel
 Laminas
 Laminas
Async PHP

 /
 /
!
โ , , .
.
Telegram- PHP Digest.
โ : PHP- โ 177