Back to Home

The digest of interesting news and materials from the world of PHP over the past two weeks No. 9 (01/12/2013 - 01/25/2013) / Zfort Group company blog

digest · news · selection · links · web development · PHP · Laravel · Haskell · PSR · Node.js · PDO

The digest of interesting news and materials from the world of PHP for the last two weeks No. 9 (01/12/2013 - 01/25/2013)



    We bring to your attention the next selection with links to news and materials.

    Enjoy reading!


    News and Releases


    • PHP 5.5.0 Alpha4 Released - The PHP development team has announced the release of the fourth alpha version of PHP 5.5. This release includes both bug fixes and a couple of new features, including: getting the class name using the keyword "class" (ClassName :: class), more details here ; Added DateTimeImmutable class. Full list of changes here . It is worth noting that this is the last alpha release of PHP 5.5 - from this moment work begins on beta and the first of them is expected on February 7. No new features will be added in beta versions, so at the moment you can already confidently talk about what PHP 5.5 will be like. Accessors we will not see .
    • PHP 5.4.11 and PHP 5.3.21 Releases - The current stable branches have also been updated. Releases include bug fixes only. A list of changes can be found here .
    • Laravel 4 Beta 1 - A lot has already been written about the fourth version of the framework, and finally the first beta. The documentation is here , the code is here .


    Php


    • Functional programming in PHP - An excellent post that describes in detail the current state of the implementation of the functional paradigm in the PHP language. An example of the use of calculating the total cost of a shopping basket in a functional style is given.
    • Traits: good or bad? - Personal Traits have already written a lot . Another article in the piggy bank, which addresses the advantages and disadvantages of the new features of the PHP language.
    • Why is 2013 the year of PHP? - Last year for PHP was definitely successful and productive, and in this post, the author first talks about the problems that PHP developers face and makes a forecast for 2013.
    • Parsing and executing PHP code in Haskell , 2 - A very interesting experiment of the author was described by him in two posts. Details about all the key points of creation: in the first part about parsing PHP code, and in the second about, in fact, execution. The code for the resulting tool is available on Github .

    Learning Materials


    • Publisher-Subscriber Implementation on Websockets, Ratchet, Silex and Redis - A small but interesting post about creating a real-time web service that can be used via web sockets. The author was faced with the task of implementing some backend for the iOS application, and the obvious decision seemed to create a REST service, but this solution had a number of disadvantages. As a result, the author implemented a simple tool for processing requests through web sockets using Ratchet, Redis, and Silex. Code and demo .
    • PSR? - Good post with an overview of all PSR standards. Recently, there has been a lot of criticism towards the PSR, especially after the adoption of the PSR-3, but there are also enough defense posts, such as this one and especially this one .
    • Autoload path depth insanity - In his post, the author expresses thoughts about the PSR-0 standard and, in connection with the advent of Composer, talks about the need to make changes to the standard. List of offers attached.
    • Programming with Anthony - Mediator - An active member of the PHP community Anthony Ferrara continues its series of programming videos. In the next video, he talks about the design pattern of the Mediator. Other videos from the series are available here .
    • 5 signs indicating that your service is not RESTful - Although REST is not a panacea when it comes to building an API, but if you still implement a RESTful service, then do it right.
    • Node.js for PHP developers , 2 , 3 , 4 - If you are a PHP developer and are thinking of switching to something else, then think about Node.js. In a series of articles, the author writes about the basic principles of development on Node.js, and, which is especially useful, supplements the posts with examples of implementing the same things in Node.js and in PHP.
    • MongoDB's aggregation framework - In version 2.2, MongoDB would introduce an aggregation framework that provides powerful and flexible capabilities for solving data aggregation tasks. The post is an introduction to the agregation framework with examples in PHP.
    • Improving PHP workflow with namespaces, Composer, PHPUnit - Video tutorial on using such useful tools. If you are not already doing this, then it is time to start.
    • We get ahead of ourselves in security issues by observing neighbors - The author of the post was hit by news about a recently discovered critical vulnerability in Ruby On Rails ( detailed analysis ). After conducting research, the author discovered a similar vulnerability in the Symfony YAML parser. And although the error has already been fixed , no one is insured, therefore, the author urges you to be vigilant and carefully monitor the detected errors not only in the tools you use, but also in their analogues.
    • LUCID - A series of articles on the development according to the principles of LUCID : L - logging, U - unit testing, C - configurability, I - isolation, D - documentation.
    • Lithium: getting data from the database - A small article that describes how to work with the database in the Lithium framework .
    • We implement PSR-3 using log4php - Tutorial on how to implement the recently adopted standard using the excellent logging tool from Apache .
    • Password Hashing in PHP - Repetition - The mother of learning. Another secure password hashing guide. And here is a tutorial on using Zend \ Crypt from ZF2 to solve the same problems.
    • Zend Framework 2 Event Manager - A good guide to getting started with Event Manager in ZF2. The author first gives an overview of the principles underlying: the Observer design pattern , event-oriented programming. Then it touches on specific examples of using the event manager.
    • Two-factor authentication from Google to PHP - A small post on the implementation of two-factor authentication using the GAuth library .
    • You can simply take and hide information - Habrapost, which describes the implementation of the steganographic algorithm in PHP - we hide information directly in the image.
    • Using PDO - A detailed tutorial on PDO . If you are still using the Mysql extension , then it's time to forget about it and start using modern database access interfaces.


    Link to the previous issue.
    Material prepared by dbritan , nesttor and pronskiy

    Read Next