PHP the Nice Way - A great post in which the author shares his PHP programming experience, talks about his mistakes and discoveries. The post is full of useful tips and advice.
Use the best API in your PHP MySQL application - At the moment there are three MySQL interfaces available for working with MySQL, namely ext / mysql, ext / mysqli and PDO_MySQL. In php.internals, there was a discussion about the need to exclude the outdated ext / mysql from the default delivery and transfer to the PECL. In his post, the author reveals this topic in detail, gives a thorough comprehensive comparison of the three interfaces.
PHP: The era of testing - According to the author, over the last decade, the PHP community has gone through several important stages: the transition to OOP, web application security, the use of frameworks, code standards, and is currently undergoing a phase that can be called the era of testing.
3 strange facts from PHP that you might not know about - If you are programming in PHP for a long time, then this post will be just a reminder of the non-obvious behavior of real numbers in PHP or of the “effects” of weak typing. However, if you are new, these facts can be a revelation.
PHP Trends - A small application that shows a list of PHP libraries, frameworks, etc. (repositories on GitHub), sorted by popularity. As an index of popularity, the number of added repository to favorites is used.
Simplified Password Hashing - Some time ago, Anthony Ferrara suggested incorporating a standardized hashing interface into the PHP core. The proposal was supported by a vote , and then implemented and already included in PHP 5.5. The author of the proposal in his post tells the details of the new functionality and answers the most frequently asked questions about this.
Run command line programs as functions in PHP - The author was inspired by the Python Sh and created something similar for PHP. Using the tool he developed, you can do things like this, for example: $ sh-> ssh (array ('myserver.com', '-p' => 1393)) -> tail (array ("/ var / log / dumb_daemon.log ", 'n' => 100)); and this will be equivalent to calling: ssh myserver.com -p 1393 tail /var/log/dumb_daemon.log -n 100 from the command line.
Study materials
Migrating to Dependency Injection - An interesting post in which the author describes in detail the process of changing the code of a small application that does not use DI to the one that it uses.
We create our own framework based on the Symfony2 components . In the 11th edition, the author will tell us about the features of HttpKernelInterface, adding more and more listeners to the request. This is a very convenient way to test and debug a separate feature, and then simply integrate it into the request flow, where necessary. Previous issues: 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10
The principle of the only responsibility - We continue to consider the principles of SOLID. This time it will be about the letter "S". To begin with, the author in the post demonstrates a violation of the principle by the example of a class that, in addition to processing user data, also implements the database access functionality. Then the author refactor the code, breaking one class into several new ones, each with its own responsibilities.
Paradigm Soup - Anthony Ferrara, a notorious person in the PHP community, talks about the difference between procedural, object-oriented, and functional programming and how they intersect in code in this short video.
Encoding - Another video from Anthony Ferrara, this time about encoding information.
Questions and thoughts of a newbie about rendering on the client side - The author asks for the first time the question of rendering on the client side, comparing rendering on the server and the client, as well as analyzing the difficulties that may arise when rendering content on the client side. Offers a solution to the problems identified and answers the question of when it is possible to use rendering on the client side and how ZF2 can be used for this.
Improving the performance of Zend Framework 2 - There is still a small list of tips and tricks aimed at improving the performance of applications on ZF2. The author plans to constantly update the list, collecting tips and tricks from different sources in one place.
Do not pull your dependencies - In this article, the author first explains why in some cases it is necessary to pull dependencies in Symfony2 and then why not to do this in other cases.
Separating the application code from the framework - The author writes that in most cases the application code depends heavily on the framework, and also gives recommendations on how to maximally weaken such links.
PHP.Kryptik.AB - Give me your FTP! - The post is about Malvari who has been walking around the network for a long time, hijacking passwords from FTP servers and then connecting to them, embeds the malicious code into the PHP scripts found. The author tells how the infection occurs, how to disinfect the site and how to prevent re-infection.
Validation and filtering in PHP - The theme is old, and yet the author considers typical security threats, talks about what validation is. Provides an example implementation using a standard data filtering extension for implementation on Symfony 2, Laravel 3, CakePHP 2 and also shares its own module for filtering data.
Your first acquaintance with Phalcon , 2 - Appearing quite recently, this framework is rapidly gaining popularity. The reasons are clear: Phalcon is written in C and comes in the form of a native extension for PHP, hence the highest performance. The article is an excellent tutorial from the authors of the framework. In the first part, a description and review of opportunities, in the second - a simple blog application. Also on the subject is available article on Habré
Zend Framework Day 2012 - Recently, a conference dedicated to Zend Framework and PHP was held in Kiev. Presentations slides are available on the conference website. There is also an interesting report.
CMS / CMF
TYPO3 CMS 6.0 released - A new version of the once popular, but recently continuously losing, CMS has been released. Let's see, maybe the latest version will change the trend.
WordPress Plugin Releases
bbPress - plugin allows you to create a full forum based on WordPress.