PHP Digest number 84 - interesting news, materials and tools (April 10 - 24, 2016)
We offer to your attention another selection with links to news and materials.
Enjoy reading! ')
News and Releases
High-performance PHP - PHP-PM - Two years ago, the author of the post published a note about starting a symfony application using ReactPHP. Then it is possible to get a tenfold increase in productivity. In a post, the author conducts a retrospective review of the current state of the project. For example, now with the help of php-pm you can also launch applications on Laravel, Zend, Drupal.
WordPress 4.5 “Coleman” - The released version contains a number of subtle improvements, but among the changes planned for 4.6 you can notice a proposal to implement the PSR-4 autoloader.
league / oauth2-server 5.0 - Fresh update of the implementation of the OAuth 2.0 server in PHP. Under the hood, support for PSR-7, JWT, and many improvements. Post in support.
RFC: Attributes - It is proposed to implement a native annotation mechanism in PHP. The syntax is borrowed from Hack . Attributes are not executed, but are stored in the abstract PHP syntax tree and can then be used in PHP extensions, preprocessors, and directly in scripts.
<<...>> <<...>> functionfoo(){}
RFC: Anonymous Class Lexical Scope - The author proposes to solve the problem of passing dependencies to an anonymous class. For this purpose it is proposed to use use as in closures:
$foo = 5; $foo = new Bar() use($foo) { public $foo; };
RFC: Union Types - Starting with PHP 5.1, you can explicitly specify the type of parameters passed, and with PHP 7.0 also the type of return values. It is proposed to make it possible to specify multiple types:
RFC: Generic Types and Functions - The proposal to implement generics (templates) in PHP has generated a wave of discussion. What do you think, how justified is this feature in PHP? Leave your vote in the poll at the end of the post and share your opinion in the comments.