{"id":25037303,"url":"https://github.com/dansvel/random-generator","last_synced_at":"2025-03-30T21:22:55.990Z","repository":{"id":56962243,"uuid":"271599946","full_name":"dansvel/random-generator","owner":"dansvel","description":"PHP random string generator, readable and not","archived":false,"fork":false,"pushed_at":"2020-11-15T14:35:11.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-06T01:33:18.032Z","etag":null,"topics":["composer-package","php","php-package"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dansvel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-06-11T16:52:26.000Z","updated_at":"2020-11-15T14:35:13.000Z","dependencies_parsed_at":"2022-08-21T10:20:44.505Z","dependency_job_id":null,"html_url":"https://github.com/dansvel/random-generator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dansvel%2Frandom-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dansvel%2Frandom-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dansvel%2Frandom-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dansvel%2Frandom-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dansvel","download_url":"https://codeload.github.com/dansvel/random-generator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246380537,"owners_count":20767868,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["composer-package","php","php-package"],"created_at":"2025-02-06T01:30:54.863Z","updated_at":"2025-03-30T21:22:55.970Z","avatar_url":"https://github.com/dansvel.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PHP random string generator, readable and not\n\nThis random generator can generate string for human readable or indecipherable.\n\n## Installation\n\nYou can install the package via composer:\n\n```bash\ncomposer require dansvel/random-generator\n```\n\n## Usage\n\n``` php\nuse dansvel\\RandomGenerator\\Random;\n```\n\n### Human readable\n\nIt will generate a word using combination of vowels and consonants\n\n```php\n$composition = [\n    3 =\u003e ['cvc'],\n    4 =\u003e ['cvcv', 'vccv', 'vcvc'],\n    5 =\u003e ['cvcvc', 'cvccv', 'vccvc', 'vcvcv'],\n    6 =\u003e ['cvcvcv', 'cvccvc', 'vcvcvc', 'vccvcv']\n];\n```\n\nExample :\n\n```php\necho Random::humane(3); // yuk\necho Random::humane(4); // exem\necho Random::humane(5); // idova\necho Random::humane(6); // juplis\n```\n\n### Inhumane, indecipherable\n\nIt will generate random characters according to the type you want.\n\nExample :\n\n```php\necho Random::inhumane(16,'0'); // 5370719465476519\necho Random::inhumane(16,'a'); // kaqotdyeyfauztls\necho Random::inhumane(16,'A'); // IWJLLMBWSTTLCMFM\necho Random::inhumane(16,'aA'); // soMSTjnaiBHkczhx\necho Random::inhumane(16,'0A'); // WQT4I4O2BWHCUAVJ\necho Random::inhumane(16,'0aA'); // aa9LyynlVmfjA4Ht\n// you can use combination of 0 a and A in unordered\n```\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdansvel%2Frandom-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdansvel%2Frandom-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdansvel%2Frandom-generator/lists"}