Command-Line Password Generator Tool
Build a PHP CLI script that generates cryptographically secure random passwords with configurable length and character sets, and can produce multiple passwords at once. Learners practice PHP CLI scripting, cryptographically secure randomness, and argument parsing.
- Estimate
- ~6h
- Steps
- 5
- Completed by
- 0
- Proposed by
- codeseed.app
PHP CLI
Project roadmap
- 01
Set up the CLI script
~1hCreate a PHP script runnable via the php CLI with a shebang line and basic argument parsing.
- 02
Implement secure generation
~1.5hUse random_bytes/random_int to generate passwords from configurable character pools.
- 03
Add configuration options
~1.5hSupport flags for length, including/excluding symbols, and number of passwords to generate.
- 04
Add strength validation
~1hEnsure generated passwords include at least one character from each selected pool.
- 05
Polish CLI output
~1hFormat output cleanly and add a --help flag documenting usage.
Resources
Ready to build this?
Get a GitHub repo and start building. Your AI reviewer checks each step as you go.
Tech stack