PHPackages                             iphper/stdin - 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. iphper/stdin

ActiveLibrary

iphper/stdin
============

1.0.0(2y ago)08MITPHP

Since Apr 25Pushed 2y ago1 watchersCompare

[ Source](https://github.com/iphper/stdin)[ Packagist](https://packagist.org/packages/iphper/stdin)[ RSS](/packages/iphper-stdin/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (3)Used By (0)

event-source
============

[](#event-source)

event-source 是简单的PHP服务端对于`SSE(Server-Sent Events)`的封装

\##安装

```
composer require iphper/stdin
```

使用示例
----

[](#使用示例)

```
use Stdin\Stdin;

$stdin = new Stdin();

// 获取一行数据
$line = $stdin->line('line:');
var_dump($line);

// 获取一个字符
$char = $stdin->char('char:');
var_dump($char);

// 获取多行数据【输入空行确认】
$arrr = $stdin->array('array:');
var_dump($arrr);

// 获取int类型数据
$int = $stdin->int('int:');
var_dump($int);

// 获取float类型数据
$float = $stdin->float('float:');
var_dump($float);

// 获取bool类型数据
$bool = $stdin->bool('bool:');
var_dump($bool);
```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

754d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5dc682b0aeb62c471051daab953810521b4150fd6647cdcd6e98bd45435abb8b?d=identicon)[iphper](/maintainers/iphper)

---

Top Contributors

[![iphper](https://avatars.githubusercontent.com/u/37887253?v=4)](https://github.com/iphper "iphper (1 commits)")

### Embed Badge

![Health badge](/badges/iphper-stdin/health.svg)

```
[![Health](https://phpackages.com/badges/iphper-stdin/health.svg)](https://phpackages.com/packages/iphper-stdin)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
