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

Adobe releases Firebug-like developer tools to edit and extract PSDs

A big step in frontend-development: According to this presentation on Adobe Max 2014 Adobe has just released a very interesting

-45% (or even 50%) off on DesignWall today

Get 45% off on DesignWall.com with this coupon code: AMTHUNTER45 It’s also possible to get off 50% by taking part

js javascript

How JavaScript really works – An introduction into the JavaScript call stack by Philip Roberts (20min video)

offf-2014

Europeans: Get ready for OFFF conference / festival in Barcelona, May 2014

Designers and frontend guys, this is for you: If you live or simply are in western Europe in May 2014,

html6

Is this the first HTML6 specification?

  I just found this very interesting “project” including an active, but unpopular GitHub repo: http://html6spec.com/ https://github.com/OscarGodson/HTML6 Looks like these

How to show memory usage (Ubuntu)

Always very useful: A simple command to show memory usage (Ubuntu / linux distros). cat /proc/meminfo  

php

Is there a JSFiddle for PHP ? Yes !

It’s awesome how UNknown these little and extremely powerful tools are: There are some online tools that let you paste

Ghost

[FREE SERVER PROMO] Install GHOST for free on a free SSD server with this coupon

A little off-topic, but highly interesting: In April 2013 the former User Interface Head of WordPress (and WordPress expert) John

steam sale coupon voucher

-30% to -90% on Steam and Origin

Soft off-topic, but as most developers like to play from time to time, this might be your change to grab

ilovepreloaders – A tumblr collection of preloader animations

An excellent collection of preloaders (GIFs, Movies and real ready-to-copy&paste code) here in this wonderful blog: http://ilovepreloaders.tumblr.com/ This thing just

1/4

Categories

Search

How Snapchat wants to earn money (by establishing vertical videos)
shadow dom
A quick video introduction into Shadow-DOM, the game-changing DOM-subtree-technology
composer
How to install Composer on Windows 7 / 8 or Ubuntu
css4
Angelina Fabbro talks about “CSS4” in this excellent conference video
vagrant
A preinstalled Vagrant box with PHP HipHop / HHVM and Ubuntu 12.04 (Precise Pangolin)
the-php-login-project
How to install php-login-one-file on Ubuntu 12.04 LTS
phpstorm 7.0 php
How to install GitHub’s, NetBeans’s and Sublime2’s syntax highlighting code colours theme in PHPStorm 6/7
Migrating Wikipedia to HHVM (@Scale Conference 2014)
laracon-2014-eu-amsterdam
Laracon 2013 – Kapil Verma: Engineering Complex Applications with Laravel 4 (40min video)
goodbye-lamp-going-hhvm-nosql-nginx-php
[RePost] Goodbye LAMP: Going Nginx, NoSQL, HHVM (41min conference talk with Arne Blankerts)
mod-rewrite-ubuntu-14-04-lts
How to enable mod_rewrite in Ubuntu 12.04 LTS
“Fuck you. Pay Me.” How to deal with clients, the professional way. An excellent talk with Mike Monteiro.
8 awesome pure CSS spinner / loader
java vs php
Switching from Java to PHP. Seriously. A very interesting and pre-judice-free talk with Ph.D. Aris Zakinthinos
php
Is there a JSFiddle for PHP ? Yes !

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