https://github.com/sukhoy94/apache-php-docker
Basic stuff to start developing php with apache
https://github.com/sukhoy94/apache-php-docker
apache2 docker-compose docker-phpdev php8 phpstan-l9
Last synced: 12 months ago
JSON representation
Basic stuff to start developing php with apache
- Host: GitHub
- URL: https://github.com/sukhoy94/apache-php-docker
- Owner: sukhoy94
- Created: 2023-03-04T14:25:23.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-06-04T14:37:23.000Z (almost 3 years ago)
- Last Synced: 2025-01-31T17:13:26.967Z (about 1 year ago)
- Topics: apache2, docker-compose, docker-phpdev, php8, phpstan-l9
- Language: PHP
- Homepage:
- Size: 4.88 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Why?
I always was exhausted with all this xampp, lamp configurations and so on. I want to run one command and have my environment working. That's why I decided to create such 'template' and put it to repository.
# apache-php-docker
Basic stuff to start developing php with apache.
The main purpose of this repo is to get simple working environment with apache + php with autoloading.
Inside by default there are autoload and static analysis.
# How to start
```
docker-compose up --build --force-recreate
```
Application will be available on http://localhost:80/
# Static analysis
Run inside a container:
```
vendor/bin/phpstan analyse
```
By default, app folder will be analyzed with the phpstan rule level 9
# Change php version
Modify
`FROM php:8.1-apache line in Dockerfilte` to image you need, for example
`FROM php:7.1-apache` to have php 7.1 version.