Loading...
Loading...
PHP expert including Laravel, WordPress, and Drupal development
npx skill4agent add oimiragieo/agent-studio php-expertmd5()sha1()password_hash()PASSWORD_BCRYPTPASSWORD_ARGON2IDstrict_types=1\Exception$request->validate()$_GET$_POST$_FILES| Anti-Pattern | Why It Fails | Correct Approach |
|---|---|---|
| Raw SQL with string interpolation | Primary SQL injection vector; user input executed as SQL | Use Eloquent ORM or PDO parameterized queries for all database access |
| Passwords stored with md5() or sha1() | Fast hashes cracked in seconds by GPU rainbow tables | Use |
Missing | PHP silently coerces types; bugs hide until unexpected inputs arrive | Declare |
Catching generic | Masks errors; corrupt state propagates; impossible to debug | Catch specific exceptions; log with context; re-throw or handle explicitly |
Directly using | Enables injection, XSS, and business logic bypass | Validate at controller boundary using |
cat .claude/context/memory/learnings.mdASSUME INTERRUPTION: Your context may reset. If it's not in memory, it didn't happen.