A class should have only one job.
Software entities (Classes, modules, functions) should be open for extension, not modification.
<?php | |
/** | |
* This class acts as an example on where to position a DocBlock. | |
* | |
* A blank line must be place after each paragraph. A title and a description | |
* can be add. Multiple paragraph descriptions can be used. | |
* | |
* @see https://github.com/php-fig/fig-standards/blob/master/proposed/phpdoc.md | |
* @see http://docs.phpdoc.org/guides/docblocks.html#list-of-tags |
sudo add-apt-repository -y ppa:nginx/development
- repository for latest nginxsudo add-apt-repository -y ppa:ondrej/php
- repository for latest phpsudo add-apt-repository -y ppa:chris-lea/redis-server
- for latest redissudo apt-get update
to update the server packagessudo apt-get install -y git tmux vim curl wget zip unzip htop
- basic commands and softwares<?php | |
# Source: http://www.jonasjohn.de/snippets/php/headers.htm | |
// Use this header instruction to fix 404 headers | |
// produced by url rewriting... | |
header('HTTP/1.1 200 OK'); | |
// Page was not found: | |
header('HTTP/1.1 404 Not Found'); | |
C:\cygwin64\bin\mintty.exe /usr/bin/zsh -
. Make it the defaut shell.start C:\cygwin64\bin\mintty.exe /usr/bin/zsh -
echo '-- Shutdown the laravel app' | |
php artisan down | |
echo '-- Pulling from git' | |
git pull | |
echo '-- Storage permissions' | |
#find storage -type f -exec chmod 664 {} \; | |
#find storage -type d -exec chmod 775 {} \; |
Open a new terminal and install Composer:
curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer
Once that has finished installing and moved, install the PHP-CS-Fixer Composer package globally: