The digest of interesting news and materials from the world of PHP No. 40 (April 14 - April 27, 2014)
We bring to your attention the next selection with links to news and materials.
Enjoy reading!
News and Releases
- Behat 3.0.0 - After 2 years of work, the third version of the popular BDD tool for PHP has finally become available. More details in the video presentation from the author .
- PHPUnit authors announce end of PEAR support - The once-popular PHP PEAR extension and package repository is steadily moving towards the end of its existence. The pear.phpunit.de channel has existed since 2006, but will be closed no later than December 31 of this year, and the PHPUnit 3.7.35 and PHPUnit 4.0.17 releases will be the last available through this installation method. In addition, Fabien confirmed that Symfony's PEAR packages will also cease to be published soon.
- Yii 2.0 beta - A detailed review of the beta of the long-awaited Yii 2.0 framework. Also see a selection of topics to consider when upgrading to Yii 2.
- WordPress 3.9 “Smith” - The release contains mostly cosmetic changes and improvements.
- DevConf 2014 - On June 14, a conference for web developers DevConf will be held in Moscow. Among the confirmed in the PHP section are reports from SamDark on Yii 2.0 , as well as from one of the core Laravel developers - Shawn McCool .
Php
- RFC: Return Type Declarations - A proposal for implementing type-hinting for return values has already been mentioned in the digest, an implementation has been added , so there is every chance of seeing this in action soon.
Instruments
- Monolog - The most popular PHP library for logging.
- Open source tools from Box - The well-known Box storage service has shared a number of its internal tools, including PHP solutions.
- Gaufrette - A library that provides an abstract layer for working with the file system. Allows transparent interaction with both local storage and remote. A similar solution was previously mentioned - the Flysystem library .
- Obfuscalp - The tool allows you to find and remove suspicious / malicious code in PHP scripts.
- sabre / http - Library for convenient work with HTTP requests and responses.
- ZFDeploy - A tool for deploying ZF2 applications.
- Structr - Definition, validation and processing of data structures in PHP. Take a look at an example to appreciate this interesting idea.
- Database Backup Manager - The library allows you to backup databases and save them to S3, Dropbox, FTP, SFTP and other storage.
- PINQ - An analogue of LINQ for PHP. Although there are a lot of similar implementations , I was even on Habré .
- Pattern Lab - Static Site Generator.
- js-search - Search engine for static sites.
- Rollout PHP - Port of the popular tool from the Ruby world Rollout .
- Ardent - An alternative collection implementation for PHP.
- Cartographer - Sitemap generator.
- Bldr - Task build / run system for PHP.
- Thelia is an E-commerce solution based on Symfony 2.
Learning Materials
- Getting started with PHP Underscore - The popular JavaScript library Underscore.js has been ported to PHP as Underscore.php . Click here for an introductory tutorial.
- Versioning Databases Using DBV - Tutorial on dbv.php .
- Versioning Databases with Ladder Migrations - This time, a tutorial on using the Ladder Migration Tool . Also for migrations in PHP there are other more popular tools: Phinx , Ruckusing , Phpmig .
- Running Composer with HHVM - Not So Fast! - As it turned out, HHVM is faster than PHP in composer update, but for composer install the situation is the opposite.
- Enforcing standards with Composer, Git hooks and phpcs
- Flexible PHP-development with PHPFarm - If there is a need to test the code on various versions of PHP come to the aid instruments virtPHP , phpenv , PHPFarm . Use the latter and the post is dedicated.
- Symfony 2 Component Overview: Process - Previously also included: ExpressionLanguage , Finder , Validator , Routing , Config , EventDispather , HttpKernel , Translation , Templating , ExpressionLanguage , Finder .
- Tuples in PHP - In PHP, unlike, for example, Python does not have a built-in data type “tuple”, the post demonstrated the idea of implementing tuples based on SPLFixedArray.
- Store PHP sessions or cache in memory using TMPFS - The author shows how you can organize the storage of session files in memory without using third-party solutions like memcached or Redis. To do this, it is proposed to use the TMPFS virtual file system . An obvious plus of this solution is the speed of implementation, since application changes are not required.
- Implementation of multilingualism - Tips and tricks for implementing support for multilingualism in a PHP application.
- A couple of tutorials on injecting dependencies in controllers in ZF2 , 2
- How to create a form element using external dependencies using FormElementManager
- Testing Laravel 4 Controllers
- Using model events in Laravel 4
- Memberships with Laravel Cashier - The tutorial covers the use of the Laravel Cashier package as an example of creating a site with paid access.
- How gzip compression works
- Yii + WordPress = <3, or The Fascinating Experiment of Getting Frankenstein - On Crossbreeding WordPress and Yii.
- Installing Sphinx search for PHP and the MySQL , 2
- Using Phing for deployment and more
- Chatbot applications via skype, jabber and whatsapp
- Migrating to PHP 5.5 and Unit Tests
- One of the opinions about the future of PHP is a translation of a post from Anthony Ferrara, in which he examines the latest trends in the PHP world: PHP 6, HHVM and Hack.
- Optional dependencies are not needed - About the misuse of the suggest directive in the description of composer dependencies.
- Laravel - About sensational security issue in Laravel - discovered a vulnerability in the “remember me” functionality . Also a selection of related links from the Russian-speaking community Laravel.
- PHP extension dom_varimport: quick conversion of nested arrays to DOMDocument
- Getting started with the Neo4j graph database
Materials from past conferences
- Lone Star PHP 2014 - Report Slides.
Audio and video
- PHP 5.6 in 10 minutes
- Symfony 2 and the REST API - Introduction to creating RESTful applications on Symfony 2.
- About how virtPHP works and how
- Routing in Symfony 2 - A Short Video Review .
- Codeception introduction and its use in Yii
Entertaining
- The source code of the popular 4chan resource leaked to the network
- PHP Virgin - A non-standard approach to learning PHP.
Quick Search All Digests
← Previous Issue