The digest of interesting news and materials from the world of PHP No. 38 (March 9 - March 23, 2014)
We offer to your attention another selection with links to news and materials.
Enjoy reading! ')
News and Releases
Facebook officially introduced the Hack programming language - Although the language itself was available in HHVM for a long time, and even tutorials were published, the official announcement was made only last week. Hack is a programming language that extends the capabilities of PHP, adding features such as static typing , lambda expressions , generics , asynchrony, and others. Most importantly, Hack interacts transparently with PHP — you can implement applications in traditional PHP, and you can optimize the necessary sections using the Hack features. Or even use an automatic converter . The basic features of Hack can be found in an interactive tutorial . The site code for the language itself is written in Hack and is available on GitHub .
PhpSpec 2.0 - The SpecBDD framework for PHP has been updated. If you are not familiar with this tool, I recommend watching the screencast .
PHP-CPP 0.9 - Many updates to the C ++ library, specifically designed for developing PHP extensions. Also on the site is now available documentation .
pthreads v2.0.0 - An excellent extension has been updated for implementing multithreading in PHP. List of changes here .
Zend Framework 2.3.0 - A new version of one of the most popular PHP frameworks has been released. The first release in 10 months with new features, which, by the way, a lot.
Baobab - A library that implements storing and accessing hierarchical data using nested sets.
Phang - Skeleton application on Silex and AngularJS.
Study materials
About the future of PHP - An excellent post from Anthony Ferrara, in which he reviews the latest trends in the PHP world: PHP 6, HHVM and Hack.
Methods for primitive types in PHP - As always, no less excellent post from Nikita Popov. Written in response to Anthony's thoughts. The problem of the implementation of primitive types as objects is considered. The author has long realized his idea in the form of an extension , thanks to which you can simply register a custom class as a handler of a specific scalar type.
In the last issue , a survey was conducted among readers. Thanks to everyone who participated! Ideas in the process of implementation, but for now you can see the results of the survey .