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

Latest in PHP - February 2018 Edition

Latest in PHP - February 2018 Edition

All the juicy gossip happening in PHP, from the perspective of a lowly peon

Chris Deaton

February 16, 2018
Tweet

More Decks by Chris Deaton

Other Decks in Programming

Transcript

  1. PHP Releases VERSIONS v7.2.2 - Bug fixes v7.1.14 - Bug

    fixes v5.6.33 - Bug fixes Links: — http://php.net/ChangeLog-7.php — http://php.net/ChangeLog-5.php
  2. PHP RFCs — Pending Implementation — Flexible Heredoc and Nowdoc

    syntaxes — Shorthand null coalesce equal operator (no more redundancy) // bad $this->thing['inside']['more'] = $this->thing['inside']['more'] ?? 'falsy value'` // good $this->thing['inside']['more'] ??= 'falsy value' — E_DEPRECATED inconsistent cast names (integer) // use (int) (boolean) // use (bool) (double) // use (float) (real) // use (float) Links * https://wiki.php.net/rfc * https://twitter.com/phprfcbot * https://php-rfc-watch.beberlei.de/
  3. PHPUnit — PHPUnit 6.5 (Dec 2017) - Release Notes Links:

    — https://github.com/sebastianbergmann/phpunit/wiki
  4. Framework: Laravel — Laravel 5.6[.3] — Improved logging "stacks" via

    config/logging.php — Dynamic rate limiting - ability to set user-specific rate limits — Broadcast channel classes — API Controller Scaffolding (omits view-specific methods like create, edit) — Aliases for Blade components! - used like directives once defined Links: — https://github.com/laravel/framework/releases — https://laravel-news.com/category/news
  5. Framework: Symfony — The end of Symfony Standard - Article

    — New project by Fabian - Flex — Jan 29 Updates — 4.0.4 — 3.4.4 — 3.3.16 — 2.8.34 — 2.7.41 Links: — https://symfony.com/blog/category/releases
  6. CMS: Drupal — 8.4.4 Release — Contains only bug fixes,

    along with documentation and testing improvements. — Issues with testing in PHP 7.2 — count() parameter must be an array or an object that implements Countable now resolved — Remaining issues with incompatible method declarations, will be fixed by 8.5.0 (March 7th) — 8.5.0-beta1 — Drops support for PHP 5.5, 5.6 (March 7 8.5.0 release) — Drupal 8 will remain on Symfony 3.4 (LTS) until late 2021 Links: — https://www.drupal.org/project/drupal/releases
  7. CMS: Wordpress — Currently sitting at 60.1% market share among

    content management systems [source] — Billy Tipton (4.9, Nov 15, 2017) — Improved Customizer workflow (ability to schedule design changes) — Ability to share design preview links — Design locking to guard changes — Syntax highlighting, error checking (CSS, HTML) — WSOD warning - WP will warn you if you're about to save code in a theme or plugin that causes a fatal error, with an opportunity to "rollback" the breaking change — Widget updates (Gallery), Add Media to text widgets, no longer need add_filter('widget_text', 'do_shortcode') — 4.9.4 - Maintenance release - fixes severe bug in 4.9.3 — 5.0 - GUTENBERG — Completely changes how users add content to their websites, replacing the traditional text editor with a block-based one. — Currently a plugin, so you can add it today and experiment — Definitely not finished yet, so plan on seeing breaking changes
  8. Wordpress - Gutenberg Release Available Blocks COMMON BLOCKS FORMATTING BLOCKS

    LAYOUT BLOCKS WIDGETS Paragraph Pull quote Separator Latest posts Image Table More Categories Gallery Preformatted Button Shortcode Heading Code Text columns Quote Custom html List Custom text Cover Image Verse Video Audio
  9. Wordpress - Gutenberg Release The good — It's a step

    forward for the visual editor, which hasn't changed in years. Especially since the visual editor... sucks. It's also Mullenweg's answer to services like Wix and Squarespace — Gutenberg leverages HTML comments to store block information, allowing (or encouraging) self-documenting blocks — It's not obligatory -- you can disable Gutenberg and not break anything — Copy and paste is a pleasant experience, for those who bring content over from other sources. — You can create your own blocks
  10. Wordpress - Gutenberg Release The bad — No more composing

    in the browser (although, how many people do this anyway?) — The UI is still a bit clunky. Options are buried under additional clicks. — No shortcodes in paragraphs (currently). Shortcodes must be used in "shortcode blocks" — No images or other embeds in paragraphs. Images, as well as audio and video embeds, require their own block.
  11. Wordpress - Gutenberg Release Stay tuned... more info soon! —

    Gutenberg presentation in the works roughly April - May timeframe — Miles Elliott, Lauren Etheridge (NC State)
  12. PHP Conferences - February Laracon Online February 7, Online https://laracon.net/

    — Conference is over obviously, but all videos are available online for $25
  13. PHP Conferences - Later Laracon US July 25-26 http://laracon.us/ —

    $399 Coder Cruise August 30 - Sept 3 https://www.codercruise.com/ — If a group of 4 buys tickets, price is just $410 for cruise, conference, food — Are there 3 other people that want to go with me? :)
  14. Nomad PHP US 2FA, U2F, OOB, and Other Terrifying Security

    Acronyms By Eric Mann Europe Developing Applications for Performance By Leon Fayer https://nomadphp.com/
  15. Notable News & Articles ReactPHP: Why? Reducing Call Sites with

    Dependency Injection and Context Passing Xdebug 2.6 Run a Package from a Local Directory Testing Legacy PHP Scripts Makefile for Lazy Developers Does Factory Method Violate Open/Closed Principle
  16. Next Month @ TrianglePHP Event Sourcing Presented By Emily Stamey

    Thursday, March 15 6pm Atlantic BT https://www.meetup.com/trianglephp/events/zgpswmyxfbtb/
  17. Tonight @ TrianglePHP Design for success with React and Storybooks

    Presented By - Chris Saylor Thank you to Atlantic BT for hosting and refreshments!