PHP Digest No. 154 (April 9 - 21, 2019)
Fresh selection with links to news and materials. In the release: Zend Framework goes under the wing of the Linux Foundation, news from PHP Internals, a portion of useful tools, and much more.
Enjoy reading!
News and Releases
- The Zend Framework goes under the wing of the Linux Foundation - and renamed Laminas to get rid of the Zend commercial brand. Expressive , Apigility , and ZF itself
will go into the new organization . So far, the repository has only the laminas / laminas-zendframework-bridge bridge package with a special autoloader. They promise to complete the full move in the next few months.
PHP internals
- [RFC] Arrow Functions 2.0 - Voting on short lambdas has started and the voting process is encouraging. The syntax remains the same:
fn($x) => $x * $y
. - [RFC] Deprecate left-associative ternary operator - In almost all languages, the ternary operator is evaluated from right to left, but in PHP, on the contrary. It is proposed to abolish left associativity altogether, and if it is necessary to use several ternary operators, then explicitly indicate the order with parentheses.
1 ? 2 : 3 ? 4 : 5; // deprecated (1 ? 2 : 3) ? 4 : 5; // ok 1 ? 2 : (3 ? 4 : 5); // ok
- PHP Internals News # 5 - On List Inclusions with RFC author Larry Garfield.
- PHP Internals News # 6 - Interview with Remi Collet, PHP 7.2 release manager on PHP quality assurance and extensions.
Instruments
- pinba-server / pinba-server - A simple pinba server in pure PHP that stores all the data in Clickhouse. There is a ready dashboard for grafana. Easy installation and low system requirements, and compressed data takes up very little disk space. Sent morozovsk .
- cycle / orm - ORM for long-lived applications from RoadRunner author Anton Titov. Detailed documentation in the process, there is a comparison with Doctrine and Eloquent .
- php-comrade / comrade-dev - Scheduler and task manager in PHP.
- jwage / changelog-generator - Generator of a list of changes to the marketdown based on information from GitHub.
- moneyphp / money - Implementation of the Fowler pattern Money. Strings are used under the hood.
- mamuz / PhpDependencyAnalysis - The tool builds a dependency graph of abstract types and shows bad dependencies.
- robinvdvleuten / php-ulid - Instead of the usual UUID, you can use ULID as an identifier , which has several advantages, in particular, lexically increases monotonically, which means it can be conveniently sorted.
Symfony
Laravel
- spatie / laravel-event-projector v2 - Package for quick start with Event Sourcing in Laravel application. Post with examples and motivation in support.
- lorisleiva / laravel-search-string - Transforms a query from a human-readable string into a set of command-builder commands.
- Unsafe SQL Functions in Laravel - About the SQL vulnerability in the build builder due to implicit use
json_extract
. The bug is fixed in Laravel 5.8.11 . - How to quickly try CQRS / ES in Laravel or write a bank in PHP
- The Laravel Origin Story - An interview with Taylor in which he talks about how Laravel started and how from a side project he grew into a whole company.
- Taylor Laravel Snippet Podcast # 11 - About JIT, Query Builder Security, Thick / Thin Models, Laracon 2019.
- Laravel Hangout - Taylor answers user questions live.
Yii
- Yii Quick Release Cycle - The main framework will be released approximately once a month, and extensions will be updated every week if there have been changes since previous releases.
Learning Materials
- About using ticks and stream wrappers to catch segmentation errors .
- The correct way to do assert in PHPUnit.
- Trends in PHP frameworks based on download statistics, as well as comparison of downloads by version .
- Five-minute PHP No. 50 , 51 - April 6 and 7, 2019 in Brussels hosted The Symfony and API Platform Hackathon. In two episodes of the podcast, one of the participants, Valentin Udaltsov, shares his impressions.
- Five Minute PHP # 52 - Linux Administration - What Does a Developer Need to Know?
- About indexes in MySQL
- Database business logic with SchemaKeeper
- PHP Enchanting dotting over quotation marks
- PHP GR8: Will JIT Improve PHP 8 Performance
- How to run PHP 8 with JIT in Docker
Entertaining
- siara-cc / php_webview - The extension provides the ability to use WebView from PHP on Mac / Win / Linux. Implemented based on zserge / webview .
Thanks for 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. 153