PHP Digest # 187 (18 août - 7 septembre 2020)



Nouvelle sélection avec des liens vers des nouvelles et des documents. En version: PHP 8 beta 3, nouvelle syntaxe d'attribut adoptée en PHP 8, tout Zephir, tout un tas d'outils utiles, articles, vidéos, podcasts.



Bonne lecture!





Nouvelles et communiqués



  • PHP 8 beta 3 - La derniĂšre version bĂȘta du cycle. La prochaine version sera RC 1, attendue le 17 septembre.
  • 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



  • vĂ©rifier [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")
    ]


    .
  • Nouveau [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)
  • vidĂ©o 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 — , — .


/



  • vidĂ©o Tobias Nyholm async-aws/aws AWS.
  • ruvidĂ©o IT , .
  • l'audio PHP Internals News # 67 - Derik Xdebug se parle d'une nouvelle expression match. En savoir plus sur l'histoire matchde PHP dans le post .
  • rul'audio Podlodka # 180 - PHP - Sortie du lĂ©gendaire podcast Submarine avec Nikita Popov et moi.









Merci de votre attention!



Si vous constatez une erreur ou une inexactitude, veuillez nous en informer Ă  titre personnel .

Questions et suggestions écrites sur mail ou twitter .



Plus de nouvelles et de commentaires sur la chaĂźne PHP Digest Telegram .



Envoyer le lien

Rechercher des liens pour tous les résumés

← NumĂ©ro prĂ©cĂ©dent: PHP-Digest # 186




All Articles