Download the PHP package timo-de-winter/filament-monaco-editor without Composer

On this page you can find all versions of the php package timo-de-winter/filament-monaco-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-monaco-editor

Filament Monaco Editor

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

A package to implement the monaco editor into a filament project. Including a morphable model to relate code to any model. Obviously, you can use only the editor without publishing and running the migrations for the morphable model.

Installation

You can install the package via composer:

You can publish and run the migrations with:

You can publish the config file with:

This is the contents of the published config file:

Optionally, you can publish the views using

Usage

You can use the monaco editor directly in a form.

Code compilation

This package also comes with features to compile code. At this moment we support compilation of the following:

Use as action

The package also comes with an action that you can add to your resources or pages.

In order to do this you should first add the following interface and trait to the model you want to use this on.

After doing that you can use both a table action and a default action.

By default, the code will be stored in the database under a specific collection. When not explicitly setting a collection we fall back to the language you use for the editor. However, you can explicitly set the collection as well (for example when you want to add the same language twice on the same model):

Using a grid within the actions

It is possible to use a (codepen like) grid in your actions by defining the collection as an array where key=collection and value=language.

If you want to set a default state for the different collections in the grid-style action you can do so like this:

Testing

Credits

License

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


All versions of filament-monaco-editor with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
filament/filament Version ^3.3
illuminate/contracts Version ^10.0||^11.0||^12.0
scssphp/scssphp Version ^2.0
spatie/laravel-package-tools Version ^1.16
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 timo-de-winter/filament-monaco-editor contains the following files

Loading the files please wait ....