Logo
  • PHP
    • HipHop / HHVM
    • Modern PHP
    • PHPStorm
    • LAMP
    • Laravel
    • Composer
    • PDO
  • JavaScript
    • node.js
    • AngularJS
  • CSS
    • SASS
    • “CSS4” (CSS level 4)
  • HTML
  • Git
  • LAMP
  • Vagrant
  • UI / UX
  • Architecture of …
  • Off-Topic
With ♥ from Berlin
March 18, 2014
Chris
Modern PHP, PHP, Refactoring, Security
Comments Off on [Link] Excellent PHP best practices, 2014 style

[Link] Excellent PHP best practices, 2014 style

PreviousNext
php

Excellent post on This interests me: A collection of useful best practices in modern PHP development, like

  1. Redirecting the user via header() after a form submit (to prevent resubmitting POST data)
  2. Getting rid of the outdated mysql_* functions
  3. PSR-styles, like not closing PHP tags
  4. Anti-XSS
  5. DRY coding
  6. separating application logic and output
  7. using prepared statements instead of old-school mySQL queries
  8. using try/catch instead of die() and exit()
  9. working with git
  10. caching
  11. design patterns
  12. utf-8
  13. learning to love and use frameworks
  14. security
  15. application testing
  16. documentation
  17. server-side validation
  18. error reporting

and much more … 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), but in general the information given is extremely useful. Bookmark!

This interests me – PHP best practices

best practicesPHPPSR
Share this

Perfect HTML email templates for perfect HTML emails (outlook!) with INK

The people behind FOUNDATION, the excellent responsive frontend framework, have just released a set of highly professional, perfectly compatible HTML

Interesting stats on SONY’s hacked passwords

In 2011 SONY’s Playstation network got hacked, 77 million accounts have been compromised, and more than 1.000.000 passwords – saved

Symfony devs: Creator of Symfony framework is hiring (Cologne, Germany)!

Probably one of the most interesting companies for a PHP developer is currently hiring Juniors and Seniors in Cologne, Germany.

laracon-2014-eu-amsterdam

Laracon 2013 – Kapil Verma: Engineering Complex Applications with Laravel 4 (40min video)

More videos of 2013’s and 2014’s Laracon events from US and EU on their Youtube channel.

css

How to center a div vertically and horizontally (modern methods, without fixed size!)

“How to center a div” (inside another div or inside the body itself) is one of the most discussed questions

the-php-login-project

How to install php-login-one-file on Ubuntu 12.04 LTS

This tutorial will show you how to install the one-file version of php-login.net‘s login script (see the full GitHub repository

twig

A 6min video introduction into Twig, the PHP templating engine

Cool video, excellently explained. Just 6 minutes, but features all the basics. Note that you can integrate Twig into your

All new features of WordPress 3.9 in this 2 minute video

Migrating Wikipedia to HHVM (@Scale Conference 2014)

Awesome topic, superfresh, directly from Scale Conference 2014. The title says everthing. Full quote from video’s description: As a top

angular js

Learn AngularJS in 20 (or 90) minutes with Dan Wahlin

Definitly two of the best and most up-to-date short-introductions into AngularJS: Dan Wahlin shows how to build a full little

1/4

Categories

Search

hiphop php
Vote for “Hack” for HipHop/HHMV support (future style PHP) in PHPStorm 8
PHPMyAdmin not found after installation ? Here’s a fix (Ubuntu 12.04) !
Material Design – How Google designed Android L (7min video)
How to setup a config-free WordPress, PHP and MySQL (for local development) in Windows 7 / 8 in under 3 minutes
js javascript
How JavaScript really works – An introduction into the JavaScript call stack by Philip Roberts (20min video)
php ide
Sitepoint asks for your favourite PHP IDE – take part!
php
How to install sqlite driver for PHP in Ubuntu & Debian
anti block adblock
Show ads to ad-blockering visitors – with PageFair.com
microsoft-windows-azure-cloud-hosting
Microsoft’s Azure platform gives away high money prizes for “testing out” their cloud services
css4
Angelina Fabbro talks about “CSS4” in this excellent conference video
hearthbleed-ssl-bug
A quick guideline on how to fix the Hearthbleed bug (and update OpenSSL) on Ubuntu
hack-php
Wow! Facebook devs have rewritten and fixed PHP, releasing it as new language called “Hack” today
laracon-2014-eu-amsterdam
Laracon 2013 – Kapil Verma: Engineering Complex Applications with Laravel 4 (40min video)
8 awesome pure CSS spinner / loader
php uk conference
PHP Opcache Explained by Julien Pauli (video from PHP UK Conference 2014)

Tags

apache bash centos composer conference coupon CSS debian fonts framework git GitHub hack HHVM HipHop HTML HTML5 IDE JavaScript JS LAMP laravel linux mod_rewrite MVC MySQL Nginx optimization PHP PHP 5.5 PHP 5.6 phpmyadmin PHPStorm security server SSD Ubuntu UI UX vagrant video virtual machine voucher VPS wordpress
Side-Project: Wordle-Solver:
www.wordle-helper.info

Pages

  • Privacy Policy