Useful CakePHP features for your projects
summary
Sets up a reproducible dev environment with Docker + PHP8 + Postgres via docker-compose and demonstrates building middleware: a simple profiler header, a honeypot middleware to block bot form posts (returns 403), and a throttle via muffin plugin that flips 200s to 429 under siege. Shows SQL injection pitfalls vs. prepared statements, a CSRF exploit HTML that works if CSRF is disabled, Xdebug profiling with cachegrind, and a cache invalidation behavior that deletes per-user keys when users or groups change.
AI-written summary · about
