Download the PHP package community-sdks/unlayer-filament without Composer

On this page you can find all versions of the php package community-sdks/unlayer-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 unlayer-filament

Unlayer Filament

UnlayerFilament

Try The Example

If you want to try the package quickly in a Laravel app, install it and then install the bundled quick demo:

This package ships its example through zpmlabs/laravel-package-quick-demo. The quick demo installer sets up an isolated demo environment for the package so you can try the field without manually wiring routes, database connections, migrations, seeders, or demo views into your main application.

To inspect the registered demo or see its route details:

The bundled Unlayer Filament Demo includes an email editor tab and a web/page editor tab, both backed by isolated quick-demo data.

Requirements

Installation

You can install the package via composer:

Install The Livewire Browser Asset

The Filament field depends on the browser asset published by community-sdks/unlayer-livewire.

Install it with:

This publishes the compiled browser file to:

After upgrading the Livewire package or rebuilding that browser asset locally, publish the latest file again:

If you also want to publish the Livewire config to customize upload storage or other package options:

To overwrite previously published files during install:

You can also publish assets or config manually:

Version Compatibility

This package targets Filament 5.x only.

Create a cast within your model:

The field stores the editor state as an array containing both html and design.

If you want to customize uploads or the template proxy route prefix, publish the Livewire package config:

Optionally, you can publish the views using

Usage

As any other filament form field:

In case you want users to choose Unlayer stock templates from inside the editor, enable the template picker:

The picker loads templates through the Livewire package's same-origin backend proxy and applies the selected design directly to the initialized editor.

You can customize the default stock template query:

You can customize the picker toolbar and panel labels:

Live syncing is disabled by default. If you want every editor change to sync immediately through Livewire, enable it explicitly:

If you want to pass additional options to unlayer, which will join default object set by plugin with your additional data you can use:

The built-in Livewire proxy exists because Unlayer's stock template endpoints do not allow direct browser CORS requests. Behind the proxy, template search calls:

The field's templatePicker(options: [...]) values map to the upstream request body like this:

Selected templates are loaded through:

The Livewire package also supports overriding its route prefix and middleware in config/unlayer-livewire.php.

Unlayer is extending filament Field class.

Changelog

Please see CHANGELOG for more information on what has changed recently.

License

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


All versions of unlayer-filament with dependencies

PHP Build Version
Package Version
Requires community-sdks/unlayer-livewire Version ^1.0
php Version ^8.3
filament/filament Version ^5.0
spatie/laravel-package-tools Version ^1.15.0
zpmlabs/laravel-package-quick-demo Version ^1.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 community-sdks/unlayer-filament contains the following files

Loading the files please wait ...