- https://github.com/php-fig/http-message PSR-7
- https://github.com/php-fig/container PSR-11
- https://github.com/http-interop/http-middleware PSR-15
- https://github.com/http-interop/http-factory PSR-17
- https://github.com/http-interop/http-factory-diactoros Diactoros implementation of PSR-17
- https://github.com/http-interop/response-sender
- https://github.com/middlewares/utils
- https://github.com/nikic/FastRoute
- https://twig.sensiolabs.org/
Prior to arriving at the event, clone this repository so that you will not have to download it at the venue. Also, make sure to run composer install
after you have finished cloning. If you are able to do this, you are more likely to have a successful tutorial.
Keep in mind that there might be last minute changes to the repository. Check the night before the event to see if you need to pull any recent changes.
To be able to do the exercises in this tutorial, you need to have the following things set-up on your machine:
- Composer
- PHP 7.0 (or later)
It is expected that you know how to edit PHP files.
If you have questions related to any of the installation instructions below, please email me at [email protected], or find me (simensen) on IRC's Freenode network.
Make sure you can call Composer through either just composer
, or by calling php /path/to/composer.phar
. I would recommend that you follow the instructions at https://getcomposer.org/download/ by running the 4 PHP commands, and then copy the installed composer.phar
file to /usr/local/bin/composer
:
sudo cp composer.phar /usr/local/bin/composer
Now verify whether Composer works by running:
composer --version
Please install the PHP package through your package manager. For Debian and Ubuntu, this package is named php
.
To verify whether your installation worked, run the following commands:
php --version
Running this command should output something like this (pay attention to the version numbers):
PHP 7.0.13-dev (cli) (built: Oct 30 2016 14:53:59) ( NTS DEBUG )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
with Xdebug v2.6.0-dev, Copyright (c) 2002-2017, by Derick Rethans
with Zend OPcache v7.0.13-dev, Copyright (c) 1999-2016, by Zend Technologies