PHPnews.io

Overview for 'lornajane'

Test Web Requests with a Local RequestBin

Written by Lorna Jane / Original link on Dec. 14, 2018

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 yo…


Are you Creating, Curating or Consuming?

Written by Lorna Jane / Original link on Dec. 6, 2018

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 …


Generating PHP library code from OpenAPI

Written by Lorna Jane / Original link on Nov. 20, 2018

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 …


How NOT to Review a Pull Request

Written by Lorna Jane / Original link on Oct. 22, 2018

Examine the diff and comment on it, a line at a timeThat'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 RequestFirst, read the description. If there isn't one, close the pull request. You might need to go looking for …


Managing Environment Variables in PHP

Written by Lorna Jane / Original link on Oct. 15, 2018

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 …


Make a POST Request from PHP With Guzzle

Written by Lorna Jane / Original link on Sep. 18, 2018

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 …