prettier / prettier/plugin-php

Update doc

Open
#2,135 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
1.9k
Forks
139
PR merge metrics
No merged PRs in 30d

Description

Hey,

for use your (great) plugin, we need to use --parser=php on command line, i think it's good to add it on your doc :)
he's specified but not everywhere

yarn run prettier --parser=php path/to/file.php --write
# or
npm run prettier --parser=php path/to/file.php --write

and

prettier --parser=php path/to/file.php --write

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Locate the plugin documentation that shows PHP command-line usage and review the existing examples. Update the relevant examples to include --parser=php, including the yarn, npm, and direct prettier commands; the documentation is done when each shown PHP invocation specifies the parser.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.