Tutorials and Talks
How to Make a Live Chat Script in PHP
In this article, we’ll discuss how you can make a live chat script in PHP. Although there are different ways you could achieve this, we’ll use a socket-based implementation.
Never Forget Symfony Config Options Again
Have you switched your Symfony configs from stringy YAML to typed PHP? If not, do it now. Here is at least 10 reasons why. Only then you’ll start to notice a code smell that was there in every YAML configs. Just now, the code smell is too smelly to ignore.
Fibers in PHP: A New Opportunity For Async PHP?
It looks like PHP will get fibers soon with PHP 8.1! That’s awesome! Or is it?
How Laravel Uses `league/flysystem` Package to Create Robust Filesystem
Flysystem is a file storage library for PHP. It provides one interface to interact with many types of filesystems.
Learn How To Use Tailwind’s JIT compiler with Laravel Mix
Overnight, Adam Wathan and the Tailwind Labs team released a new JIT compiler that generates your styles on-demand as you author your templates instead of generating everything in advance at initial build time.
Using a HasOne Over a HasMany Relationship in Laravel
When you are working with a one-to-many relationship, it is sometimes the case that a particular instance on the “many” side of the relationship is flagged as unique and important to your system in some way.
Advanced Custom Fields: A Guide to Custom Fields and ACF Blocks
For the unaware, ACF is a plugin that gives you more control of your content. It uses custom post meta to enrich your content with structured data. It also lets you build and configure the data fields in meta boxes when you update posts, pages, custom post types, and much more.
OpenConnect on Mac
One of my clients has recently moved to AnyConnect VPN and I’ve been having routing problems with the official Mac client. As my colleagues on Linux on the project have not had these issues, I investigated and installed the OpenConnect client. These are my notes after scouring the Internet to set it up how I want it.
How to Increase the Max Upload Size in WordPress
A low WordPress upload size limit stops you from uploading large files, plugins, and themes. If you’re building a media-heavy website, that can be a considerable obstacle. It’s necessary to increase the max upload size in WordPress or your server (or both) in such cases.
How to Implement a PHP Long Running Process that Uses Linux Systemd to Monitor the Process State
Systemd is a set of software blocks that makes part of current Linux distributions to help building tools that perform tasks that can take a long time to finish, like for instance sending newsletters to many subscribers. Read this article to learn how you can take advantage of the systemd software to simplify the implementation of your own long running PHP processes.
Bootstrap eCommerce Recently Viewed Products List Carousel
In an eCommerce website, showcasing the products is an integral part of positioning the shop to the customers. Carousel is a revolving UI component that helps to showcase varying number of items. If used in a right way, it is one of the best aspect that will improve the UI/UX.
Strings are useful for holding data that can be represented in text form. Some of the most-used operations on strings are to check their length, to build and concatenate them using the + and += string operators, checking for the existence or location of substrings with the indexOf() method, or extracting substrings with the substring() method.
Check Duplicate Values in Foreach PHP
To Check Duplicate Values in Foreach PHP, we use an example where we find duplicate values in an array without using PHP inbuilt function, and then on the second method, we find duplicate values in an associative array with the help of array_search() function.