A selection of fresh news and materials from the PHP world. In release: the second alpha of PHP 8.1.0 and an overview of what else may be in the release; a new RFC proposing to add an injection protection mechanism. Plus a portion of useful tools, articles, videos and podcasts.
Enjoy reading!
news
PHP 8.1.0 alpha 2
.
20 . , RFC 22 8.1.
, :
php.watch/versions/8.1.
( ):
- [RFC] Partial Function Application โ 27: 17;
RFC, Larry Garfield, , PFA - PHP.
- [RFC] First-class callable syntax โ , Partial Function Application;
- [RFC] Pipe Operator v2 โ , RFC ;
- [RFC] Property Accessors โ , ;
- [RFC] Readonly properties 2.0 โ , Property Accessors;
- [RFC] New in initializers โ , ;
- [RFC] Is_Noble โ , ;
- [RFC] Partial Function Application โ 27: 17;
PHP Internals
[RFC] Pure intersection types
PHP 8.1 .TypeA&TypeB
,instanceof TypeA
instanceof TypeB
.
, :
, ? , , ( ).
: PHP.
[RFC] Is_Noble
SQL- PHP . RFC .
is_noble(string $str): bool
, ยซยป, , .
3v4l.org/1aFC2#focus=rfc.literalsis_noble('Example'); // true $a = 'Hello'; $b = 'World'; is_noble($a); // true is_noble($a . $b); // true, is_noble("Hi $b"); // true is_noble($_GET['id']); // false is_noble(sprintf('Hi %s', $_GET['name'])); // false is_noble('/bin/rm -rf ' . $_GET['path']); // false is_noble('<img src=' . htmlentities($_GET['src']) . ' />'); // false โ is_noble('WHERE id = ' . $db->real_escape_string($_GET['id'])); // false
100%, .
[RFC] Deprecate boolean to string coercion
bool
string
, :(string)true -> '1' (string)false -> ''
- Ilija Tovilo RFC 8.1, ยซยป :-)
- VKCOM/nocolor โ VK PHP . deptrac. PHPRussia.
- beyondcode/expose 2.0 โ : , . ngrok, PHP.
- nunomaduro/phpinsights v2.0 โ CLI- .
- nunomaduro/patrol โ CLI , composer.json.
- k-samuel/faceted-search โ . PHP (100_000 10 ) ElasticSearch.
- Ne-Lexa/php-crossplane โ NGINX. NeLexa.
Symfony
Laravel
- laravelexamples.com โ Laravel YouTube- Laravel Daily.
- API Laravel
- REST API c
- Orbit โ Laravel SQL
- Mohamed Said (Laravel core): 5 , Laravel; Laravel โ laravel/echo; Laravel (#3) โ 2021-06-23
- PHP-Compiler, FFI.
- PHP โ โ PHP.
- ยซ , ยป โ PHP Python Ruby, PHP .
- -: , PHP ( )
- Rector โ The Power of Automated Refactoring โ rectorphp/rector . $5 23 .
- ? โ Brent Roose: xml, yaml PHP- . IDE .
- b-viguier/php-emoji โ PHP emoji:
/
- PHP โ 89: All Cups.
- PHP Internals News podcast #89 โ Partial Function Application Larry Garfield Joe Watkins.
- Never * Use Arrays - Lecture by Larry Garfield.
- Geometric interpretation of the principle of substitution by Barbara Liskov - Useful to understand once and for all what it means.
miscellanea
- An interesting idea is to override built-in functions and disable the standard implementation via disable_functions :
- Will Bitrix become the norm?
Subscribe to the PHP Digest Telegram channel .
If you liked the digest, please give it a plus - this is very motivating to keep doing it.
Did you spot a mistake or typo? Inform in a personal habr or telegram .
You can send the link through the form or simply by writing to me in a telegram .
Search for links in all digests
โ Previous issue: PHP-Digest # 205