PHP Digest number 71 - interesting news, materials and tools (September 21 - October 5, 2015)
Today is a PHP Digest birthday! Exactly three years have passed since the publication of the first issue on Habré. Many thanks to everyone who helped create digests, who sends links and edits. Thanks to the developers for the great tools and the authors for their helpful articles. Thanks to the entire PHP community, and most importantly, thank you for reading and supporting the PHP Digest! Together we will make our PHP world better!
Under the cut, as always, you will find a selection with links to news and materials. ')
Enjoy reading!
News and Releases
PHP 7.0.0 RC 4 - The release contains 22 fixed bugs and a total of about 100 commits with changes. RC 5 is expected on October 15, then RC 6, and the final release should be expected on November 12.
PHP 5.5.30 and 5.6.14 - Updates on current branches. Made a total of 15 changes , including eliminated two vulnerabilities in Phar expansion. As you can see, there is no update for the PHP 5.4 branch.
PHPUnit 5.0.0 - Release contains several new features . Support for PHP 5.3, PHP 5.4, and even PHP 5.5 has been discontinued, but PHP 7 support has been implemented.
REST API in WordPress out of the box - The developers of the WP REST API plugin have announced a plan for integrating the solution into the WordPress core. The merger is planned phased: first, the plug-in infrastructure in version 4.4, and then in WordPress 4.5 and endpoints themselves.
Otto - Vagrant developers presented a new project. Otto is a toolkit for creating microservices from isolated applications. Otto is a continuation of the development of Vagrant, but both will be maintained in parallel for some time.
RFC: Consistent Callables - The author of the proposal points to inconsistency of the Callable type depending on the context. Examples are given and it is proposed to correct inaccuracies of behavior. The proposal also suggests making a call using call_user_func($callable) and direct calling $callable() equivalent in all cases.
RFC: Closure from callable function - It is proposed to add a function function closure(callable $callable) : closure {...} that allows the converted callable parameter to be converted to a full closure.
RFC: Arrow Functions - The short syntax suggestion for anonymous functions was not voted on. Therefore, an alternative syntax was proposed, a la EcmaScript 6, but with the addition of the function keyword. Total syntax is proposed: function($x) => $x + $y . In addition to the syntax, it is also proposed to implement the ability to "auto-capture" variables from the parent scope.
Instruments
bocharsky-bw / Arrayzy - Library / wrapper over all built-in functions for convenient work with native PHP arrays in OOP style. Sent by bocharsky_bw .
corpsee / phpell - Virtual machine constructor with PHP environment for Vagrant based on bash scripts. Sent by corpsee .
shadowhand / destrukt - Simple immutable data types for PHP. Post about the use of the author here .
Disguised dependencies - On the problem of service locators. The author describes the idea of implementing small additional locators with explicit methods for obtaining specific dependencies.
joho / 7XX-rfc - RFC for 7xx HTTP Status Codes - Developer Errors
Thanks for attention!
If you notice an error or inaccuracy - please inform the PM . Send links to interesting articles or useful tools that were not in PHP Digests , and your name will be next to the sent link in the release.