Get "PHP 8 in a Nutshell" (Soon PHP 8.5)
Amit Merchant
Amit Merchant Verified ($30/year for the domain)

A blog on PHP, JavaScript, and more

  • Articles
  • Snippets
  • Projects
  • Uses
  • Stats
  • About
  • Search
Laravel PHP JavaScript Git React

A Laravel macro for outputting possessive apostrophes correctly

March 26, 2023 — Macros in Laravel are gifts that keep on giving. They let you extend the functionality of Laravel in a way that you can use them anywhere in your application.

Read More Laravel

A tool to generate YouTube chapters in seconds

March 22, 2023 — If you’re a guy who enthusiastically creates YouTube videos but hates it when you have to manually enter the chapter timestamps in the YouTube editor, then this free tool by my friend Chris will definitely going to save your day.

Read More Miscellaneous

A handy File method to read JSON files in Laravel 10.x

March 22, 2023 — We now have a nice addition to the File facade in Laravel 10.x that lets you read JSON files easily. Essentially, it’s a wrapper around the json_decode() function. So, you can use it to read JSON files like so.

Read More Laravel

A practical use case of anonymous classes in PHP

March 20, 2023 — Anonymous classes in PHP let you create a class on the fly without having to define a new class. They are especially useful when you want to create a class that is only used once.

Read More PHP

How to stop a React component from rendering

March 18, 2023 — In React, when you want don’t want a component to render based on some condition, you might reach for short-circuiting to achieve the same.

Read More React

A little memoize function in PHP

March 17, 2023 — So, Caleb Porzio recently shared a little memoize function in PHP. What the function does is pretty straightforward.

Read More PHP

Add app screenshots to the install prompt of PWAs

March 13, 2023 — The install prompt is a great way to get your users to install your PWA (Progressive Web App). But it can elevate the user experience if you can add some nice screenshots of your app to the install prompt.

Read More PWA

Create and download text files using JavaScript

March 12, 2023 — There are a couple of projects of mine where I needed to create and download text/JSON files using JavaScript. For instance, in LinkSnatch, I needed a way to export the bookmarks as a JSON file or in my Notepad app, I needed a way to export the notes as a text file.

Read More JavaScript

The pipeline helper in Laravel

March 9, 2023 — The Pipeline facade is one little helper in Laravel that has been around for quite some time now but it’s only recently that it has got its place in the Laravel documentation.

Read More Laravel

Change favicon on switching browser tabs in JavaScript

March 7, 2023 — I was browsing through my Twitter feed and I saw something pretty subtle yet mind-blowing. One of the guys from the Astro team was showing off some of the new things they have done for their brand redesign.

Read More JavaScript
Previous 1 ... 23 24 25 ... 77 Next

Download my eBook

COMING SOON PHP 8.5

Newsletter

Subscribe

Follow me everywhere

My Tiny YouTube Channel ➔ YouTube Icon

Recently Published

  • The new, standards‑compliant URI/URL API in PHP 8.5 NEW

  • The new progress() function in CSS

  • Seven Real-World Examples of Using the Pipe Operator in PHP 8.5

  • Using the new session cache in Laravel

  • A free and open-source alternative to Spatie's Ray to debug PHP applications

Top Categories

Laravel PHP Miscellaneous JavaScript CSS VS Code Git React Tools ➔
Home About Contact Categories Links Guestbook
Previous page Next page
Amit Merchant
This is HAL 9000 from 2001: A Space Odyssey
About Contact Archive Tips Guestbook
One of my favorite flowers from Himalayas—Rhododendron
Copyright © 2025 — Amit Merchant