{"id":15917522,"url":"https://github.com/takuya/php-random-string","last_synced_at":"2025-07-11T16:15:09.292Z","repository":{"id":65380556,"uuid":"591236806","full_name":"takuya/php-random-string","owner":"takuya","description":"Generates random string.","archived":false,"fork":false,"pushed_at":"2025-06-09T11:13:51.000Z","size":61,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-09T12:26:04.755Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/takuya.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-01-20T09:00:05.000Z","updated_at":"2025-06-09T11:13:55.000Z","dependencies_parsed_at":"2023-02-19T06:45:40.188Z","dependency_job_id":"78c284ac-8a5a-462d-a750-d0c84187ac2b","html_url":"https://github.com/takuya/php-random-string","commit_stats":{"total_commits":25,"total_committers":2,"mean_commits":12.5,"dds":0.48,"last_synced_commit":"c3a81639a2653fe30d123fc8492b56f100382cbf"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/takuya/php-random-string","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takuya%2Fphp-random-string","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takuya%2Fphp-random-string/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takuya%2Fphp-random-string/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takuya%2Fphp-random-string/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/takuya","download_url":"https://codeload.github.com/takuya/php-random-string/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takuya%2Fphp-random-string/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264851081,"owners_count":23673234,"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":[],"created_at":"2024-10-06T18:11:14.365Z","updated_at":"2025-07-11T16:15:09.267Z","avatar_url":"https://github.com/takuya.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\n![](https://github.com/takuya/php-random-string/workflows/main/badge.svg)\n\n\n### Examples \n```php\nuse Takuya\\RandomString\\RandomString;\n// use class\nRandomString::gen();\nRandomString::gen(20,RandomString::ALPHA_NUM);\nRandomString::gen(20,RandomString::ALPHA);\nRandomString::gen(20,RandomString::ALPHA|RandomString::SYMBOLS);\nRandomString::gen(20,RandomString::LOWER|RandomString::SYMBOLS);\nRandomString::gen(20,RandomString::UPPER|RandomString::NUMBER);\n// use helper generates randomized ALPHA_NUM.\n$str = random_string(20);\n$str = random_string(10);\n```\n\nCHARACTERS\n```\nALPHA_NUM = (LOWER | UPPER | NUMBER)\nALPHA     = (LOWER | UPPER)\nLOWER     = ( a, b, c ...z )\nUPPER     = ( A, B, C ...Z )\nNUMBER    = ( 0, 1, 2,...9 )\n```\nSYMBOL\n```\nSYMBOL = \n+ array_map( 'chr' , range( 33, 47 ) // !\"#$%\u0026'()*+,-./ \n+ array_map( 'chr' , range( 91, 96 ) // [\\]^_`\n+ array_map( 'chr' , range(123,126 ) // {|}~ \n```\n\n### Installing\nfrom github\n\n```\ncomposer config repositories.'php-random-string' \\\nvcs https://github.com/takuya/php-random-string  \ncomposer require takuya/php-random-string:master\ncomposer install\n```\nfrom packagist\n\n```\ncomposer require takuya/php-random-string\n```\n### Testing\n```\ngit clone https://github.com/takuya/php-random-string\ncd php-cert-checker\ncomposer install\nvendor/bin/phpunit\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftakuya%2Fphp-random-string","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftakuya%2Fphp-random-string","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftakuya%2Fphp-random-string/lists"}