PHP code example of phil / embed-bundle

1. Go to this page and download the library: Download phil/embed-bundle 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/ */

    

phil / embed-bundle example snippets


#[Route('/embed/calendar', defaults: ['_embed' => 'calendar'])]
public function calendar(): Response { /* the page, with phil_embed_frame_attributes() on <html> */ }
twig
<pre>{{ phil_embed_code('calendar', 'https://partner.example', 'calendar_embed', {}, url('calendar'), 'Our calendar') }}</pre>