The digest of interesting news and materials from the world of PHP for the last two weeks No. 25 (08.25.2013 - 09.09.2013)
We bring to your attention the next selection with links to news and materials.
News and Releases
- PSR-5 PHPDoc and PSR-6 Caching Interface - Just two weeks ago, PSR-4 got draft status , and two more new standards are coming: PSR-5 - on documenting code and PSR-6 - caching interface.
- Doctrine 2.4 - The most popular ORM library has been updated. By the way, from now on it will not be available from PEAR, only Composer.
- Zend Announces 10,000th Zend Certified Engineer - Zend Announces 10,000 PHP
- Certified Developers You can read a short interview with the ten thousandth here .
- RFC: Auto-loading functions - In continuation of the recently published proposal to import functions and constants from namespaces , a new proposal was put forward: implement automatic loading of functions and constants by registering the corresponding callback in autoload_register. The proposal was perceived by the core-team quite ambiguously, as evidenced by disputes in php-internals . The author of the proposal, a well-known activist of the PHP community Anthony Ferrara, was indignant at the lack of constructive criticism and announced that he was leaving php-internals . He wrote in more detail about the reasons for making this decision, as well as about problems in the core PHP team in his post .
RFC: Syntax of Functions with a Variable Number of Arguments
- An excellent proposal from Nikita Popov, which greatly simplifies the use of functions with a variable number of arguments. Where previously required to be used
func_get_args(), now you can simply declare
function fn($arg, ...$args).
A good overview of the proposal as well as examples can be found in this post .
- RFC: Unpacking argument lists - A proposal that complements the previous one, and that is to implement in PHP functionality already available for example in Python and Ruby . In addition to convenience, the implementation of the new syntax is also much more productive .
RFC: Named Arguments
- And another great suggestion from Nikita Popov. If these changes are made to the kernel, then finally it will become possible to pass arguments to the function in an arbitrary order and skip optional parameters. And although a similar proposal has been
put forward before
, so far it is in the literal sense of the RFC - a request for feedback. Discussions about the need for this functionality are ongoing.
A few thoughts and examples in this post .
RFC: Skipping optional parameters
- In this sentence, it is assumed that the keyword is used
defaultin the argument list:
fn(1, default, 3);
- PHP FFmpeg - Great wrapper over ffmpeg for PHP.
- Alice - A fixture generator that allows you to describe test data in an easy to read and edit form.
- Geocoder - A library that will be useful in creating applications that process geo-data.
- Rx.PHP - A set of libraries for creating asynchronous and event-based PHP applications.
- Explain Shell - An excellent tool that visually displays information about the console command and its parameters. For example tar xzvf archive.tar.gz .
- Introduction to Zephir - Not so long ago, the Phalcon team announced the creation of a new Zephir language - a mixture of PHP and C. Follow the link in the post that describes how to install Zephir and provides an example of creating a small event manager.
- Data Structures, PHP. Part Two - Continuing the translation of a series of articles on data structures and their use in PHP. Heap and graphs examined.
- Why symfony 7 facts - A post composed of a short interview with Fabien Potencier and supplemented by the opinion of the author.
- We create QR codes using PHP and Silex - A small note about using the endroid / qrcode library in conjunction with the Silex microframework.
- A look at the development of PHP - In addition to simplicity, the author also refers to the main reasons for the popularity of PHP as the language has been constantly evolving over the 18 years of its existence.
- Something about the new design of PHP.net - A post about how the work on the design of php.net went in recent years and plans for the future. The author plans to introduce a new tool to use Markdown-based markup instead of the current DocBook-based markup to increase the number of third-party contributors.
- We integrate SonarQube with Jenkins and a PHP project - Tutorial on setting up SonarQube for analyzing quality analysis and collecting statistics on the PHP project code.
- MVC is not enough - A short note in which the author writes that MVC should be part of your application, and not your application.
- We follow the voting on “Russia 10” - the author wrote a small script for monitoring statistics, which he shares.
- Inheritance of application configurations on Zend Framework 2 - The post demonstrates the approach of describing application configurations for different environments, which allows to avoid duplication and specify only different parameters.
- CurlFile and Facebook SDK in PHP 5.5 - In PHP 5.5, CurlFile was added , a small addition to the Curl extension that allows you to specify as a parameter the file to send in the request. A post about a mini-bug in the Facebook SDK that did not allow using this feature.
- Integrating Codeship with Fortrabbit - Instructions for integrating the Codeship CI tool in the popular PaaS hosting for PHP projects.
- Library authors, do not create vulnerable interfaces - A series of recommendations for library authors on how to make their tools safer. Recommendations regarding SQL injection.
- Xdebug - professional debugging PHP - Tutorial on using Xdebug as a debugger and an example of integration with PHPStorm.
- We create a web application from scratch on CodeIgniter - A series of tutorials on creating an application with a backend on CodeIgniter and Backbone at the front, as well as MongoDB as a data warehouse. In the first part, the basic setting.
- We process incoming mail using SendGrid - A small tutorial on using the SendGrid service .
- Automatic code generation in Yii - An overview of a couple of extensions for Yii, which can significantly reduce the time to perform routine operations.
- New features of PHP 5.5 - Another post with an overview of the features of the latest version of PHP. We need more reviews: 1 , 2 , 3 , 4 , 5 .
- Crime scene: PHP - A blog that is replenished with pearls of PHP developers. It's funny, but I think many of us meet with “pearls” worse than daily.
- Continuous Integration for PHP with Jenkins - Tutorial on setting up a jenkins server for working with PHP projects.
- Laravel 4 Tutorials - More than a dozen Laravel 4 tutorials.
- Implementing the logging aspect using Doctrine annotations - Continued article on logging using aspects and Go! Aop .
Folder vendor in the Composer
- One of the frequently asked questions on the Composer: how to install the package into a directory other than
vendor. In a post, the author writes why this is a bad idea.
- An example of developing a blog on Zend Framework 2 , 2 , 3 - A series of articles for beginners. In the fourth part, the author promises to update the application taking into account the recommendations from the comments.
- September issue of Web & PHP magazine - The latest issue of the magazine contains several interesting articles on the topic of PHP and web development, for example, an overview of solutions for creating real-time web applications in PHP .
- Laravel 4 ACL - The previous tutorial talked about authentication in Laravel 4 . This time a detailed tutorial on Access Control List.
- How heavy is Silex? - Silex is often described as the largest microframework. The author writes that despite the fact that Silex is slightly larger than other microframes, it is nonetheless lightweight and contains a minimum of required dependencies.
- Personal Maps , 2 , 3 , 4 - A series of articles that describe the entire cycle of creating a full-fledged web application from scratch. Used by Yii Framework and Angular JS.
Materials from past conferences
- CakeFest 2013 - Slides 17 talks from the CakePHP framework conference held in San Francisco .
- Practical refactoring - The digests mentioned a virtual group of PHP users - NomadPHP , in the framework of which webinars are held monthly. The link slides the August report.
- PHP @ FrOSCon 2013 - PHP was presented in a separate thread at the FrOSCon 2013 conference in Germany . The link slides 6 reports.
- Laracon EU - Slides of 2 reports from the conference held in Amsterdam. There are the slides of the introduction to Laravel 4 .
- PHP: The Undiscovered Country - Video footage of reports from the San Francisco Conference .
Quick Search All Digests
← Previous Issue