The Parallel extension for PHP is a modern extension that enables true parallelism by allowing PHP code to execute multiple tasks concurrently in separate threads. Unlike traditional asynchronous programming, which relies on non-blocking I/O, the Parallel extension uses Runtime objects to create and manage threads, providing a straightforward, object-oriented approach to multitasking. First of all, […]
ntfy is a simple and open-source notification service that allows you to send push notifications to various devices and platforms, including smartphones, tablets, and desktops. It is designed to be lightweight and easy to use, making it a popular choice for developers and users who need a straightforward way to receive alerts or updates from […]
Let’s get straight into it. I needed a LAMP stack and to install and configure PHP plugins for something I was working on, I think it came out pretty well, not to be used in production but as a small test server it works great for me. docker-compose.yml As you can see, main services are […]
Wanting to add some functionality to query your application for a status, or start an action? maybe you want to write a whole web ui/control panel separately from the application. Well, let’s take a look at a very basic approach of how we can do this. First of all, your project needs to be .NET […]
A Discord webhook is a tool that allows you to automate sending messages and notifications to a Discord channel directly from your application or website. It provides a unique URL that you can use to post content without requiring a Discord bot. Webhooks are commonly used to send updates, alerts, or integrate with other services […]
You don’t need expansive libraries for simple operations such as disk caching if you’re only using the basic features of just saving, retrieving and deleting data from a file. See below for a reusable PHP trait that can be incorporated easily into your existing code. It will hash the cache key so that each file […]
Node.js is a powerful JavaScript runtime that allows you to build server-side applications with ease. In this tutorial, we’ll walk through the process of creating a basic Node.js application and setting up a simple web server that can serve content to your users. By the end of this guide, you’ll have a working web server […]
Recently for work I’ve had to manage a large number of Office 365 users and create a new ‘intake’ of accounts, which is done yearly. Since the last time I was doing it, it seems that the MSGraph module has been updated and preferred over the MSOnline method. I’ve collected and saved a few useful […]
This is one thing I don’t see a lot of, maybe I’m looking at the wrong code or projects? But PHP traits have been around for years. Let’s have a look at them. Traits are a mechanism for code reuse in single inheritance languages like PHP. They allow you to group methods and properties that […]
Let’s take a look at what new features are available to us, that we can use right now in PHP8, with a few examples.