Sefism early access is open for X and Instagram followers and university students.Get early access
Guide · Web DevelopmentFree

PHP: The Right Way

A community-maintained guide to modern PHP practice: Composer, PSR coding standards, PDO and SQL injection prevention, dependency injection, error handling, security, testing and deployment. It exists because so much PHP content online is outdated or unsafe, and it points you to current conventions quickly. It is an overview with links rather than a tutorial, best read once you know basic PHP syntax.

Format

Guide

Topic

Web Development

Provider

Josh Lockhart and contributors

Time needed

A few hours

Level

Intermediate

Access

Free

A community-maintained guide to modern PHP practice: Composer, PSR coding standards, PDO and SQL injection prevention, dependency injection, error handling, security, testing and deployment. It exists because so much PHP content online is outdated or unsafe, and it points you to current conventions quickly. It is an overview with links rather than a tutorial, best read once you know basic PHP syntax.

phpbackend

Ready to start?

Opens on Josh Lockhart and contributors in a new tab.

Open resource
Link broken or out of date?

Report a problem

With "PHP: The Right Way". Only Tauseef reads this.

Work with me

Stuck on something specific?

Writing only gets you so far. If you want an answer to your situation rather than the general case, book a session and we will work through it together. Sessions are free for approved Sefism members, and a few slots open each week.

Follow along

New writing, resources and project ideas land here first.