{"repo":"shufo/blade-formatter","free":true,"listed":false,"github":"https://github.com/shufo/blade-formatter","clone":"git clone https://github.com/shufo/blade-formatter.git","description":"An opinionated blade template formatter for Laravel that respects readability","language":"TypeScript","stars":545,"topics":["formatter","laravel","blade"],"license":"MIT","category":"dev-tools","readme_excerpt":"blade-formatter An opinionated blade template formatter for Laravel that respects readability This project aims to provide a formatter for blade templates, as there is no official blade template formatter. Try the online demo Features - Automatically Indents markup inside directives - Automatically add spacing to blade templating markers - PHP 8 support (null safe operator, named arguments) 🐘 - PSR-2 support (format inside directives) - Automatic Tailwind CSS Class Sorting. see Options - Custom Directive support Example Input Output Installation yarn global docker Usage - Basic - Check if template is formatted or not (makes no change) - Format files and overwrite - Show diffs Options Configuring blade-formatter To configure project wide settings, put .bladeformatterrc.json or .bladeformatterrc in your repository root, blade-formatter will treat them as settings files. e.g. blade-formatter will search up the directory structure until it reaches the root directory. Ignore Files To ignore a specific file, put a .bladeignore' in the root of your repository and the blade formatter will treat it as an ignored file. e.g. Disabling format in file To disable formatting in your file, you can use blade comments in the following format: To disable formatiing on a specific line, you can use comment in the following format: To disable formatting for an entire file, put a {{-- blade-formatter-disable --}} comment at the beginning of the file: API You can also use the blade formatter via AP","default_branch":null,"files":null,"tree":[],"storefront":"/r/shufo","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/shufo/blade-formatter/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}