PHP code example of tobimori / kirby-paparazzi

1. Go to this page and download the library: Download tobimori/kirby-paparazzi 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/ */

    

tobimori / kirby-paparazzi example snippets




use tobimori\Paparazzi\Controller;

return Controller::run(width: 1200, height: 630);

<h1><?= $page->title() 



use Kirby\Cms\Page;

class ProjectPage extends Page
{
  public function metaDefaults()
  {
    return [
      'ogImage' => $this->url() . '.png'
    ];
  }
}