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


    • habrYii 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




    Learning Materials




    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.

    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


    Also popular now: