https://github.com/parallax/coding-style
Parallax's Coding Style
https://github.com/parallax/coding-style
Last synced: 7 months ago
JSON representation
Parallax's Coding Style
- Host: GitHub
- URL: https://github.com/parallax/coding-style
- Owner: parallax
- Created: 2023-06-29T10:49:25.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-07-03T10:51:22.000Z (over 2 years ago)
- Last Synced: 2025-06-30T00:11:19.214Z (7 months ago)
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Parallax's Coding Style
## PHP (Laravel Pint)
### Installation
1\. Add the repository to your `composer.json` using either the JSON format:
```json
"repositories": {
"parallax/coding-style": {
"type": "vcs",
"url": "https://github.com/parallax/coding-style.git"
}
},
```
Or the CLI command:
```sh
composer config repositories.parallax/coding-style '{"type": "vcs", "url": "https://github.com/parallax/coding-style.git"}' --file composer.json
```
2\. Include `parallax/coding-style` in your project's dev dependencies:
```sh
composer require --dev parallax/coding-style
```
### Usage
Run the Pint command to apply the Parallax coding style:
```sh
./vendor/bin/pint --config vendor/parallax/coding-style/pint.json
```
You can also add a script to your `composer.json` for quicker style application:
```sh
composer config scripts.pint 'pint --config vendor/parallax/coding-style/pint.json' --file composer.json
```
Apply Parallax's coding style using the script:
```sh
composer pint
```