The digest of interesting news and materials from the world of PHP No. 33 (January 1 - January 12, 2014)

We bring to your attention the next selection with links to news and materials.
Enjoy reading!
News and Releases
- Laravel has become the most popular PHP repository on GitHub - This is how the young framework outperformed even Symfony. The creator of the framework, Taylor, commented on this event in his post
. - PHP updates 5.5.8 and 5.4.24 - Releases of current branches with bug fixes.
- CakePHP 3.0.0 dev preview 1 - The public preview version of CakePHP 3 saw the light. Perhaps CakePHP is too early to write off?
- Composer implements startup based on PSR-4
Php
- RFC: Unpacking Argument Lists - Another great suggestion has been accepted and posted to PHP 5.6! Goodbye call_user_func_array.
- New features of PHP 5.6 - There was no beta release 5.6, so you can expect that there will be other new features, but those that are already in the release are discussed in a post.
Instruments
- PHP Option Type - The Option type is designed for cases where sometimes you need to return a value (usually an object), but sometimes the value can be empty (usually null):
$this->findSomeEntity()->orElse($this->findSomeOtherEntity())->orElse($this->createEntity());
You can read more in the author's post: Simplify algorithms with options . - Password Validator - A library designed to simplify the use of the new password hashing API, as well as simplify updating the "old" hashes in the application. You can read more in the post of the author.
- alpaca - A tool for automatically generating client libraries in php, nodejs, python, ruby for your API.
- Macaw - A small, simple, fast and convenient router.
- Recurr - A library designed to work with repetition rules and translate them into DateTime objects.
- Minime \ Annotations - Working with annotations is quick and easy.
- MediaVorus - A library for obtaining all technical information about files.
- turing-php - Implementing a Turing machine in PHP.
- PHP Project Starter - A command-line tool that allows developers to quickly create PHP applications that follow generally accepted conventions and use best-in-class development tools.
Learning Materials
- Functional library: Iteration , Traversal , Null - A series of excellent posts by Igor Wiedler, in which he examines the state of functional programming in PHP and considers some libraries for solving typical problems.
- The matter regarding the ifsetor function is Post by Nikita Popov. The problem of gaining access to an array element is considered when it is not known in advance whether an element with a given key exists.
- Stored procedures in MySQL and PHP - About when the use of stored procedures is justified, their advantages, disadvantages and examples.
- Create a photo wall by tag using Twilio and PHP - An example of creating an application that uses the Twillio service to receive MMS messages with images.
- You do not need a framework - About why in the era of PSR and Composer the use of frameworks is not necessary at all. In response, another post was written with counterarguments. And another post on the topic: frameworks are good, components are cool .
- Message Queuing, a comparison of Beanstalkd, IronMQ, and Amazon SQS - Briefly about the concept of message queues and the strengths and weaknesses of the three labeled solutions.
- Zend Certified PHP Developer 5.5 - Some useful materials to prepare for passing the new certification from Zend.
- Technical Interviews and Warming Up Questions - Why simple questions should be asked to “warm up” a candidate for an interview.
- A task at a PHP interview - The author gives an example of a simple task that was offered to him at an interview: to determine the day of the week by a given date. Considered a solution.
- We use Composer to install JavaScript, CSS and images in web-root - The post shows how you can expand the use of Composer to install not only PHP packages, but also JS / CSS / images in a folder other than vendor. For this, it is proposed to use the Asset Manager plugin .
- Magento 2 - A few posts about using the new features of the upcoming version.
- We play with dependency injection in PHP - Another good post about DI in PHP.
- Installing the LAMP stack on Debian - Detailed instructions for installing both Debian itself and all components of the stack: Apache, MySQL, PHP 5.5, as well as PostgreSQL, ImageMagick, GraphicsMagick and others.
- Acceptance Testing with Codeception
- Nginx, PHP 5.5 and Phalcon on OpenShift - A small guide to installing and installing nginx and Phalcon on an OpenShift instance.
- We decode TLS in PHP - In a post, the author described his steps for decoding, and also shared the result .
- Test Spies and Mockery
- What is the fundamental difference between Mockery and Prophecy?
- Outside the abstract classes - A series of interesting posts from Anthony Ferrara , decided to continue Larry Garfield.
- PHP and Neo4j: Introduction to Graph Databases - The first post in a series of tutorials. The basic principles of graph databases are considered. A good hub topic: Neo4j graph database in PHP
. - It's already almost 2014, and we're still committing broken code - To solve this problem, the author suggests using git hooks and gives an example script that checks syntax errors for Ruby, JavaScript, Python, Bash, Go and PHP code.
- Introduction to Apache CouchDB for PHP Developers
- Explain namespaces in PHP using Game of Thrones characters
- PHP Internals Book - A book entirely devoted to the internal structure of PHP, has been supplemented with new chapters about Zvals and the PHP build system.
- We create an application for managing a client base using AngularJS and Laravel
- Laravel 4: Embedded Systems - About using Arduino, webcams and Laravel. Continuation of a series of comprehensive tutorials on Laravel .
- Making your package independent of the framework - A real example of modifying the package is considered in order to make it independent of the framework. And also thoughts about why this should be done even if you are not going to use your solution with another framework.
- Simple PHP Crawler Using Goutte
- Best frameworks for 2014 - Based on a survey of the popularity of PHP frameworks, the author identifies the three most promising frameworks in the coming year. An alternative survey
on Habré shows completely different results,
Best PHP frameworks for 2014 - A mini-review of a dozen popular and not-so-great PHP frameworks: Laravel, Flight, Yii, Medoo, PHPixie, CodeIgniter, Kohana, Symfony, Pop PHP, Phalcon.
SOLID Crib with PHP Examples
Approaches to optimizing (web) applications
How to link Yii Framework and Doctrine 2 ORM?
How I made the API work in Yiinitializr Advanced - In a post about the principles of designing the correct API architecture, as well as how to quickly deploy the API for your Yii projects.
Automatic cache tagging in Yii
Create a behavior for Yii2
Fuzzy c-means fuzzy clustering algorithm in PHP
Creating a simple REST application on Silex
HHVM, Nginx and PHP (as well as Laravel) - How to install and configure HHVM and nginx to run Laravel applications.
Audio and video materials
PHP Town Hall: Episode 17 - An interesting conversation with Sara Goleman, one of the main developers of HHVM, as well as Joe Watkins, the developer of PHPDBG , which will be included in PHP 5.6.
Startup of Larvel-application based on PSR-4
Getting Started with Apigility - Learn more about the capabilities of Apigility, a tool from Zend to quickly create all kinds of APIs. Creation of API, creation of services, authorization and authentication, and also rules of validation are considered.
Laravel from scratch - Great Laravel screencasts.
Entertaining
- The Tribal Framework Mindset - An interesting post from Phil Sturgeon, in which he once again talks about the PHP community, as well as how some technologies can create an isolation effect for developers instead of involving them in the community as a whole. The reason for the post was the Laravel community. It's funny, because Laravel more than other frameworks includes third-party dependencies. The creator of Laravel, Taylor, replied in his post: Combining PHP .
- Zend: A few thoughts on the eve of 2014 - A few results and plans from Zend.
- Funny Rasmus Quotes
- How and why did the PHP elephant appear? - Interview with the creator of the cult elePHPant.
- Several easter eggs have been added to php.net - Try logging into php.net , enter one of the following combinations and click
: “Rotate”, “mirror”, “I hate PHP”, “I love PHP”.
Quick Search All Digests
← Previous Issue