PHPackages                             seld/cli-prompt - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [CLI &amp; Console](/categories/cli)
4. /
5. seld/cli-prompt

ActiveLibrary[CLI &amp; Console](/categories/cli)

seld/cli-prompt
===============

Allows you to prompt for user input on the command line, and optionally hide the characters they type

1.0.4(5y ago)24726.4M↓30.2%715MITPHPPHP &gt;=5.3

Since Apr 30Pushed 1y ago4 watchersCompare

[ Source](https://github.com/Seldaek/cli-prompt)[ Packagist](https://packagist.org/packages/seld/cli-prompt)[ RSS](/packages/seld-cli-prompt/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (3)Dependencies (1)Versions (6)Used By (15)

CLI-Prompt
==========

[](#cli-prompt)

While prompting for user input using `fgets()` is quite easy, sometimes you need to prompt for sensitive information. In these cases, the characters typed in by the user should not be directly visible, and this is quite a pain to do in a cross-platform way.

This tiny package fixes just that for you:

```
