Download the PHP package bezhansalleh/filament-plugin-essentials without Composer

On this page you can find all versions of the php package bezhansalleh/filament-plugin-essentials. 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-plugin-essentials

filament-plugin-essentials-art

FILAMENT 4.x FILAMENT 5.x Packagist Tests Passing Code Style Passing Downloads

Filament Plugin Essentials

A collection of essential traits that streamline Filament plugin development by taking care of the boilerplate, so you can focus on shipping real features faster

Table of Contents

Features

Requirements

Installation

For Plugin Developers

1. Add traits to your plugin class

2. Add matching traits to your forResource classes

3. Set defaults for your plugin (optional)

[!NOTE] Defaults arrays are keyed by property name (shouldRegisterNavigation, isGloballySearchable, hasTitleCaseModelLabel, …), not by setter name. The copy-paste blocks under each trait below list the correct keys.

Alternatively, define a getDefault{Property}() method for any property — it takes precedence over the getPluginDefaults() array and receives the resource class being resolved:

The legacy flat structure (UserResource::class => [...] at the top level of the defaults array) keeps working alongside the nested 'resources' key.

How values are resolved

For every configurable property, the first tier with an answer wins:

  1. Per-resource user override->forResource(UserResource::class)->navigationIcon(...)
  2. Global user override->navigationIcon(...)
  3. Plugin developer defaultsgetDefault{Property}() method, then getPluginDefaults()['resources'][ResourceClass][property], then legacy getPluginDefaults()[ResourceClass][property], then getPluginDefaults()[property]
  4. Resource / Filament defaults — the resource's own static configuration, then Filament's native behavior (including panel-level configuration such as subNavigationPosition)

Passing null explicitly to a nullable setting is an answer, not a reset — ->navigationIcon(null) removes the icon even when the plugin ships a default or the resource declares its own static icon.

How Plugin Users Can Configure Your Plugin

When plugin developers use these traits, users of their plugins get a fluent API to configure them. The available configuration options depend on which traits the plugin developer chose to include.

Configure any plugin that uses these traits:

Multi-forResource configuration

Dynamic values with closures

Plugin & Resource Trait Mapping

Each plugin trait has a corresponding forResource trait that must be added to your forResource classes:

Plugin Trait Resource Trait
Plugin\HasNavigation Resource\HasNavigation
Plugin\HasLabels Resource\HasLabels
Plugin\HasGlobalSearch Resource\HasGlobalSearch
Plugin\BelongsToParent Resource\BelongsToParent
Plugin\BelongsToTenant Resource\BelongsToTenant
Plugin\WithMultipleResourceSupport (No forResource trait needed - enables multi-forResource configuration)

Configuration Options Provided by Each Trait

HasNavigation

Copy-paste defaults:

HasLabels

Copy-paste defaults:

HasGlobalSearch

Copy-paste defaults:

BelongsToParent

Copy-paste defaults:

BelongsToTenant

Copy-paste defaults:

WithMultipleResourceSupport

Enables per-forResource configuration:

Limitations

Route-phase configuration cannot be plugin-delegated. Filament resolves resource slugs, clusters, and route prefixes while registering routes at application boot — before any panel boots and before filament()->getPlugin() can target the correct panel. Plugin configuration only becomes reliable per-request, after the panel boots. That is why these traits cover navigation, labels, global search, tenancy, and parent resources, but not slug() or cluster assignment.

Todo

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

License

The MIT License (MIT). Please see License File for more information.


All versions of filament-plugin-essentials with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2|^8.3
filament/filament Version ^4.0|^5.0
spatie/laravel-package-tools Version ^1.0
illuminate/contracts Version ^11.28|^12.0|^13.0
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 bezhansalleh/filament-plugin-essentials contains the following files

Loading the files please wait ...