
Pilihan baru dengan tautan ke berita dan materi. Dalam rilis: PHP 8 beta 3, sintaks atribut baru diadopsi dalam PHP 8, Zephir semuanya, sejumlah alat yang berguna, artikel, video, podcast.
Selamat membaca!
Berita dan rilis
- PHP 8 beta 3 - Beta terakhir dalam siklus. Rilis berikutnya adalah RC 1, yang diharapkan pada 17 September.
- PHP 7.4.10 , PHP 7.3.22
- Zephir Phalcon β Zephir PHP- Phalcon , Zephir , Phalcon 5 PHP.
- WordPress PHP. Matt Mullenweg, PHP 5.6 . PHP β€5.6 21.6% WP.
PHP Internals
[RFC] Shorter Attribute Syntax Change β - . #[Attribute].#[ ORM\Entity, ORM\Table("user") ] class User { #[ORM\Id, ORM\Column("integer"), ORM\GeneratedValue] private $id; #[ORM\Column("string", ORM\Column::UNIQUE)] #[Assert\Email(["message" => "The email '{{ value }}' is not a valid email."])] private $email; }
,@@AttrPR.#[ ], .
// #[ORM\Entity] #[ORM\Table("user")] // #[ ORM\Entity, ORM\Table("user") ]
.
[RFC] any() and all() on iterables β :
any(iterable $input, ?callable $callback = null): boolβ , ,true.
all(...)βtrue,true.
:
// $satisifes_predicate = false; foreach ($item_list as $item) { if (API::satisfiesCondition($item)) { $satisfies_predicate = true; break; } } if (!$satisfies_predicate) { throw new APIException("No matches found"); } // if (!any($item_list, fn($item) => API::satisfiesCondition($item))) { throw new APIException("No matches found"); }
- Pest 0.3 β PHPUnit, . PhpStorm Pest IntelliJ.
- Codeception/Verify 2.0 β PHPUnit Codeception fluent-.
- ramsey/composer-repl β
composer replbobthecow/psysh. - brick/money β . , GMP BCMath. moneyphp/money.
- bassim/super-expressive-php β - . VerbalExpressions/PHPVerbalExpressions.
- phpsci/phpsci-carray β PHP . NumPy.
- github.com/phpwebclient β PSR-18 HTTP-.
- hamlet-framework/type β . , , cast, assert, instanceof . .
Symfony
Laravel
- laravel-orion/laravel-orion β REST API Eloquent- . @alexzarbn.
- Statamic 3 β CMS Laravel.
- Laravel-.
Legacy Laravel: .
Laravel 8 β ? β 8 .
Laravelβ (24 β 6 2020)
Laravel Worldwide Meetup #2: Neo Ighodaro and Michael Dyrynda
Yii
- yiisoft/auth β Yii 3 , , PSR-15 middleware .
- yiisoft/strings β .
Async PHP
- PHP- Β« Β» β ( , ).
- : 1 β , -.
- unserialize() PHP β .
- (psalm) .
- PHP FFI.
- Xdebug + Docker + PhpStorm, .
- Anna Filina β Anna Filina PHP:
Xdebug Windows Subsystem For Linux 2 (WSL2).
PHP-.
: .
PHP.
. ? β .
Lingualeo PostgreSQL 23 β PHP . : .
20_20 β , β .
/
Tobias Nyholm async-aws/aws AWS.
IT , .
PHP Internals News # 67 - Derik Xdebug berbicara kepada dirinya sendiri tentang ekspresi baru match. Baca lebih lanjut tentang sejarahmatchPHP di pos .
Podlodka # 180 - PHP - Rilis podcast legendaris Submarine yang menampilkan Nikita Popov dan saya.
Terima kasih atas perhatian Anda!
Jika Anda melihat kesalahan atau ketidakakuratan, harap beri tahu kami secara pribadi .
Pertanyaan dan saran menulis ke email atau twitter .
Lebih banyak berita dan komentar di saluran Telegram PHP Digest .
Kirim tautan
Cari tautan di semua intisari
β Edisi sebelumnya: PHP-Digest # 186