Erika Heidi PhotosFresh selection with links to news and materials. In the issue: 3 new and 4 accepted RFC proposals for PHP 8, including declaring properties in the constructor, about blocking PHP-ML due to plagiarism, why developers hate PHP, a portion of useful tools, videos and much more.
Enjoy reading!
News and Releases
- php-ai/php-ml - โ PHP RubixML PHP-ML, , . - , PHP-ML RubixML.
PHP-ML , PHP-ML GitLab gitlab.com/php-ai/php-ml.
, : PHP-ML RubixML. , โ , DMCA-, , 24 .
, StackOverflow CC BY-SA 4.0. , , ? ยฏ\_(ใ)_/ยฏ
- PHP โ 2020.1 โ , Composer packagist.org. 78% PHP, PHP 5 7%. , PHP 5, 38%.
- PHP 7.4.6
yield from
. , . - (EAP) PhpStorm 2020.2 โ - GitHub, , PHP. , EAP- .
- PHP.
- PHP fwdays | Speacial Edition, 6 โ - fwdays : Jordi Boggiano, Sebastian Bergmann, Marco Pivetta, Nikita Popov.
15% : phpdigest_fwdays.
PHP Internals
[RFC] Constructor Property Promotion โ PHP 8
class Point {
public float $x;
public float $y;
public float $z;
public function __construct(
float $x = 0.0,
float $y = 0.0,
float $z = 0.0,
) {
$this->x = $x;
$this->y = $y;
$this->z = $z;
}
}
class Point {
public function __construct(
public float $x = 0.0,
public float $y = 0.0,
public float $z = 0.0,
) {}
}
Hack, TypeScript, Kotlin, Scala. , PHP. :
class Foo {
public function __construct(
<<ExampleAttribute>>
public int $prop,
) {}
}
[RFC] Mixed Type v2 โ RFC, mixed
PHP 8. PHP Digest c mixed
.
[RFC] Always available JSON extension โ PHP 8 JSON .
[RFC] non-capturing catches โ PHP 8 catch
:
try {
changeImportantData();
} catch (PermissionException) {
echo "You don't have permission to do this";
}
- [RFC] Error backtraces โ , PHP . .
Error
, , , Error
. - [RFC] Match expression v2 โ
match
, switch
, .
echo match (1) {
0 => 'Foo',
1 => 'Bar',
2 => 'Baz',
};
. - [RFC] Attribute Amendments โ :
<<Attr1, Attr2>>
, PhpAttribute
Attribute
. , , //. , . , , RepeatableAttribute
.
![](https://habrastorage.org/files/cf8/62d/907/cf862d9072784d04b621238ec137f2ca.png)
- pestphp/pest โ PHPUnit, . . facebook/jest.
- Moxio/sqlite-extended-api โ lisachenko/z-engine: API SQLite, PHP.
- rashidlaasri/travel โ Carbon, ยซยป , ,
- FriendsOfPHP/pickle โ PECL-, Composer. , 2015 () . , .
- webdevium/processes โ . Windows/*nix.
- dsuurlant/response2schema โ OpenAPI JSON-.
- php-casbin/php-casbin โ , ACL, RBAC, ABAC.
Symfony
Laravel
Async PHP
![](https://habrastorage.org/files/329/bec/7c1/329bec7c1e914963a1c5d2f2bfe99995.png)
/
Thank you for the attention!
If you notice a mistake or inaccuracy - please inform me in PM .
Questions and suggestions write to mail or twitter .
More news and comments on the PHP Digest Telegram Channel .
Send link
Search links for all digests
โ Previous release: PHP Digest No. 180