All articles

October 29, 2026 · 1 min read · 65 views

Keeping a PHP codebase DRY without a framework

PHPArchitecture

Start with the database

Wrap PDO in three or four functions and every query becomes one line.

Then uploads

One function validates, renames and stores an image. One function deletes it safely.
  • Fewer places for bugs to hide
  • Easier code reviews
  • Faster onboarding

Keep reading

W

Oct 29, 2026 · 1 min read

Why Post/Redirect/Get still matters

Refreshing a page after a form submission should never create a duplicate record. Here is the pattern that prevents it.

PHPWeb Security
WhatsApp