How to Evaluate Reusable Packages in the Django Ecosystem
When you add a reusable package to a Django project, you bring in code that has to work with your Python and…
When you want to reuse a Filament feature across Laravel projects, you can keep it inside one application or package it so other projects can install it through Composer, PHP's package manager. Filament calls a packaged extension a plugin. You can build a plugin that adds features to a Filament panel, provides components for form or table builders used outside a panel, or does both.
Your choice of package structure depends on where the feature runs. If you build a panel plugin, you write a plugin class that configures features for a panel. If you build a standalone plugin, you rely on a Laravel service provider, which is a class that connects a package to Laravel. Beyond the code itself, you need to document which versions your plugin supports, test it inside an application that installs the package, and update it when those Filament or Laravel versions change.
First, decide if you are keeping the feature inside a single application or sharing it across Laravel projects. You do not need to publish a public package for a one-off customization. If you do package it for reuse, document how developers install it and which versions it supports so they can tell right away if it fits their project.
Next, decide where the feature runs. A panel plugin adds features like resources, pages, widgets, themes, or render hooks to a Filament panel. A standalone plugin adds components like form fields, table columns, or filters to Filament's form or table builders outside the Panel Builder. You can also build a plugin that works in both contexts, and Filament's plugin overview explains how they differ.
When you start a new package, you can use Filament's Plugin Skeleton. Create a repository from that template, clone it locally, and run php ./configure.php from the project root to set up the package. Because the skeleton ships with example Composer and publishing commands that use placeholder values, replace those placeholders with your package's names and resources. If the template does not fit what you are building, you can set up the package from scratch instead.
A packaged plugin follows Laravel's standard package conventions. Your service provider registers the package's services and tells Laravel how to load its views, configuration, translations, and assets. When you list that provider under extra.laravel.providers in composer.json, Laravel discovers and registers it automatically after Composer installs the package. You can check the Laravel package documentation for details on provider discovery and resource publishing.
If you are building a panel plugin, implement Filament's Filament\Contracts\Plugin interface. Your plugin class returns a unique ID from getId() and adds features to a panel inside register(Panel $panel). In the host project, the developer passes an instance of your plugin class to the panel's plugin() method inside the panel configuration. Inside register(), add only the features that panel needs.
Your plugin class can also expose configuration options, such as letting the developer choose whether to register a specific resource. The developer sets the option when configuring the panel, and your register() method reads that choice as it wires up the panel. Filament also provides a boot(Panel $panel) method for code that has to run when the panel boots. If your plugin has no startup work to do, leave that method empty. The panel plugin documentation shows the full interface and registration pattern.
A standalone plugin does not need a panel plugin class because its service provider handles all configuration and setup. If your package ships a complete panel on its own, you can provide a configuration class that extends PanelProvider, and Laravel's package discovery will register it.
Load CSS and JavaScript only where your feature needs them. For assets shared by standalone components, such as CSS, JavaScript, and Alpine components that load on demand, Filament recommends registering assets inside your service provider's packageBooted() method. For assets that must load on every page of a specific panel, register them with $panel->assets() inside your plugin class's register() method so panels that do not use the plugin never load those files.
Custom fields that rely on JavaScript need extra care. If your field uses React, Vue, Svelte, or native JavaScript, package the built code and its framework dependencies directly with your plugin assets. As Filament's asset guidance points out, developers should not have to edit their Vite configuration to use your plugin.
If your package ships configuration files, keep closures out of them. Laravel warns that PHP cannot serialize closures properly when a developer runs config:cache, which breaks cached configuration. Document every command developers need to run to publish configuration files, migrations, or views, and state clearly which of those steps are optional.
Write tests for the behavior developers and end users will encounter in addition to your package's internal classes. Filament's testing guidance uses Livewire testing helpers for UI components. A Filament page, widget, or relation manager can be a Livewire component, while resource classes, schema components, and actions are not, so match your test approach to the kind of class you are testing. Filament's documentation uses Pest for its examples, and the testing overview notes that you can adapt them to PHPUnit.
Passing unit tests alone do not prove that your plugin works across every Filament version you claim to support. Install and run the plugin inside a host application for each supported version, and verify that its panel features, custom views, styles, and JavaScript behave as expected. When you test inside a host application, you also confirm that your Composer version constraints, provider discovery, published resources, and asset paths match what your README promises.
Treat every version listed in your documentation as a version you actively support. Before a major Filament release, read the upgrade guides for Filament and for any packages your plugin depends on, update your Composer version constraints, and test the plugin in an application running the new version. State your plugin's PHP, Laravel, Livewire, and Filament requirements clearly. You can check the Filament installation requirements when you document the PHP, Laravel, Livewire, and Tailwind CSS versions your plugin needs.
Filament's support windows cover the framework itself and do not extend to independent plugins. Under the version support policy, Filament 5.x receives new features until the 6.x stable release, bug fixes for about a year after that release, and security fixes for about two years. Those timelines do not commit a plugin author to the same schedule, and Filament also notes that underlying PHP, Laravel, or Livewire dependencies can reach end of life sooner.
Tell users in your documentation how long you plan to maintain the plugin, which versions you support, and how they can report security issues. Filament marks some packages as Official and groups the rest as independent listings, warning that it does not review or audit the security of third-party plugins. A directory listing does not guarantee a package's quality, security, compatibility, or ongoing maintenance, so developers should inspect a plugin's code, documentation, compatibility claims, and user feedback before installing it.
Give Vroni a GitHub issue, bug report, spec, or rough idea. It reads the repo, plans the change, writes code, runs checks, and works toward a review-ready pull request.
Take a look at vroni.com