⚠️ To ensure full functionality, the above dependencies might be required.
Package Description
Twigcs is a PHP library that enforces SEO-optimized coding standards for Twig templates in Symfony projects. It ensures clean, maintainable, and SEO-friendly code by checking for best practices and common mistakes. By integrating Twigcs in your workflow, you can enhance your SEO strategy and improve the overall quality of your Symfony applications.
Make sure to include the correct namespace and class paths for proper usage.
<?php
// Example from PHPlibraries.com
require_once 'libs/friendsoftwig/twigcs/6.5.0/loader.php';
require_once 'libs/twig/twig/{lib_version}/loader.php';
require_once 'libs/symfony/symfony/7.3.4/loader.php';
use Friendsoftwig\Twigcs\Twigcs;
$obj = new Twigcs();
echo '✅ Test OK: ' . get_class($obj);
?>
We aim to make using PHP packages easier without Composer. If something doesn't work, let us know — we'll fix it promptly.
Community Discussion
Ask questions, share tips, or report issues below.