Download the PHP package marcelodelgado/filament-announcements without Composer

On this page you can find all versions of the php package marcelodelgado/filament-announcements. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package filament-announcements

Filament Announcements Banner

Latest Version Total Downloads PHP Version License


Filament Announcements

A Filament v5 plugin to display institutional announcements and alerts on your panel dashboard — with full CRUD, per-user dismiss, and automatic expiration.


Screenshots

Dashboard Widget

Widget

Announcements List

List

Create / Edit Form

Form


Features


Requirements

Dependency Version
PHP 8.2+
Laravel 11+
Filament 5.x
spatie/laravel-package-tools ^1.16

Installation

Install via Composer:

Publish and run the migrations:

Optionally publish config and views to customize them:


Setup

1. Register the plugin in your PanelProvider

2. Add the trait to your User model

That's it — the widget will appear on your dashboard and the Announcements menu item will show up in the sidebar.


Configuration

After publishing, edit config/announcements.php:

Key Type Default Description
permission_check null, string or Closure null Access control for the Resource. null = no extra check. string = Laravel Gate name. Closure = receives the authenticated user, must return bool.
polling_interval string '60s' Fallback wire:poll interval for the widget when the panel plugin interval cannot be resolved.

Permissions example


How it works

Widget — only shows announcements where is_active = true and the current time falls within the starts_at / expires_at window. Results are ordered with danger first, then by created_at descending.

Dismiss — when a user closes a dismissible announcement, the action is recorded in the announcement_user pivot table (dismissed_at). That announcement will never show again for that user. Non-dismissible announcements hide the close button entirely.

Expiration — handled purely by the query. No scheduled commands required.


Translations

The plugin ships with English strings. To add your own language, publish the translation files:

This will create lang/vendor/announcements/{locale}/announcements.php where you can override any string.


Roadmap


Changelog

Please see CHANGELOG.md for details on recent changes.


Contributing

Pull requests are welcome! Please keep the scope aligned with the package goals.


License

MIT — see LICENSE for details.


Made with ❤️ by Marcelo Delgado


All versions of filament-announcements with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
filament/filament Version ^5.0
illuminate/contracts Version ^11.0|^12.0|^13.0
spatie/laravel-package-tools Version ^1.16
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package marcelodelgado/filament-announcements contains the following files

Loading the files please wait ...