Skip to content

Commit 05f8b26

Browse files
committed
Add readme instructions
1 parent 5d2bc1f commit 05f8b26

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

Dockerfile

+4-1
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,7 @@ WORKDIR /app
6060
CMD echo 'PHP Code Style Swissknife Docker' && \
6161
echo '--------------------------------' && \
6262
echo 'Try the following commands:' && \
63-
ls /composer/vendor/bin
63+
echo 'docker run --rm -v $(pwd):$(pwd) -w $(pwd) -u $(id -u):$(id -g) marcusmu/php-codestyle-swissknife-docker:latest ecs' && \
64+
echo 'docker run --rm -v $(pwd):$(pwd) -w $(pwd) -u $(id -u):$(id -g) marcusmu/php-codestyle-swissknife-docker:latest phpstan' && \
65+
echo 'docker run --rm -v $(pwd):$(pwd) -w $(pwd) -u $(id -u):$(id -g) marcusmu/php-codestyle-swissknife-docker:latest phpmd' && \
66+
echo 'docker run --rm -v $(pwd):$(pwd) -w $(pwd) -u $(id -u):$(id -g) marcusmu/php-codestyle-swissknife-docker:latest rector'

README.md

+19
Original file line numberDiff line numberDiff line change
@@ -1 +1,20 @@
11
# PHP-Codestyle-Swissknife-Docker
2+
3+
This is a docker image that contains the following tools:
4+
- [PHPStan](https://phpstan.org/)
5+
- [PHP-CS-Fixer](https://cs.symfony.com/) / [EasyCodingStandard](https://github.com/easy-coding-standard/easy-coding-standard)
6+
- [PHP Mess Detector](https://phpmd.org/)
7+
- [Rector](https://getrector.com/)
8+
9+
## Usage
10+
11+
```bash
12+
docker run --rm -v $(pwd):$(pwd) -w $(pwd) -u $(id -u):$(id -g) marcusmu/php-codestyle-swissknife-docker:latest ecs ...
13+
docker run --rm -v $(pwd):$(pwd) -w $(pwd) -u $(id -u):$(id -g) marcusmu/php-codestyle-swissknife-docker:latest phpstan ...
14+
docker run --rm -v $(pwd):$(pwd) -w $(pwd) -u $(id -u):$(id -g) marcusmu/php-codestyle-swissknife-docker:latest phpmd ...
15+
docker run --rm -v $(pwd):$(pwd) -w $(pwd) -u $(id -u):$(id -g) marcusmu/php-codestyle-swissknife-docker:latest rector ...
16+
```
17+
18+
Adapted from
19+
- https://github.com/aragon999/phpstan-shopware-docker/
20+
- https://github.com/shyim/php-cs-fixer-docker

0 commit comments

Comments
 (0)