/php-for-the-web

The source code for the book "PHP for the Web - Learning PHP without a framework"

Primary LanguagePHP

Setup

If you want to run the tests for this project, but you don't want to install any specific PHP version on your computer, you can use the bundled Docker setup. First, install Docker on your machine. Then run:

docker-compose pull

This will pull the required Docker image.

Now run:

docker-compose run --rm composer install --prefer-dist --no-progress --ignore-platform-reqs

This will install the required PHP dependencies in vendor/.

Finally, run:

bin/run_tests

If you want to look at the website itself:

bin/start_server

Then go to http://localhost:8000

To stop the webserver:

bin/stop_server

Challenges

To start the projects of the challenges:

bin/start_server challenge_chapter_04