PHP Tips

Here are some useful tools and tips for working with and PHP.


This section provides tools and suggestions for working with PHP. Content is geared towards Mac users. If you are a PC user and would like to see more content focused on your workstation, please send us feedback using the chat balloon in the lower right corner of the screen, or write us in the community forum.

PHP Development

If you're just going to run a script at the command line on a Mac, you probably already have PHP installed, and that will be sufficient for your project. If you are planning on doing more, this section goes over some of the tools we use to build our code samples. You don't have to use these to try the samples, but you may find these recommendations helpful if you are setting up a PHP environment.


If you're doing something where you'll need a local server environment, we recommend MAMP. MAMP does not affect existing installations on your system, everything it uses is self-contained. You can learn more about MAMP here:


Many of our PHP projects use Composer as a dependency manager. Composer is not required - you can always manually manage dependencies on your own. Should you choose to work with Composer and MAMP, you may run into the issue of needing Composer to work with MAMP's version of PHP, not your Mac's version of PHP (yes it has its own PHP, everything in MAMP is separate). In which case, please use these instructions to install Composer: Install Composer to use MAMP's Using these instructions will result in a global install of Composer, allowing you to use it successfully with MAMP, or without MAMP should you choose not to work with MAMP.

Laravel 8

Laravel is a great framework for quickly getting projects up and running. We use Laravel 8 in a lot of tutorials, and you can read more about installing and working with Laravel 8 here: Laravel 8 Guide

Symfony HTTP Client

We use Symfony HTTP Client to make requests, so you'll often install it if you're following along with our projects. Find out about Symfony HTTP Client here: Symfony HTTP Client

Did this page help you?