Download the PHP package amarenkov/laravel-mutable-content-filament without Composer

On this page you can find all versions of the php package amarenkov/laravel-mutable-content-filament. 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 laravel-mutable-content-filament

amarenkov/laravel-mutable-content-filament

tests Packagist coverage

A Filament 5 admin panel for amarenkov/laravel-mutable-content.

Builds forms, infolists and tables from model field definitions and makes sure every change made in the admin panel lands in the change log with its author.

Screenshots

A demo bicycle catalog. Nothing below is written by hand: the resources only set the model.

Table built from the field definitions: LOV items with icons, object titles, weight and lengths in their display units. "Gears" and "Color" were added in the admin panel.

Bicycles table

Form: a select with icons for a LOV item, a searchable select for an object reference, inputs in display units.

Bicycle form

Fields of a class: the lock marks fields declared in code, which cannot be deleted; fields added in the admin panel can.

Fields screen

Lists of values: items with icons, added one by one or as a list of labels.

LOV items screen

Features

Requirements

Installation

The management screens are registered explicitly; resource discovery does not find them:

Usage

Extend resources, pages and actions from this package instead of plain Filament ones:

There is no need to define form(), infolist() or table(): they are built from the field definitions.

Tuning a single component

formComponentsFromFields() returns components keyed by field code, so you can adjust one component without rebuilding the form:

Saving

Wrap custom saves in SaveHelper::save(): a unique constraint violation or a DomainException thrown by the model is shown as a notification instead of a server error, and the transaction is rolled back.

Translations

UI strings are in lang/{en,ru}/ui.php under the mutable-content-filament namespace. Publish them to override:

Caveats

Extending plain Filament classes instead of the ones from this package does not throw, but silently breaks three things: forms get raw jsonb instead of flat fields, the change log loses the author, and deletion of system records is no longer blocked.

License

MIT. See LICENSE.


All versions of laravel-mutable-content-filament with dependencies

PHP Build Version
Package Version
Requires php Version ^8.4
amarenkov/laravel-mutable-content Version ^0.7.3
filament/filament Version ^5.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 amarenkov/laravel-mutable-content-filament contains the following files

Loading the files please wait ...