Hello 👋 I'm Dan.

I write PHP, Go, and JavaScript. I also care about web performance.

Made some small improvements to my Micropub endpoint: removed the coupling to Hugo and made it easier to add a new provider.

Something I should’ve done earlier but had slipped my mind.

My Micropub Endpoint: Out Now

When I was redoing my blog many moons ago I decided I didn’t want to use a CMS to write posts in. I wanted to have the ability to use the Micro.blog iOS app or Quill to write my posts in. Doing this meant using a Micropub API endpoint to be my open standard API of choice.

I had two choices: either use an existing API endpoint library or make my own.

Being a programmer I decided on the later. Enter: my Micropub endpoint.

The Details

Built on PHP 7.1 and using Laravel’s Lumen micro-framework the API has only a handful of routes (all of which require you to be authenticated).

Currently it supports the following:

It’s designed to work with Hugo however it’s a piece of cake to add a different provider that works for your needs.

Authentication is handled through IndieAuth and by default my endpoint uses IndieAuth.com to authenticate with. In the configuration of the endpoint you can customise that URL so if you have your own server for IndieAuth (or wish to use a different service) you can do just that.

More features like updating and deleting posts will be added but they’re not a big priority to me at this stage.

Download

Get the Micropub endpoint here

Try it out and post any issues in the GitHub issue tracker, or submit a PR!

At work we’re migrating a huge application from Silex 2 to Symfony 3.4. There’s a bit to get your head around at first however once you understand it Symfony is really nice and pleasant to use. Thoroughly enjoying my pure Symfony experience thus far.

Made my vote count in the Victorian State Election. Most polling places close at 18:00, make sure you get there in time!

Been playing too fast and loose with my Micropub API endpoint recently and broken a couple of things on my blog here and there. Slowly adding more tests to make sure I don’t break things, then I hope to finally open source it.

As much as I’d love to have USB-C in an iPhone, I’m inclined to agree with John Gruber and his thoughts about Lightning vs USB-C. I have USB-C chargers around the house to charge my laptops and my girlfriend’s Samsung (shudder) phone, it’d be super convenient if I could add iPhone to the list of devices that can get power from the one cable.

Day 1 of my V for Vendetta/Watchmen/The Punisher sleeve down. Absolutely loving the progress and look so far, excited to have it finished, hopefully by early next year.

Absolutely wonderful day at Lerderderg Gorge State Park. We did a 13.5 KM walk – clambered up and down some very steep hills, saw a snake and a goat, and had to hunt for hidden paths along the way. Totally worth it, we’re exhausted.