sebastiaankloos / filament-code-editor
Code editor for Filament
Installs: 33 042
Dependents: 1
Suggesters: 0
Security: 0
Stars: 29
Watchers: 2
Forks: 7
Open Issues: 10
Requires
- php: ^8.1
- filament/filament: ^2.10|^3.0
- illuminate/contracts: ^9.0|^10.0
- spatie/laravel-package-tools: ^1.9.2
Requires (Dev)
- nunomaduro/collision: ^6.0
- nunomaduro/larastan: ^2.0.1
- orchestra/testbench: ^7.0|^8.0
- pestphp/pest: ^1.21
- pestphp/pest-plugin-laravel: ^1.1
- phpstan/extension-installer: ^1.1
- phpstan/phpstan-deprecation-rules: ^1.0
- phpstan/phpstan-phpunit: ^1.0
- phpunit/phpunit: ^9.6
- spatie/laravel-ray: ^1.26
README
This package provides a code editor form field type for Filament. It's based on CodeMirror 6.
Installation
You can install the package via composer:
composer require sebastiaankloos/filament-code-editor
Usage
use SebastiaanKloos\FilamentCodeEditor\Components\CodeEditor; CodeEditor::make('custom_css'),
If you are using this package without Filament Admin, you should add the JS file manually.
// You can add this to your app.js file require('../../vendor/sebastiaankloos/filament-code-editor/dist/filament-tools');
Testing
composer test
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.