Una selección de noticias y materiales nuevos del mundo PHP. En versión: la segunda versión alfa de PHP 8.1.0 y una descripción general de qué más se puede lanzar; un nuevo RFC que propone agregar un mecanismo de protección de inyección. Además de una parte de herramientas, artículos, videos y podcasts útiles.
¡Disfruta leyendo!
noticias
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.
- Nunca * Use matrices - Conferencia de Larry Garfield.
- Interpretación geométrica del principio de sustitución de Barbara Liskov : útil para comprender de una vez por todas lo que significa.
miscelánea
- Una idea interesante es anular las funciones integradas y deshabilitar la implementación estándar a través de disable_functions :
- ¿Bitrix realmente se convertirá en la norma?
Suscríbase al canal PHP Digest Telegram .
Si te gustó el resumen, dale un plus; esto es muy motivador para seguir haciéndolo.
¿Detectó un error o error tipográfico? Informar en un habr personal o telegrama .
Puede enviar el enlace a través del formulario o simplemente escribiéndome en un telegrama .
Buscar enlaces en todos los resúmenes
← Número anterior: PHP-Digest # 205