PHP Digest # 187 (August 18 - September 7, 2020)



Fresh selection with links to news and materials. In release: PHP 8 beta 3, new attribute syntax adopted in PHP 8, Zephir everything, a whole bunch of useful tools, articles, videos, podcasts.



Enjoy reading!





News and releases



  • PHP 8 beta 3 - The last beta in the cycle. The next release will be RC 1, which is expected on September 17th.
  • PHP 7.4.10 , PHP 7.3.22
  • Zephir Phalcon β€” Zephir PHP- Phalcon , Zephir , Phalcon 5 PHP.
  • WordPress PHP. Matt Mullenweg, PHP 5.6 . PHP ≀5.6 21.6% WP.


PHP Internals



  • check [RFC] Shorter Attribute Syntax Change β€” - . #[Attribute].
    #[
      ORM\Entity,
      ORM\Table("user")
    ]
    class User
    {
        #[ORM\Id, ORM\Column("integer"), ORM\GeneratedValue]
        private $id;
    
        #[ORM\Column("string", ORM\Column::UNIQUE)]
        #[Assert\Email(["message" => "The email '{{ value }}' is not a valid email."])]
        private $email;
    }
    


    , @@Attr PR. #[ ] , .



    //   
    #[ORM\Entity]
    #[ORM\Table("user")]
    
    //  
    #[
        ORM\Entity,
        ORM\Table("user")
    ]


    .
  • new [RFC] any() and all() on iterables β€” :

    any(iterable $input, ?callable $callback = null): bool β€” , , true.

    all(...) β€” true , true .



    :



    // 
    $satisifes_predicate = false;
    foreach ($item_list as $item) {
        if (API::satisfiesCondition($item)) {
            $satisfies_predicate = true;
            break;
        }
    }
    if (!$satisfies_predicate) {
        throw new APIException("No matches found");
    }
    
    // 
    if (!any($item_list, fn($item) => API::satisfiesCondition($item))) {
        throw new APIException("No matches found");
    }




  • Pest 0.3 β€” PHPUnit, . PhpStorm Pest IntelliJ.
  • Codeception/Verify 2.0 β€” PHPUnit Codeception fluent-.
  • ramsey/composer-repl β€” composer repl bobthecow/psysh.
  • brick/money β€” . , GMP BCMath. moneyphp/money.
  • bassim/super-expressive-php β€” - . VerbalExpressions/PHPVerbalExpressions.
  • phpsci/phpsci-carray β€” PHP . NumPy.
  • github.com/phpwebclient β€” PSR-18 HTTP-.
  • hamlet-framework/type β€” . , , cast, assert, instanceof . .


Symfony



  • ru Β«Symfony 5: Β» .
  • Symfony #714 (31 β€” 6 2020)


Laravel



  • laravel-orion/laravel-orion β€” REST API Eloquent- . @alexzarbn.
  • Statamic 3 β€” CMS Laravel.
  • Laravel-.
  • ru Legacy Laravel: .
  • ru Laravel 8 β€” ? β€” 8 .
  • habr Laravel– (24 – 6 2020)
  • video Laravel Worldwide Meetup #2: Neo Ighodaro and Michael Dyrynda


Yii



  • yiisoft/auth β€” Yii 3 , , PSR-15 middleware .
  • yiisoft/strings β€” .


Async PHP



  • habr ORM




  • PHP- Β« Β» β€” ( , ).
  • : 1 β€” , -.
  • unserialize() PHP β€” .
  • (psalm) .
  • PHP FFI.
  • Xdebug + Docker + PhpStorm, .
  • Anna Filina β€” Anna Filina PHP:
  • habr Xdebug Windows Subsystem For Linux 2 (WSL2).
  • habr PHP-.
  • habr : .
  • habr PHP.
  • habr . ? β€” .
  • habr Lingualeo PostgreSQL 23 β€” PHP . : .
  • habr 20_20 β€” , β€” .


/



  • video Tobias Nyholm async-aws/aws AWS.
  • ruvideo IT , .
  • audio PHP Internals News # 67 - Derik Xdebug talks to himself about a new expression match. Read more about the history matchin PHP in the post .
  • ruaudio Podlodka # 180 - PHP - Release of the legendary podcast Submarine featuring Nikita Popov and me.









Thank you for attention!



If you notice an error or inaccuracy, please let us know in a personal .

Questions and suggestions write to mail or twitter .



More news and comments on the PHP Digest Telegram channel .



Send link

Search links in all digests

← Previous issue: PHP-Digest # 186




All Articles