{"id":16673071,"url":"https://github.com/ph-7/passcode-password-generator","last_synced_at":"2025-11-05T04:02:10.870Z","repository":{"id":46779250,"uuid":"410518755","full_name":"pH-7/passcode-password-generator","owner":"pH-7","description":"🤗 A simple, secure \u0026 efficient way to generate passcodes and passwords for your PHP application 🔐","archived":false,"fork":false,"pushed_at":"2025-03-01T07:35:28.000Z","size":58,"stargazers_count":10,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-16T06:35:47.671Z","etag":null,"topics":["cryptographically-secure","cryptographically-secure-random","cryptography","passcode","passcode-generator","passcode-generator-php","password-generator","password-generator-php","php","random-passcode","random-passcode-generator","random-password","random-password-generator"],"latest_commit_sha":null,"homepage":"https://packagist.org/packages/ph-7/passcode-password-generator","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/pH-7.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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}},"created_at":"2021-09-26T10:20:53.000Z","updated_at":"2025-03-01T07:32:01.000Z","dependencies_parsed_at":"2024-06-09T03:24:07.641Z","dependency_job_id":"6bbfea62-5b99-45ca-b3cc-eed2e33329a5","html_url":"https://github.com/pH-7/passcode-password-generator","commit_stats":{"total_commits":59,"total_committers":4,"mean_commits":14.75,"dds":0.06779661016949157,"last_synced_commit":"fd235e45650e84da4f709e7e03be46c30e14ebc5"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pH-7%2Fpasscode-password-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pH-7%2Fpasscode-password-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pH-7%2Fpasscode-password-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pH-7%2Fpasscode-password-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pH-7","download_url":"https://codeload.github.com/pH-7/passcode-password-generator/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243955420,"owners_count":20374369,"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":["cryptographically-secure","cryptographically-secure-random","cryptography","passcode","passcode-generator","passcode-generator-php","password-generator","password-generator-php","php","random-passcode","random-passcode-generator","random-password","random-password-generator"],"created_at":"2024-10-12T12:24:26.398Z","updated_at":"2025-11-05T04:02:05.826Z","avatar_url":"https://github.com/pH-7.png","language":"PHP","readme":"# PHP Passcodes \u0026 Passwords Generator\n\n## 📄 Description\n\n*A simple, secure \u0026amp; clean way to generate random **passcodes** and **passwords** 🔑*\n\nThe library generates cryptographically secure random passwords and passcodes.\n\n[![Ko Fi - Offer Me A Coffee](media/kofi-logo.png)](https://ko-fi.com/phenry)\n\n\n## 🛠 Server Requirement\n\n* [PHP 7.3](https://php.net/releases/7_3_0.php) and higher 🚀\n\n\n## 🛠 Installation (with Composer)\n\n```bash\ncomposer require ph-7/passcode-password-generator\n```\n\n\n## 📄 Usage\n\n###  For Passcodes\n\n```php\nuse PH7\\Generator\\Passcode;\n\necho Passcode::generate(10); // Generate a 10-length passcode\n````\n\nBy default, without argument, the function will generate a 6-character passcode.\n```php\nuse PH7\\Generator\\Passcode;\n\n// By default, it generates a 6 length passcode\necho Passcode::generate();\n\n\n// You can use the public `Passcode::DEFAULT_LENGTH` const, whcih also gives a 6-length passcode\necho Passcode::generate(Passcode::DEFAULT_LENGTH);\n````\n\n###  For Passwords\n\n```php\nuse PH7\\Generator\\Password;\n\necho Password::generate(16); // Generate a 16-length password\n````\n\nBy default, generated passwords will contain special characters. You can disable them by mentioning the second argument to `false`\n```php\nuse PH7\\Generator\\Password;\n\n// The password won't contain any special characters such as -, _, ~, |, %, ^, !, $, #, @, and ?\necho Password::generate(Password::DEFAULT_LENGTH, false);\n````\n\nWithout argument, the function will generate a 12-character password.\n```php\nuse PH7\\Generator\\Password;\n\n// By default, it generates a 12-length password\necho Password::generate();\n\n\n// Password::DEFAULT_LENGTH also gives a 12-length password\necho Password::generate(Password::DEFAULT_LENGTH);\n````\n\n\n## 😋 Who cooked it?\n\n[![Pierre-Henry Soria](https://s.gravatar.com/avatar/a210fe61253c43c869d71eaed0e90149?s=200)](https://ph7.me \"Pierre-Henry Soria personal website\")\n\n\n[![@phenrysay][x-image]](https://x.com/phenrysay) [![pH-7][github-image]](https://github.com/pH-7) [![YouTube Tech Videos][youtube-icon]](https://www.youtube.com/@pH7Programming \"My YouTube Tech Channel\")\n\n**[Pierre-Henry Soria](https://ph7.me)**, a highly passionate, zen \u0026amp; pragmatic software engineer 😊\n\n☕️ Would like to help? **[Offer me a coffee](https://ko-fi.com/phenry)**, and boost the maintenance of this library! 💪\n\n\n## ⚖️ License\n\n**PHP Passcode/Password Generator** is generously distributed under the *[MIT](https://opensource.org/licenses/MIT)* 🎉\n\n\n\u003c!-- GitHub's Markdown reference links --\u003e\n[x-image]: https://img.shields.io/badge/x-000000?style=for-the-badge\u0026logo=x\u0026logoColor=white\n[github-image]: https://img.shields.io/badge/GitHub-100000?style=for-the-badge\u0026logo=github\u0026logoColor=white\n[youtube-icon]: https://img.shields.io/badge/YouTube-FF0000?style=for-the-badge\u0026logo=youtube\u0026logoColor=white\n","funding_links":["https://ko-fi.com/phenry","https://ko-fi.com/phenry)*"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fph-7%2Fpasscode-password-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fph-7%2Fpasscode-password-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fph-7%2Fpasscode-password-generator/lists"}