Download the PHP package ultraviolettes/filament-audio-field-column without Composer
On this page you can find all versions of the php package ultraviolettes/filament-audio-field-column. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ultraviolettes/filament-audio-field-column
More information about ultraviolettes/filament-audio-field-column
Files in ultraviolettes/filament-audio-field-column
Package filament-audio-field-column
Short Description A Filament plugin to display audio players with circular progress in forms, tables, and infolists
License MIT
Homepage https://github.com/ultraviolettes/filament-audio-field-column
Informations about the package filament-audio-field-column
Filament Audio Field & Column
A Filament plugin that provides audio player components with circular progress for forms, tables, and infolists.
Features
- Play/Pause button with smooth animations
- Circular progress indicator (SVG-based)
- Support for local and remote audio files (MP3, etc.)
- Dark mode support
- Optional volume control
- Optional duration display
- Customizable size and progress color
- Auto-pause when another player starts (only one plays at a time)
- Works in Tables, Infolists, and Forms
Installation
Usage
Table Column
Display an audio player in your table:
Infolist Entry
Display an audio player in your infolist:
Form Field
Display an audio preview in your form (read-only player):
Configuration Options
All components support the following options:
| Method | Description | Default |
|---|---|---|
audioUrl(string\|Closure) |
Set the audio URL directly | Uses state value |
size(int) |
Size of the player in pixels | 32 (column/entry), 48 (field) |
progressColor(string) |
Color of the progress circle | #00bfff |
showDuration(bool) |
Show the duration display | false (column/entry), true (field) |
showVolume(bool) |
Show volume control | false |
Examples
Basic Table Column
Customized Column
Full-Featured Form Field
With Spatie Media Library
Remote URLs
Styling
The component uses Tailwind CSS classes and supports dark mode out of the box. The progress circle color can be customized using the progressColor() method with any valid CSS color value:
Browser Support
The audio player uses the native HTML5 <audio> element and supports all modern browsers. Supported audio formats depend on the browser:
- MP3: All modern browsers
- WAV: All modern browsers
- OGG: Firefox, Chrome, Opera
- AAC: Safari, Chrome, Edge
Requirements
- PHP 8.2+
- Laravel 11+
- Filament 4.x or 5.x
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
MIT License. See LICENSE.md for more information.
Credits
- Inspired by the audio preview component from BTY Monorepo
- Built with Filament
- Uses Alpine.js for interactivity