PHPbeginnercliAI generated

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

  1. 01

    Set up the CLI script

    ~1h

    Create a PHP script runnable via the php CLI with a shebang line and basic argument parsing.

  2. 02

    Implement secure generation

    ~1.5h

    Use random_bytes/random_int to generate passwords from configurable character pools.

  3. 03

    Add configuration options

    ~1.5h

    Support flags for length, including/excluding symbols, and number of passwords to generate.

  4. 04

    Add strength validation

    ~1h

    Ensure generated passwords include at least one character from each selected pool.

  5. 05

    Polish CLI output

    ~1h

    Format 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.

~6h · 5 steps

Tech stack

PHP CLI