Install Local Server Environment :
To keep it simple, I use MAMP, a one-click-solution to set up my personal developing environment.
I download the current version from https://www.mamp.info/en/ including the php-version, if other needed then included in the MAMP app. For creating one single development environment the free version is great. For multiple projects the PRO version is reasonable.
I run the installer of MAMP.pkg
Systemwide PHP Version
To make sure I also operate on the same php version like MAMP when running commands from the terminal I update OS X’x PHP version to MAMP’s Version like this:
add to .profile:
Run source command to make this changed active:
Check if it’s working with:
Enable MySQL Commands to run From Terminal
To enable MySQL commands to be run without entering the whole path each time when using on the command line I add as above for the PHP-Version to .profile:
I add to .profile:
I ru the source command to make this changed active:
And I check if it’s really working by typing in a MySQL command such as:
Subversion to Check out Code From Repositories
Subversion is already a part of OS X. Maybe not the newest version, but usable.
So no further steps to be taken.
Check out the Code:
To check out the code I will be working with I use svn checkout command in the directory to which I want the code to be downloaded to:
svn co https://path-to-the-repository/trunk trunk
svn: runs the subversion application
co: runs a checkout
https://path-to-the-repository/trunk: is the remote path where subversion will download the code from
trunk: tells subversion to download the code to a to be created folder called “trunk”
Install Composer Dependencies Locally
Composer is a tool for dependency management in PHP. It allows you to declare the libraries your project depends on and it will manage (install/update) them for you.
The above link tells in detail how to install.
PhpStorm is an integrated development environment that helps with a lot of little details. It costs quite some, but there is a 30 day free trial that showed my the worth of this purchase.
The link below hold all infos for setting up PhpStorm:
Xdebug is a PHP extension which provides debugging and profiling capabilities.
and with MAMP: