Download the PHP package interwal-net/filament-visual-cron-builder without Composer
On this page you can find all versions of the php package interwal-net/filament-visual-cron-builder. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download interwal-net/filament-visual-cron-builder
More information about interwal-net/filament-visual-cron-builder
Files in interwal-net/filament-visual-cron-builder
Package filament-visual-cron-builder
Short Description A reusable Filament v4/v5 form field that builds cron expressions visually with native selects - no JS bundle.
License MIT
Homepage https://github.com/interwal-net/filament-visual-cron-builder
Informations about the package filament-visual-cron-builder
Filament Visual Cron Builder
A reusable Filament v4/v5 form field that builds cron expressions visually with native selects. No cron syntax knowledge required, no JS bundle - the compose/parse logic lives in PHP.
CronBuilder::make('schedule') is a drop-in replacement for a TextInput bound
to a cron column: its saved state is a standard 5-field cron string.
Features
- 5 positions - minute, hour, day-of-month, month, day-of-week.
- Each position has a mode: Every (
*), Specific (1,15,30- toggle chips, no Ctrl-click), Range (1-5,10-12- multiple ranges, a new row appears as you fill the last one), Step (*/15). - Two layouts: side-by-side grid (default) or compact tabs - per field or via config.
- Live human-readable preview + raw expression + optional next-run date.
- Round-trips: editing a record parses the existing string back into the columns.
- All compose/parse/validation logic is plain, unit-tested PHP.
- Styles ship as a small plain-CSS file through
FilamentAsset- no Tailwind build or theme configuration required.
Compatibility
| Package | Filament | Livewire | Laravel | PHP |
|---|---|---|---|---|
| 1.1+ | 4.x / 5.x | 3.x (F4) / 4.x (F5) | 12, 13 | 8.2+ (Laravel 13 needs 8.3+) |
| 1.0 | 4.x | 3.x | 11, 12 | 8.2+ |
Livewire is not a direct dependency - the correct major is pulled in by the Filament version you install.
Installation
The service provider is auto-discovered. Optionally publish config and views:
Usage
The field is live() by default so the preview recomputes on every change.
->live(), ->afterStateUpdated() and the other state binding modifiers work
like on any Filament field:
Validate the saved string anywhere with the bundled rule:
The core helper
InterwalNet\CronBuilder\Support\CronExpressionBuilder is standalone and testable:
Demo
A bootable Filament panel lives in workbench/ (via Testbench). It exposes a
ScheduleResource using CronBuilder, seeded with sample expressions.
Then open http://127.0.0.1:8000/admin and log in with:
- email:
[email protected] - password:
password
Edit the "Every 15 min, business hours" record (*/15 4,12,20 * * 1-5) to see the
columns parse back from an existing string.
Testing
Changelog
See CHANGELOG.md for release notes.
License
MIT. See LICENSE.
All versions of filament-visual-cron-builder with dependencies
dragonmantank/cron-expression Version ^3.3
filament/forms Version ^4.0 || ^5.0
illuminate/contracts Version ^12.0 || ^13.0
spatie/laravel-package-tools Version ^1.16