Setup

composer install

Development

Start a development server from the current directory:

php -S localhost:8080

Execute code in the terminal

php index.php

PHP

You can't use variables in single quote strings.

You can use string interpolation.

"Hi {$name}!"

Ecosystem

  • composer

Install it in your current directory: curl -sS https://getcomposer.org/installer | php.

Add dependencies to your project: composer require my-dependency. Install dependencies of your project: composer install.

  • MAMP