in Web and Tech

Getting into PHP

I used to know a fair bit of PHP and could write simple WordPress plugins or basic pages. With the recent interest in Shortcuts, I started thinking it would be easier to do some of the little things I wanted to do with PHP on the web instead of using Shortcuts on my iPhone.

My first little project was a TTC Flexity Streetcar Delivery Tracker. The TTC is getting new streetcars from Bombardier on a regular basis, and myself and other transit users and fans like to track the arrival of new cars.

The TTC API, provided by NextBus provides some clues that a streetcar has arrived and is being tested or has entered service. Using the API, I’m grabbing data about an array of vehicles and then showing them in a table. That wasn’t too difficult to do for desktop, but getting it to look good on mobile was a bit tougher.

A few tutorials later, I got the media queries figured out and I’m showing the table rows as cards on my phone.

I’m really pleased with how this turned out and I’m already thinking ahead to my next little project. While there are a bunch of good apps like the Transit App that will tell you when your bus is coming, they are a little too complicated for Mac to use.

I’m going to make here a special webpage that will show her the next two buses home from Variety Village. It’s just the information she needs in a simple presentation.