PHP code example of kurban / filament-easter

1. Go to this page and download the library: Download kurban/filament-easter 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/ */

    

kurban / filament-easter example snippets


    FilamentEasterPlugin::make()
        ->keys(['ArrowUp', 'ArrowUp', 'ArrowDown', 'ArrowDown', 'ArrowLeft', 'ArrowRight', 'ArrowLeft', 'ArrowRight', 'b', 'a'])
        ->backgroundImage('https://m.media-amazon.com/images/I/A13qABV+icL.png')
        ->modalContent([
            'title' => 'Easter Cat Found! 🐱',
            'content' => 'Congratulations! You\'ve discovered the hidden Easter Cat. Meow!',
            'footer' => 'Share this secret with fellow cat lovers!'
        ]),

keys(): Set the key sequence to trigger the Easter egg.
backgroundImage(): Set the background image URL for the modal.
modalContent(): Set the content of the modal, including title, content, and footer.