Excellent post on This interests me: A collection of useful best practices in modern PHP development, like
This post will lift your development level dramatically. There’s a lot of stuff that could be added like writing code that perfectly fits the PSR-guidelines, or Composer, or Vagrant etc, but in general the information given is extremely useful and if you start practicing these definitely will help when you work in team and improve coding standers understanding
- Redirecting the user via header() after a form submit (to prevent resubmitting POST data)
- Getting rid of the outdated mysql_* functions
- PSR-styles, like not closing PHP tags
- Anti-XSS
- DRY coding
- separating application logic and output
- using prepared statements instead of old-school mySQL queries
- using try/catch instead of die() and exit()
- working with git
- caching
- design patterns
- utf-8
- learning to love and use frameworks
- security
- application testing
- documentation
- server-side validation
- error reporting