Download the PHP package jeffersongoncalves/filament-yaml-editor without Composer

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

![Filament YAML Editor](https://raw.githubusercontent.com/jeffersongoncalves/filament-yaml-editor/3.x/art/jeffersongoncalves-filament-yaml-editor.png)

Filament YAML Editor

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

A rich YAML editor field for Filament powered by CodeMirror 6 with syntax highlighting, real-time linting, toolbar, and fullscreen support.

Version Compatibility

Branch Filament Laravel PHP
1.x v3 10+ 8.2+
2.x v4 11+ 8.2+
3.x v5 11.28+ 8.2+

Installation

Install the package via Composer:

Publish the assets:

Optionally publish the config file:

Usage

Form Field

Fluent API

Method Description Default
->height(int $px) Editor height in pixels 300
->minLines(int $lines) Minimum visible lines null
->readOnly() Read-only mode false
->withToolbar() Enable toolbar (format, copy, fullscreen) false
->castState() Convert YAML to array on dehydrate, array to YAML on hydrate false
->rules(['yaml']) Add server-side YAML validation via ValidYaml rule
->placeholder(string) Placeholder text null
->dark() Force dark theme auto
->light() Force light theme auto
->autoFormat() Auto-format YAML on blur false

Full Example

Table Action (View YAML in Modal)

Use the ViewYamlAction to add a button in your table that opens a modal with the YAML content displayed in a read-only CodeMirror editor.

Filament v4 / v5 (branches 2.x and 3.x):

Filament v3 (branch 1.x):

Method Description Default
->column(string) Model attribute containing YAML data (required)
->editorHeight(int $px) Editor height inside the modal 400
->dark() Force dark theme auto
->light() Force light theme auto

Infolist Entry

Displays YAML content in a read-only CodeMirror editor.

Eloquent Cast

Use the YamlCast to automatically convert between YAML strings and arrays in your Eloquent models:

Validation Rule

Use the ValidYaml rule directly or via the yaml string alias:

Features

Building Assets

The package ships with pre-compiled assets in resources/dist/. To rebuild after modifying JS or CSS sources:

For development with watch mode:

Testing

Code Quality

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 filament-yaml-editor with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
filament/filament Version ^5.0
spatie/laravel-package-tools Version ^1.16
symfony/yaml Version ^6.4|^7.0|^8.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 jeffersongoncalves/filament-yaml-editor contains the following files

Loading the files please wait ...