Skip to content

Latest commit

 

History

History
40 lines (26 loc) · 1.28 KB

README.md

File metadata and controls

40 lines (26 loc) · 1.28 KB

pinter

Lightweight (based on Alpine) Docker image for running laravel/pint code-style fixer regardless of Laravel or PHP version you may have.

GitHub Workflow Status Docker Pulls

Usage

To use this image, you must have Docker installed. If already, run the below command in your Laravel or PHP project folder:

$ docker run -it --rm -v $PWD:/workspace syncloudsoftech/pinter

You can pass options to pint such as a --preset (default is laravel) or --test easily as below:

$ docker run -it --rm -v $PWD:/workspace syncloudsoftech/pinter pint --preset psr12

Development

Building or modifying the container yourself from source is also quite easy. Just clone the repository and run below command:

$ docker build -t pinter .

Run the locally built container as follows:

$ docker run -it --rm -v $PWD:/workspace pinter

License

See the LICENSE file.