Ad

Blog

Using symfony front-controller to switch between applications

@machinateur Oct 10, 2024 7 min read

Have you ever been in a situation, where a completely separate test environment was impractical to integrate? I recently faced an interesting use-case for the symfony front-controller, which I thought was worth sharing (the technical...

How to sanitize full HTML 5 documents with HTMLPurifier

@machinateur Mar 01, 2024 15 min read

When it comes to sanitization of HTML content, HTMLPurifier (ezyang/htmlpurifier) is a popular library. Sanitization is commonly used in content management systems and really all kinds of software that deals with web content.

N...

Talking to Arduino from PHP using phpduino

@machinateur Jan 20, 2024 5 min read

This is what phpduino does.

// First register the protocol and stream wrapper, ... \Machinateur\Arduino\streamWrapper::register(); // ... then use the protocol in a stream function... $fd = \fopen('arduino://', 'r+b'); // ... and...