matthiasnoback / php-for-the-web

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

Home Page:https://leanpub.com/learning-php-for-the-web-without-a-framework/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 

About

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

https://leanpub.com/learning-php-for-the-web-without-a-framework/


Languages

Language:PHP 99.3%Language:Shell 0.3%Language:Dockerfile 0.3%Language:Hack 0.2%