PHP code example of guym4c / twig-prop-types
1. Go to this page and download the library: Download guym4c/twig-prop-types 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/ */
guym4c / twig-prop-types example snippets
$twigEnv->addExtension(new Guym4c\TwigProps\PropTypesExtension($twigEnv, $bypass));
public function __construct(
Twig\Environment $view,
bool $bypass,
string $typesGlobal = 'PropTypes',
array $exclude = [],
bool $allowExtraProperties = false
) {