{"repo":"fortephp/chisel","free":true,"listed":false,"github":"https://github.com/fortephp/chisel","clone":"git clone https://github.com/fortephp/chisel.git","description":"Chisel is a prettier plugin for Laravel Blade.","language":"TypeScript","stars":133,"topics":["blade","laravel"],"license":"MIT","category":"cli-tools","readme_excerpt":"Chisel An opinionated Prettier plugin for Laravel Blade templates. Installation Requires Node.js 18 or newer. Install Prettier and the plugin in your project: Optional integrations: Migration Chisel v3 ( prettier-plugin-blade ) is a ground-up rewrite. Expect output changes compared to previous versions. If you rely on previous versions, you should specify the exact version you'd like to use in your package.json . Quick Start Create or update your .prettierrc : Format: CLI Flags You can pass Blade plugin options directly to the Prettier CLI as kebab-case flags: Notes: - Use kebab-case in CLI flags (for example bladePhpFormatting - --blade-php-formatting ). - Load @prettier/plugin-php when using bladePhpFormatting: \"safe\" from the CLI. - Array options use repeated flags in CLI (for example: --blade-inline-intent-elements p --blade-inline-intent-elements svg --blade-inline-intent-elements svg: ). - bladeDirectiveCaseMap takes a JSON object string when passed via CLI, but shell quoting is easy to get wrong. Prefer setting it in .prettierrc . Blade Plugins Use bladeSyntaxPlugins to enable framework-specific or package-specific Blade behavior. Available plugins: - statamic - log1x/sage-directives : for improved compatibility with https://github.com/Log1x/sage-directives Example: PHP Formatting To format embedded PHP fragments inside Blade, install @prettier/plugin-php and include it in plugins : Notes: - Without @prettier/plugin-php , the formatter still works. It falls back gracef","default_branch":null,"files":null,"tree":[],"storefront":"/r/fortephp","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/fortephp/chisel/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."}