Download the PHP package backstage/announcements without Composer
On this page you can find all versions of the php package backstage/announcements. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download backstage/announcements
More information about backstage/announcements
Files in backstage/announcements
Package announcements
Short Description This is my package backstage-announcements
License MIT
Homepage https://github.com/backstagephp/announcements
Informations about the package announcements
Backstage Announcements
A powerful Filament plugin for managing announcements in your Laravel application. Create, manage, and display announcements with customizable scopes, colors, and navigation controls.
Installation
You can install the package via composer:
[!IMPORTANT] If you have not set up a custom theme and are using Filament Panels follow the instructions in the Filament Docs first.
After setting up a custom theme add the plugin's views to your theme css file or your app's css file if using the standalone packages.
You can publish and run the migrations with:
Optionally, you can publish the views using
This is the contents of the published config file:
Usage
Add the plugin to your Filament panel provider:
Navigation Control
Control whether the announcements resource appears in the navigation menu:
Forced Scopes
Limit which scopes (resources/pages) are available when creating announcements. You can specify the full class names of resources or pages:
The plugin will automatically match these class names to the formatted scope names that appear in the dropdown, so users will see friendly names like "Users (list)" instead of the full class names. The form automatically converts between class names (stored in database) and formatted names (displayed in UI) using the formatStateUsing() method.
Creating Announcements
Once configured, you can create announcements through the Filament interface:
- Title: The announcement title
- Content: The announcement content (supports HTML)
- Scopes: Select which resources/pages the announcement should appear on
- Color: Choose a color theme for the announcement
Displaying Announcements
Announcements are automatically displayed on the selected scopes using the included Livewire component. The component handles:
- Dismissal tracking per user
- Color theming
- Responsive design
- Accessibility features
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Manoj Hortulanus
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of announcements with dependencies
filament/filament Version ^4.0
spatie/laravel-package-tools Version ^1.15.0