PHP Digest number 59 - interesting news, materials and tools (March 16 - 29, 2015)
We offer to your attention another selection with links to news and materials.
Enjoy reading! ')
News and Releases
CakePHP 3.0.0 - More than 3 years have passed since the release of 2.0.0, and now the world has an updated version of the popular framework. Version back is incompatible, requires PHP at least 5.4.16, uses Composer. Many components have been updated, some of which are now also available as independent libraries.
Scalar Type Hints - The proposal for scalar type hinting in the version from Anthony Ferrar was accepted with a score of 108: 48. This was also facilitated by a conciliatory post from Zeev Suraski . The corresponding branch is already in PHP 7 , which means that we are waiting for the possibility of explicitly defining the scalar types int , float , string and bool for the arguments and values of the functions: function foo(int $abc): int . And of course, a type- declare(strict_types=1) mode has been added: declare(strict_types=1) , in which a mismatch of the type of value being transferred or returned will result in an error. Support for type checking mode will be added, including for PHP extensions and built-in functions.
RFC: Anonymous Classes - Offer accepted, anonymous classes will be available already in PHP 7.
RFC: Easy User-land CSPRNG - Add a simple cryptographically strong pseudo-random number generator as functions random_bytes(int length) and random_int(int min, int max) - accepted.
PHP 7 Feature Freeze - Overview of already accepted and voting proposals. According to the schedule , proposals for new features for PHP 7 will no longer be accepted.
Instruments
Icicle - A library that implements asynchronous capabilities in PHP using generators.
hnw / php-timecop - The extension allows you to "change" and "freeze" time, changing, respectively, the result of calling functions for working with date / time. Inspired by the timecop from the Ruby-World.
HippyVM goes to Y Combinator and fails - According to the author, the project HippyVM, a PHP virtual machine implemented on top of PyPy , did not find a source of funding and is currently dead.