Skip to content

Commit 68ebcd1

Browse files
committed
extracted php-fixer into separate plugin
1 parent a913d69 commit 68ebcd1

7 files changed

Lines changed: 29 additions & 10 deletions

File tree

β€Ž.claude-plugin/marketplace.jsonβ€Ž

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@
1717
"source": "./plugins/nette-dev",
1818
"category": "development",
1919
"homepage": "https://ai.nette.org/en/claude-code"
20+
},
21+
{
22+
"name": "php-fixer",
23+
"source": "./plugins/php-fixer",
24+
"category": "development",
25+
"homepage": "https://ai.nette.org/en/claude-code"
2026
}
2127
]
2228
}

β€Žplugins/nette-dev/.claude-plugin/plugin.jsonβ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "nette-dev",
3-
"version": "1.0.2",
4-
"description": "Coding standards for Nette Framework contributors with automatic PHP style fixing",
3+
"version": "1.0.3",
4+
"description": "Coding standards and conventions for Nette Framework contributors",
55
"author": {"name": "David Grudl"},
66
"keywords": ["php", "nette", "coding-standards", "phpdoc", "contributor"],
77
"skills": "./skills/"
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"name": "php-fixer",
3+
"version": "1.0.0",
4+
"description": "Automatic PHP coding style fixer using nette/coding-standard",
5+
"author": {"name": "David Grudl"},
6+
"keywords": ["php", "coding-standards", "ecs", "fixer"]
7+
}

plugins/nette-dev/commands/install-nette-cs.md renamed to plugins/php-fixer/commands/install-php-fixer.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
name: install-nette-cs
2+
name: install-php-fixer
33
description: Install nette/coding-standard globally for PHP code style checking
44
allowed-tools: Bash, Read, AskUserQuestion
55
---
@@ -73,7 +73,7 @@ Before installation, verify the environment:
7373

7474
> Nette Coding Standard is now installed globally. The `ecs` tool is ready to use.
7575
76-
2. **Integration with nette-dev plugin**
76+
2. **Integration with php-fixer plugin**
7777

7878
The `fix-php-style` hook automatically fixes code style after you edit any `.php` file. No manual action needed.
7979

@@ -117,7 +117,7 @@ Before installation, verify the environment:
117117
- Nette Coding Standard requires PHP 8.0+
118118

119119
### Hook doesn't run after editing PHP files
120-
1. Verify nette-dev plugin is installed in Claude Code
120+
1. Verify php-fixer plugin is installed in Claude Code
121121
2. Check that `ecs` is accessible (run `ecs --version`)
122122
3. Restart Claude Code session
123123

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
* Silently skips if nette/coding-standard is not installed
66
*/
77

8+
89
function getComposerHomePath(): ?string
910
{
1011
if (PHP_OS_FAMILY === 'Windows') {

β€Žreadme.mdβ€Ž

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@ Optionally, Nette Framework contributors can also install:
2424
/plugin install nette-dev@nette
2525
```
2626

27+
For automatic PHP code style fixing:
28+
29+
```
30+
/plugin install php-fixer@nette
31+
/install-php-fixer
32+
```
33+
2734
## Plugins
2835

2936
### `nette` – For Application Developers
@@ -45,19 +52,17 @@ Best practices and conventions for building applications with Nette Framework. I
4552

4653
### `nette-dev` – For Framework Contributors
4754

48-
Coding standards for contributing to the Nette Framework itself. Includes automatic PHP code style fixing.
55+
Coding standards and conventions for contributing to the Nette Framework itself.
4956

5057
| Skill | Description |
5158
|-------|-------------|
5259
| **php-coding-standards** | PHP formatting, naming conventions, code style |
5360
| **php-doc** | phpDoc documentation best practices |
5461
| **commit-messages** | Commit message conventions for Nette repositories |
5562

56-
**Optional:** To enable automatic PHP code style fixing, install nette/coding-standard globally:
63+
### `php-fixer` – Automatic PHP Style Fixing
5764

58-
```
59-
/install-nette-cs
60-
```
65+
Optional plugin that automatically fixes PHP code style after each edit using [nette/coding-standard](https://github.com/nette/coding-standard).
6166

6267
## Usage
6368

0 commit comments

Comments
 (0)