PHP Digest # 189 (September 21 - October 5, 2020)



Fresh selection with links to news and materials. In release: PHP 8.0 RC 1 and renaming of internal function parameters, PhpStorm 2020.3 EAP, multi-line short lambdas, attributes for property groups and other PHP Internals news, a portion of useful tools, articles, streams, podcasts.



Enjoy reading!





News and releases



  • PHP 8.0.0 RC 1 β€” - 8. 4 - 15 .



    core- . PDO. .
  • PhpStorm 2020.3 EAP β€” . PHP 8 β€” . Xdebug 3, PHPStan/Psalm ( ), Guzzle HTTP- .
  • PHP 7.2.34
  • PHP 7.3.23
  • PHP 7.4.11
  • ru phpcommunity.ru β€” PHP-, -.
  • Hacktoberfest 4 - .



    - , - readme. PR. DigitalOcean - , β€˜hacktoberfest’.



    , - issues #hacktoberfest PHP-.


PHP Internals



  • check [PR] Attributes on property groups β€” , , .
    class FooBar {
        #[NonNegative]
        public int $x, $y, $z;
    }
    
  • check [PR] Attributes and strict types β€” strict_types=1.
  • [PR] OPCache: Direct execution opcode file without php source code file β€” PR, . , - Java .pyc / .pyo.



    , PHP- . .phar, .



    . PHP . -, PHP 7.4.22 segfault PHP 7.4.23. β€” .
  • [PR] Multiline arrow functions β€” , PHP 7.4, . - :
    $guests = array_filter($users, fn ($user) => {
    
      $guest = $repository->findByUserId($user->id);
    
    
      return $guest !== null && in_array($guest->id, $guestsIds);
    
    });
    


    , use.



    , =>:
    fn() => {}
    fn() {}




  • thephpleague/event 3.0.0 β€” PSR-14.
  • terrylinooo/simple-cache β€” PSR-16 , Redis, MySQL, SQLite, APC, APCu, Memcache, Memcached WinCache.
  • Code With Me (EAP) β€” IDE JetBrains.
  • Bolt 4.0 β€” CMS Symfony- .


Symfony



  • Symfony 5.2 PHP 8 β€” : #[Route('/path', name: 'action')] , #[Required] .
  • Symfony.
  • Symfony #718 (28 β€” 4 2020)


Laravel



  • spatie/laravel-typescript-transformer β€” PHP Typescript . .
  • habr Laravel β€” drandin/closure-table-comments
  • habr , ORM
  • habr Laravel 8
  • habr Laravel Jetstream β€”
  • habr Laravel– (28 – 4 2020)
  • PHP Laravel Spatie
  • video Laravel Worldwide Meetup #3: Yaz Jallad β€” PhpStorm. PHP Russia.


Yii



  • W3C WordPress CraftCMS, Yii 2. , .


Async PHP



  • micc83/mailamie β€” SMTP- . ReactPHP.




  • IDE , ? β€” , .
  • @.
  • , .
  • .gitattributes PHP-.
  • PHP? β€” Β« RustΒ», Psalm PHP . : Β«there’s never been a better time to start a new PHP projectΒ».
  • habr PHP. ?
  • habr php-developer 2020.


/



  • video PHP- Xdebug β€” C Xdebug.
  • video c rectorphp/rector.
  • ruaudio β„– 11 β€” () PHP , , .
  • ruvideo β€” Yii 3 .
  • video - PHP 8 β€” Brent Roose Freek Van der Herten .







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 β„– 188




All Articles