PHP code example of leek / filament-giphy

1. Go to this page and download the library: Download leek/filament-giphy library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

leek / filament-giphy example snippets


use Filament\Forms\Components\RichEditor;
use Filament\Forms\Components\RichEditor\RichContentRenderer;
use Leek\FilamentGiphy\GiphyRichContentPlugin;

RichEditor::make('content')
    ->plugins([
        GiphyRichContentPlugin::make(),
    ]);

RichContentRenderer::make($record->content)
    ->plugins([
        GiphyRichContentPlugin::make(),
    ]);

use Leek\FilamentGiphy\FilamentGiphyPlugin;

$panel->plugin(
    FilamentGiphyPlugin::make()
        ->rating('pg-13')
        ->gridRendition('fixed_width')
        ->insertedRendition('original')
        ->modalIcon('heroicon-o-gif')
        ->modalIconColor('primary'),
);