PHPNews

OpenAPI Description using API key and secret

I've been working on a few OpenAPI descriptions of APIs lately, and really enjoying the benefits they bring. In particular the ability to import into Postman as a collection I think is a "killer feature" for APIs looking to get developers up and running quickly. The catch? I found that an API that needs an API key …

Continue reading »

Written by Lorna Jane - - Aggregated on Thursday August 15, 2019


The Laravel Synchronous Queue

Using queues for asynchronous processing is one of my favourite tricks for offloading hard work from web servers. When working with Laravel recently I was pleased to find that it supports beanstalkd out of the box. I've got opinions about frameworks with Opinions but I did find one thing I really liked in the way …

Continue reading »

Written by Lorna Jane - - Aggregated on Monday May 20, 2019


The First Thousand Blog Posts

This is the 1000th post on https://lornajane.net . People ask "how do you even do that?" and the short answer is "start in 2006", but the long answer isn't all that long. It all began because I couldn't hold down a job. After graduating, I had five jobs in five years, which was fabulous because I learned a lot. What …

Continue reading »

Written by Lorna Jane - - Aggregated on Tuesday April 30, 2019


Handy Beanstalkd Admin Console

I've been building apps with queues lately and mostly using beanstalkd as my queue because it is very simple, very fast and on my platform it is [apt install beanstalkd] -easy to install. I have also been using a handy web interface for beanstalkd which I like so much that I felt I ought to share! It's beanstalk-…

Continue reading »

Written by Lorna Jane - - Aggregated on Monday April 8, 2019


HTTP Toolbox

As Web Developers, we need to know how to work with HTTP from every angle. I gave a 2-hour tutorial at PHP UK that included some of my most trusted tools - but it was sold out and a bunch of people asked me if there was video (there wasn't, tutorials make little sense when videoed). Instead, I thought I'd try to set …

Continue reading »

Written by Lorna Jane - - Aggregated on Wednesday February 27, 2019


Using Tags in your OpenAPI Spec

Working with OpenAPI is bringing so many possibilities to the way that developers work with APIs, it's exciting! The spec is very comprehensive though and I've found myself answering questions on individual aspects of it recently, so I thought I'd capture one or two of those things here. Today: tags. Tags in …

Continue reading »

Written by Lorna Jane - - Aggregated on Tuesday February 26, 2019


Windows removed my grub menu

I know this will happen to me again at a bad moment so I'm putting it here on my blog and hoping I can find it in my future hour of need ... My work machine is a Windows PC, with dual boot to the Ubuntu partition that I actually use. Sometimes, when booting Windows, it "repairs" its disks and removes my grub menu, …

Continue reading »

Written by Lorna Jane - - Aggregated on Monday January 28, 2019


Test Web Requests with a Local RequestBin

I've been a long-time fan of RequestBin, but it's no longer active since it suffered so much bad traffic. It's never been too difficult to set up locally and when I tried to do that last week, I realised it has got even easier because it now has a docker-compose configuration. Requestbin, in case you're not …

Continue reading »

Written by Lorna Jane - - Aggregated on Friday December 14, 2018


Are you Creating, Curating or Consuming?

I've been thinking lately about my own interactions online, especially around content. There are three main ways that I work with content: creating, curating and consuming. Each has their own place but I'll start by outlining each one. Creating content is all about putting your own creations out for others to share. …

Continue reading »

Written by Lorna Jane - - Aggregated on Thursday December 6, 2018


Generating PHP library code from OpenAPI

I'm working with a bunch of OpenAPI specs now I am working for Nexmo and so far I'm loving working with API descriptions. OpenAPI is the next iteration of what used to be called "Swagger", a machine-readable way to describe your API and from that description create docs, code libraries, tests, and all sorts. Today's …

Continue reading »

Written by Lorna Jane - - Aggregated on Tuesday November 20, 2018


How NOT to Review a Pull Request

Examine the diff and comment on it, a line at a time That's not very constructive, Lorna. Do you have a bit more advice for us? Since you asked so nicely, yes I do! How to Review a Pull Request First, read the description. If there isn't one, close the pull request. You might need to go looking for an …

Continue reading »

Written by Lorna Jane - - Aggregated on Monday October 22, 2018


Managing Environment Variables in PHP

Now I work with more programming languages, I start to miss features from other languages when I come "home" to PHP. One that I hadn't seen in PHP before I saw it in other languages such as NodeJS (I think Ruby had the original implementation) was: a way to easily control setting your environment variables, particular…

Continue reading »

Written by Lorna Jane - - Aggregated on Monday October 15, 2018


Make a POST Request from PHP With Guzzle

I work extensively with APIs and a variety of serverside scripting languages, and best practice does change over time. Many of the most popular posts on this blog are 10 years old, because apparently I was interesting in 2008. Two in particular from around that time relate to making POST requests from PHP ... and …

Continue reading »

Written by Lorna Jane - - Aggregated on Tuesday September 18, 2018


Muffet: quick and easy link checking

In my not-so-new job I work on Nexmo's developer portal and that means a lot of documents, a lot of links, just a lot to keep track of! One thing I worry about is changing something and breaking links from somewhere else, so I wanted to be able to check for existing links, broken links, and to include internal links …

Continue reading »

Written by Lorna Jane - - Aggregated on Wednesday September 5, 2018


Support for Speakers

I've been a conference speaker for 10 years; I've given many talks, been to many events, organised a few events, and now have Opinions (TM) about conference speaking. This tweet showed up in my feed when someone tweeted at me to thank me for my support in their talks. Advice for conf speakers: When someone you …

Continue reading »

Written by Lorna Jane - - Aggregated on Sunday August 26, 2018


Vim settings for working with YAML

Having managed to avoid YAML until quite recently, my vim installation wasn't well set up at all for working with it. It needs more config settings than plugins, so I thought I'd write down what I found helpful. I'm using it quite a lot now I'm working with OAS (used to be Swagger) API definitions. Let's start with …

Continue reading »

Written by Lorna Jane - - Aggregated on Wednesday August 15, 2018


Using Config Files with Ngrok

I'm a huge fan of Ngrok , a tool to create a secure tunnel to your laptop. It is brilliant for testing, well, anything running locally really. Someone asked me about my setup recently and I'm using a couple of config files to keep things quick and consistent, so I thought I'd share here what I shared with them. You …

Continue reading »

Written by Lorna Jane - - Aggregated on Monday August 13, 2018


Kitchen Island Project

We built our first "big" project (well, since the play kitchen a few years ago) since moving to this house nearly a year ago: a new kitchen island! I used to blog a lot about the house and crafts and things, then I got better known for code things and got stagefright and stopped ... but I love this stuff and I'll …

Continue reading »

Written by Lorna Jane - - Aggregated on Saturday July 14, 2018