Overview for 'mwop'
Written by Matthew Weier o'Phinney
/ Original link
on Apr. 26, 2022
I've been dabbling in CSS my entire career. In the early days, it was relatively simple, as our browsers were fairly limited. But over the years, CSS has become more and more capable, allowing styles to target only tags with specific tag attributes, only apply at specific screen sizes, and even per…
Written by Matthew Weier o'Phinney
/ Original link
on Feb. 23, 2022
I have some content that I store in S3-compatible object storage, and wanted to be able to (a) push to that storage, and (b) serve items from that storage. Easey-peasey: use the Flysystem AWS S3 adapter, point it to my storage, and be done! Except for one monkey wrench: I'm using OpenSwoole. The Pr…
Written by Matthew Weier o'Phinney
/ Original link
on Jan. 25, 2022
Sites I build often utilize cronjobs to periodically pull in data from other sources. For example, I might want to poll an API once a day, or scrape content from another website once a month. Cronjobs are a perfect fit for this. However, cron has a few problems: If the job is writing information in…
Written by Matthew Weier o'Phinney
/ Original link
on Jan. 25, 2022
I was first introduced to the concept of webhooks via a 2009 blog post by John Herren, a former colleague at Zend. At the time, they were in their infancy; today, they're ubiquituous, as they provide a mechanism for a service to notify interested parties of events. This saves traffic; instead of co…
Written by Matthew Weier o'Phinney
/ Original link
on Dec. 6, 2021
I've been using Caddy as a front-end reverse proxy for several years now, on the advice of Marco Pivetta. Somewhere along the line version 2 was released, and I updated at some point, but evidently didn't quite understand some of its configuration options, particularly around HSTS support and provi…
Written by Matthew Weier o'Phinney
/ Original link
on Mar. 31, 2021
Today in the Laminas Slack, somebody asked if there was an equivalent to Laravel's Tinker REPL. The short answer is "no", but I had a suggestion for them. PHP REPL The first part of my answer to the question was suggesting they use the PHP REPL. PHP has had a REPL since version 5.1.0, which you can…