PHP code example of heimrichhannot / contao-code-generator-bundle
1. Go to this page and download the library: Download heimrichhannot/contao-code-generator-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/ */
heimrichhannot / contao-code-generator-bundle example snippets
use HeimrichHannot\CodeGeneratorBundle\Code\Criteria;
use HeimrichHannot\CodeGeneratorBundle\Code\Generator;
class Example
{
public function __construct(
private readonly Generator $generator
) {}
public function generatePasswort(): string
{
$criteria = new Criteria();
$criteria->allowSymbols = true;
$criteria->length = 14;
$criteria->