PHP: Learn PHP, MySQL, Laravel, APIs & More — SitePoint
Featured
Advertise with usRecent
PHP Authorization with JWT (JSON Web Tokens)
By Miguel Ibarra Romero, Matthew Setter,
Need to authenticate requests to a server? Learn what JWTs are and how to use them instead of sessions to authenticate your users via API calls.
How to Install PHP on Windows
By Craig Buckler,
Looking for tips on how to install PHP on Windows? We walk step by step through how to install PHP 8 and Apache 2.4 on Windows 10 (64-bit).
Setting Up a Modern PHP Development Environment with Docker
By Tom Butler,
There are so many ways to set up your PHP development environment, but using Docker is the current best practice. Let's walk through how to do it properly.
Getting Started with Laravel Livewire
By Wern Ancheta,
Attention Laravel lovers! The Livewire framework for Laravel can help you build awesome, dynamic interfaces without writing a whole lot of JavaScript.
Form Validation with PHP
By Iain Tench, Matthew Setter,
Need to collect data through a web form? Learn the basics of how to set up PHP to collect user-submitted data that you can then store or send via email.
Writing a Flarum Extension: Building a Custom Field
By Bruno Skvorc,
Learn how to add a custom field to a Flarum user account. Users will be able to set this custom field from their profile page, and admins will be able to edit it too.
How to Ensure Flexible, Reusable PHP Code with Insphpect
By Tom Butler,
Learn about Insphpect, a tool that scans your PHP code for object-oriented programming techniques that hinder code reusability and flexibility.
Sending Emails in PHP with PHPMailer
By Narayan Prusty, Tonino Jankov,
Tonino and Narayan show how to use PHPMailer - a dead simple email sending library for PHP. Send email from your local machine or an SMTP relay easily!
HTTP/2: Background, Performance Benefits and Implementations
By Tonino Jankov,
Tonino Jankov covers the background, performance benefits and current implementations of the HTTP/2 protocol.
Improving Performance Perception: On-demand Image Resizing
By Bruno Skvorc,
Image Resizing: Bruno Škvorc shows how to modify a multi-image gallery blog to serve resized versions of images depending on the size of the viewport.
How to Boost Your Server Performance with Varnish
By Tonino Jankov,
Tonino discusses ways to tune server performance with Varnish Cache, covering how it works, and its features, setup, monitoring and administration.
Optimization Auditing: A Deep Dive into Chrome’s Dev Console
By Ahmed Bouchefra,
Ahmed Bouchefra offers an in-depth exploration of the features of the Chrome DevTools for measuring performance and debugging your web applications.
How to Use Varnish and Cloudflare for Maximum Caching
By Bruno Skvorc,
Bruno Škvorc shows how to implement Varnish as an additional caching layer, along with the Cloudflare CDN, to increase an app's GTMetrix score dramatically.
Server-side Optimization with Nginx and pm-static
By Tonino Jankov,
Tonino Jankov shows how to optimize on-the-fly thumbnail generation, reducing request time from 28 to 0.7 seconds with Nginx and pm-static.
Using Background Processing to Speed Up Page Load Times
By Zoran Antolovic,
Zoran Antolović explains what background processing is, why it's important, and how to set it up with Beanstalkd and Supervisor.
Improving Performance Perception with Pingdom and GTmetrix
By Tonino Jankov,
Tonino Jankov shows how to use Pingdom, YSlow and GTmetrix to improve performance on an image gallery blog running on Nginx.