initial commit

This commit is contained in:
Matthieu Bessat 2021-08-08 19:23:49 +02:00
commit b65642cd0a
18 changed files with 1543 additions and 0 deletions

View file

@ -0,0 +1,9 @@
<?php
$len = $_GET['length'] ?? 32;
$contains = isset($_GET['contains']) ? explode(',', $_GET['contains']) : ['digit', 'upper', 'lower', 'special'];
header('Content-Type: text/plain');
echo generateRandomString($len, $contains);

View file

@ -0,0 +1,23 @@
<?php
return [
'actions' => [
[
'name' => 'Generate alphanumerics',
'path' => '/?contains=digit,lower,upper'
],
[
'name' => 'More complex',
'path' => '/?contains=digit,lower,upper,special'
],
[
'name' => 'Change length',
'path' => '/?length=20'
]
],
'append' => function () {
?>
Of course, you can combine many parameters into one query.
<?php
}
];