Articles

Showing 5 posts
May 7th, 2025

Calculating Reading Time of Content in PHP

Here's a quick and easy way to calculate the read time of any content in PHP, like the article you're reading now!

Author
Alex Garrett-Smith
PHP
February 28th, 2025

Quickly and Efficiently Counting CSV Rows with PHP

Here's a fast, easy way to count the number of rows in a CSV with PHP, even if it has millions of rows.

Author
Alex Garrett-Smith
PHP
September 19th, 2024

How to Check Your PHP Version (3 Ways)

There are several ways to check which version of PHP you're running. Let's go through each one.

Author
Alex Garrett-Smith
Server
PHP
June 19th, 2024

Only Show Hours and Minutes using Carbon toTimeString

The toTimeString method in Carbon allows you to set a precision. Let's look at the options.

Author
Alex Garrett-Smith
PHP
January 11th, 2023

Change Carbon's now() value for testing

If you're working with Carbon dates, chances are your tests are going to fail at some point unless you're sure of the value returned from Carbon's now() function.

Author
Alex Garrett-Smith
Laravel
PHP

Tags