Illuminate\Filesystem or custom file watchers).FluidFractorRule contract suggests custom rule development, enabling TPMs to enforce consistent Fluid template standards (e.g., variable naming, section structure).--dev suggests it’s a dev tool, not runtime dependency).FluidFileProcessor and inject custom rules.view events to hook into template rendering.php artisan fractor:check).resources/views if converted).composer.json (--dev).// Example: app/Console/Commands/RunFractor.php
public function handle() {
$processor = app(FluidFileProcessor::class);
$processor->process(directory: storage_path('app/fluid-templates'));
}
.github/workflows/ci.yml:
- name: Run Fractor
run: php artisan fractor:check
{namespace} vs. {section}).header variable").FluidFractorRule.npm run dev or TYPO3’s typo3/sysext/core/Classes/ViewHelpers compilation).inotifywait for file changes).RULES.md file for the team.spatie/fork).mtime checks).before scripts).| Failure Scenario | Impact | Mitigation |
|---|---|---|
| Rule breaks Fluid parsing | Templates render incorrectly | Test rules against a golden template. |
| Fractor crashes on large files | CI/CD pipeline fails | Add file size limits or chunking. |
| Custom rule logic errors | False positives/negatives | Unit test rules with mock templates. |
| Dependency conflicts | Composer install fails | Pin a9f/fractor-fluid to a version. |
| Unmaintained Fractor core | Package stops working | Fork and maintain internally. |
How can I help you explore Laravel packages today?