Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Laravel News:
Easily Integrate HTTP/2 Server Push with a Laravel Middleware
Aug 12, 2016 @ 14:48:10

The Laravel News site has a recent post showing you how to integrate HTTP2 support into your Laravel-based application using some simple middleware.

As we all know technology changes fast and if you don’t stop and look around once in awhile, you could miss it. HTTP/2 is one area of our tech stack that I haven’t been keeping up with an honestly knew nothing about it until Laracon where Ben Ramsey gave a talk on the subject.

You can watch his talk here and his slide deck is available from his site to browse through. What amazed me is how easy it seemed to implement by utilizing server push or preload.

They describe this "Link" header process could work if done manually but points out that doing that manually for every asset is very time consuming. To help out they point out two packages that can help make it a bit more automatic. The post briefly shows their use (code example) basing the asset list on the contents of your Elixir configuration.

tagged: laravel middleware http2 push link header package

Link: https://laravel-news.com/2016/08/http2-server-push-middleware/

PHP Roundtable:
047: All About HTTP/2
Jun 21, 2016 @ 14:19:06

The PHP Roundtable podcast, hosted by PHP community member Sammy K Powers, has posted their latest episode: Episode #47: All About HTTP/2. This time Sammy is joined by guests Davey Shafik, Ben Ramsey and Junade Ali.

HTTP/1.1 will eventually be replaced by HTTP/2 so it's important for us PHP nerds to know all about the latest version of the HTTP protocol that's already running some of the internet's biggest websites. We discuss the things we need to know to start using HTTP/2 in our next PHP app.

We also go briefly off topic to discuss the status of PHP 7.1 and the ramsey/uuid lib.

You can catch this latest episode in a few different ways: either though either the in-page audio or video players or directly over on YouTube. If you enjoy the show, be sure to subscribe to their feed and follow them on Twitter for announcements when the latest episodes are released.

tagged: phproundtable podcast video http2 daveyshafik benramsey junadeali ep47

Link: https://www.phproundtable.com/episode/all-about-http2

Laravel News:
How To: Optimizing SSL on Laravel Forge
Jan 14, 2016 @ 15:27:59

On the Laravel News site there's a post showing you how to optimize your SSL support on Forge, the Laravel-related tool that makes creating and configuring servers simpler. The post focuses on a recently added feature to Forge, support for Let's Encrypt certificates, and other SSL optimizations.

Laravel Forge was recently to allow one-click installations of Let’s Encrypt certificates. It is now easier than ever to have your own SSL!

Let’s take a few extra minutes to optimize your server and help it perform faster and be more secure. In this tutorial we will look at using SSL session caching, HTTP Strict Transport Security (HSTS), and Hypertext Transfer Protocol 2 (HTTP/2).

The example they give are more Force-centric but the SSL changes and optimizations themselves could be used on any server running Nginx. They talk about:

  • the SSL Log-Jam Fix
  • SSL Optimizations (optimized cypher suite, OCSP stapling)
  • HTTP Strict Transport Security (HSTS)
  • HTTP/2

The post ends with a screenshot of how to test the new configuration and how to restart the web service to put it all into effect. There's also a link to an SSL checker that can help you verify things are set up correctly.

tagged: ssl forge laravel tutorial session cache hsts http2 nginx configuration

Link: https://laravel-news.com/2016/01/optimizing-ssl-laravel-forge/

Symfony Finland:
Serving PHP on HTTP/2 with H2O and HHVM (Symfony, WordPress, Drupal...)
Jun 23, 2015 @ 16:48:27

On the Symfony Finland blog there's a new post showing you how to serve PHP over HTTP/2 with HHVM and H2O. H2O describes itself as a "new generation HTTP server providing quicker response to users when compared to older generation of web servers".

This article is not about improvements made in HTTP/2 - as there are plenty of locations for you to read up on the internals. It's a hands on article to get started using HTTP/2 today with popular tools such as Symfony, WordPress and Drupal with the HHVM PHP runtime from Facebook. You can just as well use PHP-FPM.

They start with a bit of a look at the current state of PHP and HTTP/2 on the various major web server types. H2O, while younger, natively supports HTTP/2, he does offer the caveat that "waiting won't kill you". Despite this, they go on to show you how to set up the PHP+H2O+HHVM combination complete with configuration examples and what to look for in the logs to ensure HTTP/2 functionality.

tagged: serve http2 h2o hhvm tutorial webserver configuration

Link: https://www.symfony.fi/entry/serving-php-on-http-2-with-h2o-and-hhvm-symfony-wordpress-drupal

That Podcast:
Episode 16: The one with HTTP/2
Mar 30, 2015 @ 14:05:49

That Podcast has posted their latest episode today, Episode #16 - The One with HTTP/2.

Beau and Dave catch up on their latest happenings and talk about HTTP/2, what makes it different and how we understand it could change the way we do things.

Other topics mentioned in this new episode include:

You can listen to this latest episode either through the in-page audio player or by downloading the mp3. Be sure you subscribe to their feed if you enjoy the show too!

tagged: thatpodcast ep16 http2 podcast beausimensen davemarshall

Link: http://thatpodcast.io/episodes/episode-16-the-one-with-http-2/

PHPClasses.org:
Lately in PHP, Episode 23 - Will it ever Matter if PHP Sucks?
May 08, 2012 @ 15:37:26

On the PHPClasses.org site today they've posted their latest episode of the "Lately in PHP" Podcast, "Will it ever Matter if PHP Sucks?"

Once in a while we see fans of other languages writing long articles on why PHP sucks and you should not use it. But will that ever matter? That is one of the main topics discussed by Manuel Lemos and Ernani Joppert in the episode 23 of the Lately in PHP podcast, for the first time also recorded in video using Google Hangouts On Air.

They also talk about some of the recent proposals for PHP itself and the buzz surrounding the "HTTP 2.0" protocol that's been proposed. You can listen to this latest episode either via the in-page player, by downloading the mp3 or subscribing to their feed. Since they used the Google Hangouts to record the session, you can also watch the video.

tagged: latelyinphp podcast phpclasses language opinion http2 rfc

Link:


Trending Topics: