Install KnpSnappyBundle
masterInstall the bundle using Composer. If your Symfony project does not use Flex, you must manually register the bundle in your kernel configuration.
composer require knplabs/knp-snappy-bundle// config/bundles.php
<?php
return [
//...
Knp\Bundle\SnappyBundle\KnpSnappyBundle::class => ['all' => true],
//...
];