Download the PHP package syriable/filament-utilities without Composer

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

Syriable Filament Utilities

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status

Developer tooling for the Syriable Filament ecosystem. The package wires custom Artisan generators that scaffold translatable Filament resources and module plugins, a guard-aware Filament Shield role resource, and a panel plugin that bundles Syriable's translator, activity log, and Shield integrations.

Features

Requirements

For plugin:resource, your application must use InterNACHI/modular with modules under the path configured in config/app-modules.php.

Installation

Install the package via Composer:

UtilitiesServiceProvider is auto-discovered. Register UtilitiesPlugin on every Filament panel that should use the bundled Syriable integrations:

UtilitiesPlugin registers the custom RoleResource, TranslatorPlugin, Activitylog, and FilamentShieldPlugin. You do not need to register those plugins separately when using UtilitiesPlugin.

Usage

Generate a translatable resource

Use syriable:make-resource (alias: syriable:resource) instead of make:filament-resource. It accepts the same options as Filament's command — panel selection, soft deletes, separate form/table schema classes, and so on.

When no model argument is passed, the command interactively suggests Eloquent models discovered from classes loaded from your modules/ directory.

Generated classes extend Syriable's translatable bases:

Generated class Extends
Resource TranslatableResource
Create page TranslatableCreateRecord
Edit page TranslatableEditRecord
List page TranslatableListRecords

Model namespaces are resolved relative to the selected resource namespace so module resources reference module models instead of App\Models.

After generation, add translation keys under lang/{locale}/ following the filament-translator convention. Enable createMissingTranslationKeys() during local development to scaffold missing keys automatically.

plugin:resource (CreatePluginCommand)

Scaffold a Filament panel plugin inside an InterNACHI/modular module:

Argument Required Description
plugin No Module directory name (for example, users). When omitted, the command interactively suggests directories from your configured modules path.

The command reads config('app-modules.modules_directory') (default modules) and config('app-modules.modules_namespace') (default Modules) to resolve paths and namespaces.

What it generates

For php artisan plugin:resource users, the command creates:

with namespace Modules\Users. The generated plugin class:

Service provider registration

CreatePluginCommand also patches the module service provider at modules/{module}/src/Providers/{Module}ServiceProvider.php:

Re-running the command is safe — it skips registration when the plugin is already present.

Customize the generated plugin by publishing the stub before running the command (see Publish generator stubs).

Guard-aware role management

The package replaces Filament Shield's default RoleResource with a translatable variant that supports multiple authentication guards.

When creating or editing a role, the guard_name field is populated from config('auth.guards') and updates the permission matrix live. Changing the guard:

The roles table counts users via the model_has_roles pivot directly, so users_count is accurate when the same role is assigned to models on different guards (for example, Admin and Buyer).

Publish and customize the web-guard overrides:

Non-web guards use your application's config/filament-shield.php values. Run php artisan shield:generate as usual to scaffold permissions and policies for application resources.

Publish generator stubs

Customize the plugin stub before running plugin:resource:

Stubs are copied to stubs/filament-utilities/ in your application root.

Configuration

Publish the config file to customize translator path aliases, missing-key scaffolding, and Shield guard overrides:

This copies config/filament-utilities.php to your application's config/ directory:

UtilitiesPlugin reads these values when registering TranslatorPlugin, Activitylog, FilamentShieldPlugin, and the bundled RoleResource.

Opinionated Filament defaults and macros

The package ships several opt-in helpers. They are not applied automatically — call them from your own service provider's boot() method:

initializeFilamentComponents() applies global defaults via configureUsing():

microFilamentComponents() registers convenience macros:

configureFactoryIcons() registers your application's resources/svg/icons directory as a Blade Icons set (fluxwork, prefix flux).

configureActivitylogTimeline() applies compact defaults and a per-event icon map to syriable/filament-activitylog's ActivitylogTimeline component.

The AdvancedTextColumn integration requires the optional, paid codewithdennis/filament-advanced-components package. It is guarded by class_exists(), so the rest of the defaults work without it.

Testing

Other useful scripts:

Run composer analyse instead of invoking PHPStan directly — the package analysis exceeds PHP's default 128M memory limit.

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-utilities with dependencies

PHP Build Version
Package Version
Requires php Version ^8.4
bezhansalleh/filament-shield Version ^4.2
filament/filament Version ^5.5
spatie/laravel-package-tools Version ^1.15.0
syriable/filament-activitylog Version ^0.1.0
syriable/filament-translator Version ^1.1
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 syriable/filament-utilities contains the following files

Loading the files please wait ...