PHP DIGEST #9: NEWS & TOOLS (NOVEMBER 1- NOVEMBER 19, 2017)

November 20, 2017

 

 

An interface to simplify working with CodeSniffer and PHP-CS-Fixer, a library for generating slugs based on CLDR, a simple Redis queue, an extension for nginx to display a useful page with status, and many other tools are inside the 9th PHP Digest from Zfort Group! Keep on reading.

 

news

News & Releases

  • PHP 7.2.0 RC6 — The sixth and, probably, the last release candidate of the branch 7.2. Waiting for the final release on November 30.
  • PHP Versions Stats - 2017.2 Edition  — Traditional compilation of statistics for six months based on the information that Сomposer sends when connecting to packagist.org. The total share of PHP 7 is already 67.39%.
  • A month of PHP FIG #1: October 2017 — The first regular news review from the group PHP-FIG. PSR-12 about the advanced style of coding entered the draft stage; many ideas for new standards and other news.

 

php

PHP Internals

var_dump(
   $foo,
   $bar,
   $buz,
);

  • [RFC] Flexible Heredoc and Nowdoc Syntaxes — The proposal to improve multi-line text blocks is also accepted. The indentation support and cancellation of the need to move a line after the closing marker will be available:

<?php
$values = [<<<EOT
             a
            b
           c
           EOT, 'd e f'];

 

tools

Tools

 

Learning

Learning Materials

Symfony

Yii

Laravel

Async PHP

CMS

<?php
return [
   'times2' => function (int $x): int{
       return $x * 2;
   },
   'answer' => function (): int{
       return42;
   }
];

 

<?php
['times2' => $mul] = require'foo.php';

var_dump($mul(21)); // int(42)

 

 

interesting

Interesting

Do you have an awesome business idea? Let’s make it real!