Upgrade to Pro — share decks privately, control downloads, hide ads and more …

The Latest in PHP: April 2019 Edition

The Latest in PHP: April 2019 Edition

Markdown file can be found here https://github.com/trianglephp/latest-in-php

Chris Gmyr

April 18, 2019
Tweet

More Decks by Chris Gmyr

Other Decks in Programming

Transcript

  1. The Latest in PHP
    April 2019 Edition

    View full-size slide

  2. Presented by
    Chris Gmyr
    @cmgmyr

    View full-size slide

  3. PHP Supported Versions
    4 7.1 Security Only until Dec 1, 2019
    4 7.2 & 7.3 Active Development
    4 7.4 is underway (~Dec 2019, last 7 branch)
    4 8.0 in 2020
    More Info:
    4 http://php.net/supported-versions.php

    View full-size slide

  4. PHP Releases
    4 7.1.[27-28]
    4 7.2.[16-17]
    4 7.3.[3-4]
    More Info:
    4 http://php.net/ChangeLog-7.php

    View full-size slide

  5. PHP RFC: Arrow Functions 2.0
    (in voting - likely, 7.4)
    // before
    function array_values_from_keys($arr, $keys) {
    return array_map(function ($x) use ($arr) { return $arr[$x]; }, $keys);
    }
    // after
    function array_values_from_keys($arr, $keys) {
    return array_map(fn($x) => $arr[$x], $keys);
    }
    https://wiki
    .php.net/rfc/arrowfunctionsv2

    View full-size slide

  6. PHP RFC: Deprecate PHP Short open
    tags
    (in voting - likely, 7.4)
    Deprecate and disable short_open_tag in PHP 7.4 and remove PHP's short
    open tags in PHP 8.0.
    // nope!
    https://wiki
    .php.net/rfc/deprecatephpshort_tags

    View full-size slide

  7. PHP RFC: JIT
    (accepted, 8.0)
    ...we can't further improve the performance of PHP unless we use JIT
    ...using JIT may open the door for PHP being more frequently used in
    other, non-Web, CPU-intensive scenarios
    ...JIT can provide us with the ability to develop built-in functions
    in PHP, instead of C...can open the door to faster innovation
    https://wiki
    .php.net/rfc/jit
    https://stitcher.io/blog/php-jit

    View full-size slide

  8. Array Destructuring
    $options = ['enabled' => true, 'compression' => 'gzip'];
    $enabled = $options['enabled'];
    $compression = $options['compression'];

    View full-size slide

  9. Array Destructuring
    $options = ['enabled' => true, 'compression' => 'gzip'];
    ['enabled' => $enabled, 'compression' => $compression] = $options;
    https://blog.frankdejonge.nl/array-destructuring-in-
    php/

    View full-size slide

  10. Latest Versions
    4 Laravel: 5.8.12
    4 Symfony: 4.4.4
    4 Drupal: 8.6.15
    4 PHPStorm: 2019.1.1
    4 VSCode: 1.33

    View full-size slide

  11. PHP Conferences - May
    Longhorn PHP Conference 2019
    May 2–4, Austin, TX
    https://www.longhornphp.com/
    php[tek]
    May 21–23, Atlanta, Georgia
    https://tek.phparch.com

    View full-size slide

  12. PHP Conferences - June
    Dutch PHP Conference 2019
    June 6–8, Amsterdam, The Netherlands
    https://www.phpconference.nl

    View full-size slide

  13. Nomad PHP
    US: Write less complex, more readable code
    presented by Jason McCreary
    May 16, 2019 at 6:00pm PDT
    UK: Git Legit
    presented by Pauline Vos
    May 16, 2019 at 11:00am PDT
    https://nomadphp.com/

    View full-size slide

  14. Open Call for Papers
    ScotlandPHP 2019
    CfP Deadline: April 22, 2019
    November 9–10, Edinburgh, Scotland
    https://scophp.co/2019
    PHP.Barcelona Conferenence 2019
    CfP Deadline: September 30th, 2019
    November 12–13, Barcelona, Spain
    https://php.barcelona

    View full-size slide

  15. Upcoming regional events
    All Things Open
    Oct 13-15, 2019
    http://allthingsopen.org

    View full-size slide

  16. Notable News & Articles
    4 Locating Dead Code
    4 How to get lines of code in PHP with PHPLoc via CLI or
    using Docker
    4 Laravel Up and Running Second Edition
    4 Using PHPStan to detect errors (problems) in your
    Magento project
    4 The right way to call assertion in PHPUnit

    View full-size slide

  17. Next Month @ TrianglePHP
    TDB
    Presented By YOU?!?!
    Thursday, May 16, 6pm @ Atlantic BT
    Need an Idea?
    4 Testing
    4 Security
    4 Performance
    4 Git

    View full-size slide

  18. Have a Job/Need a Job
    Who's hiring?
    Who's looking?
    What are you looking for?
    Book Swap

    View full-size slide

  19. Tonight @ TrianglePHP
    A Look Through Laravel Telescope
    Presented By - Michael Kimsal
    Thank you to Atlantic BT for hosting and refreshments!

    View full-size slide