PHP DIGEST #11: NEWS & TOOLS (DECEMBER 11 - DECEMBER 25, 2017)

December 29, 2017

Phalcon 3.3.0, LUYA 1.0 Vanilo framework, ReactPHP HTTP Server Middleware, RFC: Scalar Pseudo-type, and some PHP Magic Tricks. Hurry up to review our festive PHP digest!

Merry Christmas and Happy New Year to everyone! Thanks for being with us in 2017!

 

 

news

News & Releases

 

function f(scalar $param) {
   echo "{$param}\n";
}

 

  • RFC: Namespace-scoped declares — It is possible to set interpreter directives for entire namespaces, and not just for each file. This feature will allow you to add and flexibly use other directives that control the behavior of the interpreter:

 

// bootstrap.php
namespace_declare('Vendor\Lib', [
   'strict_types' => 1,
   ...
]);

 

tools

Tools

  • atk4/data — ORM, in which the original modification of the Data Mapper pattern is implemented. More details about what's wrong with other ORMs, and how good this is in the author's post.
  • myclabs/DeepCopy — Allows you to create deep copies of objects.
  • mikeerickson/phpunit-pretty-result-printer — The extension for PHPUnit displays the results in a beautiful grouped form:

 

extension-PHPUnit

 

 

Learning

Learning Materials

Symfony

 

 

Yii

 

 

Laravel

 

 

Zend

 

 

Async PHP

 

use function Amp\ParallelFunctions\parallelMap;
use function Amp\Promise\wait;

$responses = wait(parallelMap([
   'https://google.com/',
   'https://github.com/',
   'https://stackoverflow.com/',
], function ($url) {
   return file_get_contents($url);
}));

 

 

interesting

Interesting

 

ofmsieahoggyr3tagpb0ematoas

 

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

Join our newsletter!

Get weekly updates of the top IT news delivered straight to your inbox

OFFER OF THE MONTH

Magento website development. Empower your online store!