Every two weeks I send out a newsletter containing lots of interesting stuff for the modern PHP developer. You can expect quick tips, links to interesting tutorials, opinions and packages. Want to learn the cool stuff? Then sign up now!

Scan a https-site for mixed content

Last week Bramus presented  a cool mixed content scanner on his blog.  Just for fun/as an excercise I made my own version.

The core scanner is mostly a copy of Bramus’ code but there are a few noticeable differences. My version:

  • can be installed via composer
  • uses the Symfony console component
  • uses Guzzle instead of naked curl
  • can write the scanresults as json to a file

You can install the scanner with this command:

composer global require spatie/mixed-content-scanner

You’ll find the instructions how to use it on github.

Freek Van der Herten is a partner and developer at Spatie, an Antwerp based company that specializes in creating web apps with Laravel. After hours he writes about modern PHP and Laravel on this blog. When not coding he’s probably rehearsing with his kraut rock band.