awcodes/filament-oembed

This is my package filament-oembed

v1.1.1 2023-02-16 15:25 UTC

README

Latest Version on Packagist Total Downloads

Installation

You can install the package via composer:

composer require awcodes/filament-oembed

Optionally, you can publish the views, assets or translations using:

php artisan vendor:publish --tag=filament-oembed-assets
php artisan vendor:publish --tag=filament-oembed-translations
php artisan vendor:publish --tag=filament-oembed-views

Theming

If you are using a custom theme for Filament you will need to add this plugin's views to your Tailwind CSS config. Once this is done you may disable the plugin's stylesheet in the config file by changing 'load_styles' to false.

content: [
    ...
    "./vendor/awcodes/filament-oembed/resources/views/**/*.blade.php",
],

Usage

video-embed

Allows an oEmbed video with preview. Only supports YouTube and Vimeo at the moment.

use Awcodes\FilamentOembed\Forms\Components\OEmbed;

OEmbed::make(string $fieldname)

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.