PHP Digest No. 59 - interesting news, materials and tools (March 16 - 29, 2015)

We bring to your attention the next 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 is presented with an updated version of the popular framework. The version is backward incompatible, requires PHP no lower than 5.4.16, uses Composer. Updated many components, some of which are now also available as independent libraries.
- PHP Releases: 5.6.7, 5.5.23 and 5.4.39 - Three vulnerabilities have been fixed ( CVE-2015-0231 , CVE-2015-2305 , CVE-2015-2331 ) and about 30 errors have been fixed .
Php
- Scalar Type Hints - The proposal for scalar type hinting in the version by Anthony Ferrara was accepted with a result of 108: 48. This was also facilitated by a conciliation post from Zeev Surasky . The respective branch has smerzhena in PHP 7 , which means that we are waiting for an opportunity to explicitly define scalar types
int,float,stringandboolfor the arguments of functions and values:function foo(int $abc): int. And of course, a strict typing mode has been added:declare(strict_types=1)in which a mismatch of the type of the transmitted or returned value will lead to an error. Support for type checking mode will be added, including for extensions and built-in functions of PHP. - RFC: Anonymous Classes - Proposal accepted, anonymous classes will be available as early as PHP 7.
- RFC: Generator Return Expressions - Support
returnfor generators - accepted. - RFC: Generator Delegation - The delegation of operations by generators to Traversable objects and arrays is accepted.
- RFC: Reclassify E_STRICT notices - Remove error class E_STRICT - accepted.
- RFC: Easy User-land CSPRNG - Add a simple cryptographically robust pseudo random number generator in the form of functions
random_bytes(int length)andrandom_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 - The library implements asynchronous features in PHP using generators.
- widmogrod / php-functional - Functors, applicative functors and monads in PHP.
- Mashape / unirest-php - PHP HTTP client. Good alternative to Guzzle .
- m6w6 / pharext - Distribute PHP extensions as self-installing phar files.
- Analogue ORM - Implementation of Data Mapper for PHP.
- ircmaxell / PhpGenerics - An experimental implementation of generics in PHP.
- cpliakas / git-wrapper - PHP shell for working with Git.
- hnw / php-timecop - The extension allows you to "change" and "freeze" time, changing, respectively, the result of calling functions to work with date / time. Inspired by timecop from the Ruby world.
Learning Materials
Asynchronous PHP
Collaborative multitasking in PHP - Also on the topic, see the famous post from Nikita Popov .- Reactive PHP Events - About Asynchronous PHP Features.
- Writing a web server in pure PHP
- Asynchronous I / O and Network Programming in PHP - The author described the simplest implementation of node.js in PHP.
Laravel
Symfony
- Symfony 2 Component Overview: Stopwatch - Previously also included: ExpressionLanguage , Finder , Validator , Routing , Config , EventDispather , HttpKernel , Translation , Templating , ExpressionLanguage , Finder , Process .
Improving security and simplifying development in Symfony2 with Annotations and Doctrine filters- Briefly about the new Symfony installer
Yii
- Development on Yii2: Working with Active Record , User Registration
Yboard - Yii Bulletin Board Engine
PHP Objects and Classes under the Microscope - Continuation of a series of posts by Julien Pauli on the features of the interpreter's internal structure.- Security tools for PHP projects - Security Advisories Checker , Roave Security Advisories , iniscan , versionscan .
- Using the GitHub API in PHP
- Quickly create a REST API using Slim framework
- Thoughts on designing an API - Anthony Ferrara on the principles of designing good APIs.
- Phalconist - Resources on the Phalcon framework.
- WordPress Core Contribution Guide
- Effective use of interfaces in PHP
- SOLID in PHP examples
- Integration testing of PHP applications using Behat
HHVM - Speeding up PHP. Is free. Without SMS - Slides.
How to upgrade your open-source project using code quality badges
Linking tests via @ ticket annotations with Jira
About HTTP, Middleware and PSR-7 or what is wrong with the current approach - Submitted by zviryatko .
Optimization of ISPmanager for projects on Bitrix or how I crossed ISPmanager and VMBitrix (Bitrix environment)
Rock Sanitize - a simple and flexible sanitizer
Snacks from the new PHPixie Template
Do-it-yourself Asterisk AMI processing Part one: create a class in PHP to access the asterisk or do-it-yourself php socket client
Introducing Rock Validate
Meet Envoyer.io , 2
Simple PHP generator for complex HTML tables
Entertaining
- HippyVM goes to Y Combinator and fails - According to the author, the HippyVM project, a PHP virtual machine implemented on top of PyPy , did not find a source of funding and has stalled at the moment.
- Infographic: 5 Things You Should Know About PHP 7
Sitepoint PHP Framework Popularity Survey Results- Benchmark of popular PHP frameworks - It is noteworthy that in the test Laravel 5.0 was in last place.
Thanks for attention!
If you notice a mistake or inaccuracy - please inform me in PM .
Thank you for the photo Leszek Krupiński .
Send links to interesting articles or useful tools that were not in the PHP Digests , and your name will be next to the link in the release.
Send link
Quick search for all digests
← Previous issue