Archive for the ‘oddball’ Category

ReactJS in PHP: Writing Compilers Is Easy and Fun!

Posted on: No Comments
I used to use an extension called XHP. It enables HTML-in-PHP syntax for generating front-end markup. I reached for it recently, and was surprised to find that it was no longer officially supported for modern PHP versions. So, I decided to implement a ...

How to Scan Fingerprints with Async PHP and React Native

Posted on: No Comments
We live in interesting times. A short while ago, a company called OfferZen announced a new, programmable credit card. It's been a long time since I was this excited to get my hands on a piece of tech. My mind has been brimming with ideas ever since. So...

Game Development with React and PHP: How Compatible Are They?

Posted on: No Comments
"I'd like to make a multiplayer, economy-based game. Something like Stardew Valley, but with none of the befriending aspects and a player-based economy." I started thinking about this the moment I decided to try and build a game using PHP and React. Th...

The Android Elephpant – Laravel on your Android Phone?

Posted on: No Comments
It was not that long ago that Christopher Pitt wrote an excellent article about writing and running PHP code on an iPad. After reading it, I thought to myself "It would be really cool to do the same on Android": being able to write and edit code on the...

Achieving Modular Architecture with Forwarding Decorators

Posted on: No Comments
As your web application becomes larger, you certainly start to think more about designing a flexible, modular architecture which is meant to allow for a high amount of extensibility. There are lots of ways to implement such architecture, and all of the...

How to Make Modern PHP More Modern? With Preprocessing!

Posted on: No Comments
Let's have a bit of fun. A while ago, I experimented with PHP macros, adding Python range syntax. Then, the talented SaraMG mentioned an RFC, and LordKabelo suggested instead adding C#-style getters and setters to PHP. Aware of how painfully slow it ca...

Home-Made Twitter and Gmail Notifications with PHP and Arduino

Posted on: No Comments
I am a little obsessed with Twitter. It's how I communicate with most of the developers I'm not fortunate to live in the same city as. I'm a little less obsessed with IoT projects, but then it's harder to find the time to work on them than it is to che...

The Delicious Evils of PHP

Posted on: No Comments
I want to look at two PHP functions: eval and exec. They're so often thrown under the sensible-developers-never-use-these bus that I sometimes wonder how many awesome applications we miss out on. Like every other function in the standard library, these...

How’d They Do It? PHPSnake: Detecting Keypresses

Posted on: No Comments
At a recent conference in Bulgaria, there was a hackathon for which Andrew Carter created a PHP console version of the popular "snake" game. I thought it was a really interesting concept, and since Andrew has a history of using PHP for weird things, I...