Sign inSign up

rvannauker/php-formatter

By rvannauker

•Updated over 9 years ago

PHP Formatter - provide some bulk actions for your PHP projects to ensure their consistency

Image
2

1.7K

rvannauker/php-formatter repository overview

⁠PHP Formatter - provide some bulk actions for your PHP projects to ensure their consistency

Docker Pulls Docker Stars GitHub issues license

Docker container to install and run php-formatter

⁠Installation / Usage
  1. Install the rvannauker/php-formatter container:
docker pull rvannauker/php-formatter
  1. Run php-formatter through the php-formatter container:
sudo docker run --rm --volume $(pwd):/workspace --name="php-formatter" "rvannauker/php-formatter" formatter:use:sort {destination}
sudo docker run --rm --volume $(pwd):/workspace --name="php-formatter" "rvannauker/php-formatter" formatter:strict:fix {destination}
sudo docker run --rm --volume $(pwd):/workspace --name="php-formatter" "rvannauker/php-formatter" formatter:header:fix {destination}
⁠Download the source:

To run, test and develop the PHP-FORMATTER Dockerfile itself, you must use the source directly:

  1. Download the source:
git clone https://github.com/RichVRed/docker-php-formatter.git
  1. Build the container:
sudo docker build --force-rm --tag "rvannauker/php-formatter" --file php-formatter.dockerfile .
  1. Test running the container:
 $ docker run rvannauker/php-formatter --help

Tag summary

Content type

Image

Digest

Size

24.6 MB

Last updated

over 9 years ago

docker pull rvannauker/php-formatter