PHPNews

Home Assistant with Updated Z-Wave Device Files

Written by colinodell.com - Blog - Published on colinodell.com - Blog
Aggregated on Thursday October 12, 2017 - Permalink

Several months ago I blogged about compiling open-zwave for Home Assistant 0.45 on Docker . There were two reasons I did this: I had a Linear Z-Wave Garage Door opener - this feature was only available in the development branch of openzwave. I wanted up-to-date device configurations for newer Z-Wave devices. Unfortunately, the development branch was less stable than I liked and the …

Continue reading »


Extracting PEM and Private Key from PFX SSL Certificate

Written by colinodell.com - Blog - Published on colinodell.com - Blog
Aggregated on Friday September 15, 2017 - Permalink

PKCS#12 archives (commonly known as .pfx files) usually contain both a certificate and its private key, sometimes with password protection. In order to use these with a server like nginx or Apache, we need to extract these objects and convert them using openssl. (The commands below assume your file is named certificate.pfx .) Extracting the private key openssl pkcs12 -in certificate.p…

Continue reading »


Generating IDE Stubs for IonCube-Encoded Classes

Written by colinodell.com - Blog - Published on colinodell.com - Blog
Aggregated on Friday August 25, 2017 - Permalink

I recently inherited a legacy PHP project built on a closed-source framework where all the core classes were encrypted with IonCube. Working with closed-source code is hard enough, but not having any code hints in the IDE makes it even more challenging. Here's what the codebase looks like: What am I supposed to do with this?! Not knowing what classes and methods exist makes it extremely …

Continue reading »


The Journey to 1,000,000 Downloads

Written by colinodell.com - Blog - Published on colinodell.com - Blog
Aggregated on Saturday August 5, 2017 - Permalink

This morning I came into work to find my Packagist download counter had rolled over: league/commonmark now has over 1,000,000 downloads! To celebrate this milestone I thought I'd share the story of how this package came about, how it's grown, and how I couldn't have reached this milestone without the PHP community's help. Getting Started I was browsing Reddit on September 3rd, 2014 …

Continue reading »


Testing PHP 7.2 With Docker

Written by colinodell.com - Blog - Published on colinodell.com - Blog
Aggregated on Thursday July 6, 2017 - Permalink

PHP 7.2 is slated for release in November 2017 , but you don't have to wait until then to start testing your applications! We can easily use Docker to test against the latest pre-release versions of 7.2. PHP 7.2 Pre-Release Images PHP now has official pre-release Docker builds available. You should use those instead. I've created a PHP 7.2 pre-release image on Docker Hub: https://hub.d…

Continue reading »


en-marche.fr powered by league/commonmark

Written by colinodell.com - Blog - Published on colinodell.com - Blog
Aggregated on Tuesday May 9, 2017 - Permalink

So this is really cool: Emmanuel Macron (the next president of France) is using my open-source CommonMark library on his website ! The full list of PHP League libraries used on the website: league/commonmark league/flysystem league/glide

Continue reading »