![](http://habrastorage.org/getpro/habr/avatars/4ff/b7e/1e6/4ffb7e1e672b59a5d54622150d6d1039.jpg)
The digest of interesting news and materials from the world of PHP No. 38 (March 9 - March 23, 2014)
![](https://habrastorage.org/getpro/habr/post_images/003/267/a72/003267a7264bbfb18168002ea37465b3.jpg)
We bring to your attention the next selection with links to news and materials.
Enjoy reading!
News and Releases
- Facebook officially introduced the Hack programming language - Although the language itself was available in HHVM for quite some time, and even published tutorials , the official announcement was made only last week. Hack is a programming language that extends the capabilities of PHP, adding features such as static typing , lambda expressions , generics , asynchrony, and others. Most importantly, Hack transparently interacts with PHP - you can implement applications in traditional PHP, and optimize the necessary sections using the capabilities of Hack. Or even use an automatic converter .
See the basic features of Hack in an interactive tutorial . The site code for the language itself is written in Hack and is available on GitHub . - PhpSpec 2.0 - Updated SpecBDD framework for PHP. If you are not familiar with this tool, I recommend watching the screencast .
- PHP-CPP 0.9 - Many updates to the C ++ library specifically designed for developing PHP extensions. Also, documentation is now available on the site .
- pthreads v2.0.0 - Updated a great extension to implement multithreading in PHP. List of changes here .
- Zend Framework 2.3.0 - A new version of one of the most popular PHP frameworks has been released. The first release in 10 months with new features, which, by the way, are many.
- Zend Framework 2 Certification - Zend ZF 2 certification is also now available.
- Phalcon 1.3.0 - Fresh release of the PHP framework implemented as an extension. By the way, the framework has recently turned two years old .
Php
- RFC: Return Type-hinting - It is proposed to implement type-hinting for return values.
Instruments
- PHPWord is a PHP library for reading and writing documents of various formats: .docx, .odt, .rtf and others. Part of the PHPOffice project .
- CSS-Crush - CSS-preprocessor implemented in PHP.
- Magallanes - Another PHP tool for deploying applications.
- Jumper - Allows you to do PHP closure on a remote machine via ssh.
- Unirest PHP is an HTTP client in PHP. Good alternative to Guzzle .
- ProxyManager - A library for creating all kinds of proxy objects.
- Testify.php - Microframework for unit testing.
- Baobab - A library that implements storage and access to hierarchical data using nested sets.
- Phang - Skeleton application on Silex and AngularJS.
Learning Materials
- About the future of PHP - A great post from Anthony Ferrara, in which he examines the latest trends in the PHP world: PHP 6, HHVM and Hack.
- Methods for primitive types in PHP - As always, no less excellent post from Nikita Popov. Written in response to Anthony's thoughts. The problem of implementing primitive types as objects is considered. The author has long realized his idea in the form of an extension , thanks to which you can simply register a user class as a processor of a certain scalar type.
- Dynamically changing forms in Symfony2 - About changing forms on the fly.
- Comparison of private class members in PHP - A post to remind you that access modifiers in PHP operate at the level of classes , not objects.
- Symfony2 Component Overview: Translation , Templating - Previously also included: Validator , Routing , Config , EventDispatcher , HttpKernel .
- Parsing binary data in PHP for example PCAP format
- Exploring Traits - Another post about traits in the piggy bank.
- Use a hash search, not an array bypass - Make the array values keys and get a performance gain. How simple knowledge of algorithms and data structures can help. Also arrived in time for the translation of the article
.
- PHP 5.6 and splat operator
- Payback for early MySQL Fabric support in PHP - A previous release mentioned the possibility of using shard with MySQL Fabric in PHP . This post describes possible performance issues.
- Why I do not recommend scrypt - Anthony Ferrara writes that you should not use the scrypt function to hash passwords.
- On the risks of releasing password hashing - In the continuation of the topic, a post about hashing problems.
- Thoughts on package signing - One of the ways to solve the security problems of PHP packages , the author sees their signing.
- Using composer without adding vendor / to .gitignore
- PHPUnit 4.0: Test Proxies , code coverage - A little about the improvements of the latest release.
- Laravel: sessions, authentication, caching
- ORM and useless models - An interesting post in which the author implements the same business logic in terms of Active Record and Data Mapper.
- We create an application for holding a contest with hashtag tweets - A simple application with the number of tweets counted.
- Acceptance Testing with Codeception: Using Multiple Databases
- Building a Better PHP with HHVM and Hack
- Writing a PHP Extension in Zephir
- Delegator Factories in Zend Framework 2 - The author of the post is also the author of the directly Delegator service factories , added in ZF 2.2. The post details the concept.
- Symfony and Pimple Console Application - Tutorial on creating a simple “hello world” application.
Symfony CMF. Part 2 and the last
Comparison of loop enumeration through arrays through for () and foreach ()
You can already use two new libraries from future PHPixie 3
PHP design patterns. Part 1. Generating
Advanced methods of implicit php code call used in malicious scripts
JPHP - New php engine for Java VM + JIT - Addition to the ranks of alternative PHP implementations. A complete PHP compiler in a JVM bytecode. Bravo!
Materials from past conferences
- MidwestPHP 2014 - Slides 25 reports.
- PHP North East Conference 2014 - Slides 14 reports.
- Hexagonal Symfony - Interesting slides about the architecture of the framework and applications.
PHP UK Conference 2014 - Video recordings of reports from the London conference.
London Behat Users Group - Behat 3.0 - An interesting report from the creator of Behat everzet .
Audio and video
Legacy Code Refactoring with PhpStorm - Webinar Recording.
PHP Town Hall Episode 21 - Visiting Phil Erika Heidi and Rafael Dohms . They talk mainly on the topic of Vagrant.
In the last issue , a survey was conducted among readers. Thanks to everyone who participated! Ideas in the implementation process, but for now you can see the results of the survey .
Quick Search All Digests
← Previous Issue