Category
PHP
42 posts tagged #PHP
- · 1 min read
Installing Laravel Forge CLI on macOS
Once installed, the Forge CLI gives you quick terminal access to your Laravel Forge servers and sites. Just make sure your $PATH is configured right — most issues I’ve run into came from that one step being skipped.

- · 1 min read
The PHP 8.5 Pipe Operator (|>): Useful, but Watch for These Gotchas
I have been eagerly waiting for the pipe operator ever since I first encountered it in the RFC proposals years back. Finally, with the release of PHP 8.5 yesterday, I had the chance to put the implementation into practice. Here are a few things worth noting.

- · 7 min read
Install Nginx & Multiple PHP Versions on macOS 26 Tahoe
Create a very robust, clean, and fast local multi-version PHP (8.2, 8.3, 8.4, 8.5) development environment on macOS 26 Tahoe.

- · 1 min read
PHP Operators App
PHP Operators is a reference guide for operators old and new in the PHP programming language.

- · 1 min read
Scaling Laravel (Repost)
Mateus Guimarães shares how they scaled a Laravel app to handle 30,000 requests/sec and 100M+ jobs, with clear, practical insights on database tuning, queue optimization, and architecture choices.

- · 3 min read
Link Share: Issue #5
I have quite a build-up of links to share. It's been a while, so some may be old news, but it's still worth posting. Grab a coffee and enjoy!

- · 5 min read
How to Configure PHP Memory and PHP-FPM for Scalable Performance on 8, 16, and 32+ GB Servers
Learn how to configure PHP memory limits and PHP-FPM settings for 8GB, 16GB, and 32GB servers to maximize concurrency, avoid swap usage, and scale your app efficiently without wasting memory.

- · 1 min read
Laravel and the Evolution of Open Source: Adapting to a Changing World
Open source isn’t 'free'—it’s accessible code that needs cash to evolve. Laravel proves it: as passwords fade and users demand phone-friendly logins like Google or Apple, features expire. Small teams must adapt to shifting expectations or drown in tech debt. 'Free' always has a cost.

- · 1 min read
How to Install Puppeteer/Chrome on a Laravel Forge Server with Unbuntu v24
This step-by-step guide covers verifying Node.js, installing Puppeteer globally, updating package repositories, and setting up required system dependencies for smooth headless Chrome execution.

- · 1 min read
Unlock PHP's Built-In REPL for Faster Debugging
Have you ever wished for a simpler way to test snippets of PHP code on the fly? If so, it's time to meet the built-in PHP REPL (Read-Eval-Print Loop).

- · 1 min read
How to Authenticate WordPress with Application Passwords for ChatGPT
Generate Base64-encoded credentials for Basic Authentication effortlessly in a single command using PHP's -r flag.

- · 2 min read
Laravel 11 Migrations: Best Practices for Stability and Scalability
Learn the top best practices for writing Laravel 11 migrations, including avoiding dynamic table names, separating schema from data migrations, and blocking down method rollbacks in production. Build resilient and maintainable database migrations for your application.

- · 1 min read
Securing Sensitive Data in Laravel: Leveraging PHP's #[SensitiveParameter] Attribute
Here's a tip for Laravel developers. In PHP 8.2, you can use the #[\SensitiveParameter] attribute to mark sensitive parameters in your Eloquent model methods.
![Securing Sensitive Data in Laravel: Leveraging PHP's #[SensitiveParameter] Attribute](https://kevdees.com/uploads/2024/07/q-mh2zk9ngc.jpg)
- · 1 min read
Optimizing Database Queries in Laravel: The Power of Eager Loading
Use Laravel eager loading to optimize database queries and avoid the N+1 query problem.

- · 2 min read
How to Add A WordPress Custom Login Logo
Do you want your WordPress site's logo applied to the login screen? Do you want the logo to link back to your homepage? Are you using a theme with or without full site editing?

- · 7 min read
Install Nginx & Multiple PHP Versions on macOS 15 Sequoia
Create a very robust, clean, and fast local multi-version PHP (8.0, 8.1, 8.2, 8.3, 8.4) development environment on macOS 15 Sequoia.

- · 1 min read
The M1 macOS Bash PHP Functions I Use
I have several bash functions that come in handy every day when working in PHP on my M1 Mac. Enjoy!

- · 1 min read
What Is New in PHP 8.2
December 8th, 2022, is a day away! Which means it is time to get excited about PHP 8.2.

- · 7 min read
Install Nginx & Multiple PHP Versions on macOS 13 Ventura
Create a very robust, clean, and fast local multi-version PHP (7.4, 8.0, 8.1) development environment on macOS Ventura with Intel or Apple M1 chipsets.


- · 1 min read
How To Clear PHP-FPM Logs Daily On macOS (M1 Chipset)
To clear your php-fpm logs daily set up a CRON job to run the following script.

- · 1 min read
How To Get Your WordPress Plugin's Admin Page URL
Create a helper function to get WordPress plugin admin page URLs with support for query parameters.

- · 7 min read
Install Nginx & Multiple PHP Versions on macOS 12 Monterey
Create a very robust, clean, and fast local multi-version PHP (7.4, 8.0, 8.1) development environment on macOS Monterey with Intel or Apple M1 chipsets.

- · 1 min read
Log PHP Data In WordPress To Your Browser's Console
Debugging PHP can be a pain in WordPress. Add this handy code snippet to your theme's functions.php file. The function will log PHP data to your browser's console.

- · 1 min read
How To Quickly Check / Find Your WordPress PHP Version
Not sure or need to know what version of PHP your WordPress website is using? Here is how to find your version quickly.

- · 1 min read
Set The Max Upload Size of Nginx on Laravel Homestead
To increase the max upload size on Laravel Homestead add the config option client_max_body_size.

- · 3 min read
How to Create a Custom API endpoint in WordPress
Create custom REST API endpoints in WordPress using rewrite rules, query variables, and custom templates.

- · 6 min read
macOS 11 Big Sur Nginx Setup: Multiple PHP Versions
Create a very robust, clean, and fast local multi-version PHP (7.4, 8.0, 8.1) development environment on macOS Big Sur with Intel or Apple M1 chipsets.

- · 1 min read
Configure Xdebug for PHPStorm: PHP's Built-In Server
Set up Xdebug debugging in PHPStorm with PHP's built-in server, including Xdebug 3 configuration.

- · 1 min read
Link Share: Issue #4
The last week has been full of exciting news. Here are a few links that caught my attention.

- · 1 min read
Link Share: Issue #3
The last few weeks have been full of interesting bits in the PHP and Apple space. Here are a few links that caught my attention.

- · 2 min read
How To Replace wp_mail Function In WordPress
To override the wp_mail() function using the filter pre_wp_mail is the best and modern way to do so. Using this method will future-proof your override.

- · 2 min read
How to Remove X-Frame-Options SAMEORIGIN from WordPress.
You can remove the HTTP header X-Frame-Options: SAMEORIGIN from WordPress by removing the send_frame_options_header function from the admin_init and login_init hooks.

- · 1 min read
PHP UUID without a Library
Generate UUID v4 identifiers in PHP using simple functions without requiring a library.

- · 1 min read
Link Share: Issue #2
Recommended podcasts covering business, development, design, and personal growth topics.

- · 2 min read
Run Times for PHP Function & Method Call Types
Performance benchmarks comparing different PHP function and method call types for optimization.

- · 3 min read
What are WordPress Drop-in Plugins?
Understanding WordPress drop-in plugins and how to use them to extend core functionality.

- · 2 min read
From Scratch PHP Project with the PHP Built-in Web Server
Set up a PHP project from scratch using the PHP built-in web server with a custom router.

- · 1 min read
Tools for Sending, Developing, and Testing PHP Application Email
Tools for email testing and sending including MailHog, Mailtrap, and email service providers for PHP.

- · 1 min read
What time is it?
Resources and snippets for working with timezones and dates in PHP using the Carbon library.

- · 2 min read
Raw PHP and MySQL Eager Loading
Implement eager loading in PHP with PDO to reduce database queries and improve performance.

- · 3 min read
Installing Xdebug for PHP7
Install Xdebug for PHP7 on Ubuntu and configure remote debugging with PhpStorm.
