# PHP Tooling Guide

EditorConfig Code Style
------------------------

[![EditorConfig Guide](https://img.shields.io/badge/EditorConfig_Guide-4f46e5?style=flat)](/books/tooling-guides/page/editorconfig-guide)

```ini filename=".editorconfig"
# SPDX-License-Identifier: 0BSD
# SPDX-FileCopyrightText: none

[*.html]
indent_size = 2
tab_width = 2

[*.js]
indent_size = 2
tab_width = 2
ij_continuation_indent_size = 4
ij_javascript_enforce_trailing_comma = whenmultiline

[*.php]
indent_size = 4
indent_style = space

[composer.json]
# Tooling uses 4-space indentation; match it.
indent_size = 4
indent_style = space
```

Exclude Files from Version Tracking
------------------------------------

[![Git Repository Guide](https://img.shields.io/badge/Git_Repository_Guide-4f46e5?style=flat)](/books/tooling-guides/page/git-repository-guide)

```gitignore filename=".gitignore"
# SPDX-License-Identifier: 0BSD
# SPDX-FileCopyrightText: none

/.phpunit.cache
/.phpunit.result.cache
/vendor
```