Lessons for the ECV Digital school - PHP/MySQL
Before starting you need to setup your environment. (Mac OSX)
- Launch a terminal
- Install brew
- Update brew:
brew update
(If you already had brew, upgrade:brew upgrade
) - Install GIT:
brew install git
- you can add git-extras:
brew install git-extras
- you can add git-extras:
- Install sublime text 3 (Atom is also a good choice)
- Install package control for sublime text 3
- Thanks to the package control install those modules:
- SublimeLinter
- SublimeLinter-php
- Goto Documentation
- Link your sublime text in the command line here: https://www.sublimetext.com/docs/3/osx_command_line.html
- Add some completions:
brew install bash-completion
- Install php 5.6:
brew install php56
- Install phplint:
brew install phplint
- Install phpunit:
brew install phpunit
Check your installation: php -v
- Install mysql:
brew install mysql
- Install Sequel Pro
Start mysql: mysqld_safe
Access it from Sequel pro
Succeeding at the zend certification
For your own sanity, add this to your .bash_profile file
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
export PS1="\u@\h \W\[\033[32m\]\$(parse_git_branch)\[\033[00m\] $ "