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

Latest In PHP - September 2017 Edition

Chris Deaton
September 28, 2017

Latest In PHP - September 2017 Edition

Chris Deaton

September 28, 2017
Tweet

More Decks by Chris Deaton

Other Decks in Programming

Transcript

  1. PHP Releases — 7.2.0 Release Candidate 2 (14 Sept) —

    Argon2 password-based key derivation function (winner of Password Hashing Competition in July 2015), evolution of bcrypt and scrypt algorithms $password = 'test'; $hash = password_hash($password, PASSWORD_ARGON2I); https://wiki.php.net/rfc/argon2passwordhash
  2. PHPUnit 6.3.1 — --list-tests argument lists available tests without executing

    them github.com/sebastianbergmann/phpunit/blob/6.3/ ChangeLog-6.3.md
  3. Framework: Laravel 5.5.[0-13] is here! — 5.5.13 includes a security

    fix introduced in 5.5.11 relating to "remember me" tokens in user providers
  4. Framework: Laravel — TrustedProxy now included - More Info Tells

    Laravel about proxies that can be trusted and how to map X- Forwarded-* headers from the request Useful when application is behind a proxy (for load balancing, HTTP cache, etc), and allows for correct URL generation, redirecting, session handling, authentication
  5. Framework: Laravel — Dynamic templates in Blade with View::first() Allows

    you to handle missing templates without manually checking to see if they exist first. return view()->first([ "pages/{$page->slug}", "pages/category-{$page->category->slug}", 'pages/default-template', ], $data);
  6. Framework: Laravel — Can now cast pivot values in Eloquent

    Models // race has many runners // runner has many races class RaceRunner extends Pivot { protected $casts = [ 'splits' => 'json', ]; ...
  7. Framework: Laravel — Whoops! — Flexible, stack-based error handling —

    Simple API for dealing with exceptions — Pretty rad error page — Ability to open referenced files directly in IDE $handler = new Whoops\Handler\PrettyPageHandler; $handler->setEditor('phpstorm');
  8. Framework: Laravel $songs = App\Song::all(); $songs->shuffle() ->filter->platinum ->filter(function ($song) {

    return $song->released_on >= Carbon::parse('-10 years'); }) ->pluck('title');
  9. Framework: Laravel $songs = App\Song::all(); $songs->shuffle() ->filter->platinum ->dump() ->filter(function ($song)

    { return $song->released_on >= Carbon::parse('-10 years'); }) ->dump() ->pluck('title');
  10. CMS: Wordpress — React is out due to Facebook's patent

    clause — Preact, VueJS being considered as possible alternatives — Gutenburg release being delayed pending a rewrite, Calypso will be rewritten using whatever library is chosen https://ma.tt/2017/09/on-react-and-wordpress/
  11. Facebook and React The Compromise — Facebook will relicense some

    of its open source projects, to include React, potentially to appease Wordpress and goad them back from the brink — No word yet from Automattic regarding this change https://code.facebook.com/posts/300798627056246/relicensing-react- jest-flow-and-immutable-js/
  12. CMS: Joomla — Version 3.8 released September 19th. — LDAP

    injection vulnerability found in v3.7.5 https://blog.ripstech.com/2017/joomla-takeover-in-20-seconds-with- ldap-injection-cve-2017-14596/
  13. IDE: PHPStorm 2017.2.3 — UML diagrams for classes — Support

    for Docker Compose 3.0 and 3.1 files (3.2, 3.3 soon) 2017.3 EAP — Support of nullability in refactoring (in tandem with PHP 7.1) — Editor-based REST client https://blog.jetbrains.com/phpstorm/
  14. IDE: Sublime Text 3.0 Released! — Refreshed UI theme (for

    those of you who don't use Material Theme) — New color schemes, and a ...new icon (not happy about it) — Significantly faster than ST2 — ST2 licenses carry over to ST3 if purchased after 2013 https://code.visualstudio.com/updates
  15. PHP Conferences - August Laracon EU 28-30, Amsterdam https://laracon.eu/2017/ —

    FREE! All talks available FREE on youtube - https://laravel-news.com/ laracon-eu-2017-videos
  16. PHP Conferences - September Pacific Northwest PHP Conference September 7–9,

    Seattle, Washington pnwphp.com Madison PHP Conference 2017 September 22–23, Madison, WI 2017.madisonphpconference.com
  17. Nomad PHP ** FREE MEETING ** Profiling PHP7 Applications By

    Paris Liakos US Zero to Hero: API Development By Matt Trask Europe Iterators and Generators By Eli White https://nomadphp.com
  18. Upcoming regional events Oct 7-8 - NCDevCon - http://ncdevcon.com Oct

    23-24 - All Things Open - http://allthingsopen.org Nov 15-16 - PHP World - http://world.phparch.com (I have a discount code!)
  19. Notable News & Articles — https://murze.be/2017/08/laravel-5-5-means-packages/ — https://www.amitmerchant.com/Laravel-Eager-Loading-Load-Vs-With/ — https://mattstauffer.co/blog/laravel-collections-higher-order-messaging-

    and-when-method-in-laravel-5-4 — https://framework.zend.com/blog/2017-08-17-php72-argon2-hash- password.html — https://www.sitepoint.com/twig-popular-stand-alone-php-template-engine/ — http://www.omniceps.com/latte-best-php-templating-engine/ — https://medium.com/@pawel.mikolajczuk/custom-caching-for-twig- f9a7303cebdd
  20. Hacktoberfest Starting Oct 1st — Month-long celebration of open source

    — Submit 4 PRs and get a free t-shirt — hacktoberfest.digitalocean.com
  21. Next Month @ TrianglePHP TITLE Tombstones, Vampires, and Discovering Dead

    Code by Chris Gmyr Thursday, October 19th 6pm Atlantic BT https://www.meetup.com/trianglephp/events/238029321/