Skip to content

Run laravel/pint using Docker, regardless of system/project PHP version.

License

Notifications You must be signed in to change notification settings

syncloudsoftech/pinter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.