PHP Digest No. 126 (February 12 - 25, 2018)
Fresh selection with links to news and materials. In the release: a puzzle game, Yii 2.0.14, PHP-DI 6.0 and other releases, a proposal for immutable classes from PHP Internals, a portion of useful tools, and much more.
Enjoy reading!
News and Releases
- Yii 2.0.14 - Under the hood, more than a hundred improvements and fixes in almost all components of the framework. In addition, this is the latest release in Yii 2.0 containing improvements. In the future, the core team will concentrate on developing version 2.1.
- PHP-DI 6.0 - Added container compilation and other improvements.
- HTTP / 2 Server Push added in nginx 1.13.9 . A couple of examples of using PHP here and here .
- Sylius v1.1.0
PHP internals
- [RFC] Immutable classes and properties - It is proposed to implement immutable classes and properties:
immutable class Email { public $email; public function __construct ($email) { $this->email = $email; } } $email = new Email("foo@php.net"); $email->email = "bar@php.net" // Call will result in Fatal Error
class User { private $id; public immutable $email; public function __construct ($id, $email) { $this->id = $id; $this->email = $email; } }
Instruments
- rest-control / rest-control - A tool for testing and validating REST services.
- fredsted / webhook.site - A useful tool for testing webhooks.
- php-school / cli-menu - Interactive menus for the command line.
Learning Materials
Symfony
- Speeding up the router the Symfony , 2 - about the technical details of the implementation of a 77-fold acceleration of the router. A few benchmarks on a real application.
- PaEndpointBundle - An Alternative to Symfony Controllers
- Symfony Week # 581 (February 12-18, 2018)
- Symfony Week # 582 (February 19-25, 2018)
Yii
Laravel
- spatie / laravel-csp - A small package for working with Content Security Policy headers.
- voten-co / voten - Reddit clone on Laravel.
- jshannon63 / laravel-psr15-middleware - Adapter for using PSR-15 middleware in Laravel. Post in support.
- 5 Laravel helpers to make life easier
- larastream.com - Like Twitch for Laravel only.
Async php
- Asynchronous PHP: Why?
- Amp Promises: From Generators to Corutin
- Fast Web Parsing with ReactPHP - There is a translation .
- clue / php-mq-react - A lightweight mini-queue implemented on ReactPHP.
CMS
- Critical Vulnerabilities in Drupal 7.x, 8.4.x
- Migrate API and what it eats with. Using the Drupal 7 forum migration as an example. Part 1
- CleanTalk, launch WordPress Security
- About misunderstanding the DRY principle
- Factory as a Service
- About implementing an analog pipe operator in PHP userland
- Moki at the architectural boundaries - About where and when to use moki.
- Debugging PHP with Xdebug: 2018 Guide
- About using WebDriver from BotMan to implement web API for chatbot.
- Mutation testing in large PHP projects using Infection .
- Data-driven testing in PHPUnit
- Handling Webhooks with Serverless PHP
- PSR-7 framework: Template engines and layout
- We deploy automation in a couple of hours: PHPUnit, Selenium, Composer
Entertaining
- returntrue.win - A PHP puzzle game in which you need to pass such an argument to a function so that it returns true. There are several possible answers.Hidden text
Thanks for attention!
If you notice a mistake or inaccuracy - please inform me in PM .
Questions and suggestions write to mail or twitter .
Send link
Search links for all digests
← Previous issue: PHP Digest No. 125