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. [Utility &amp; Helpers](/categories/utility)
4. /
5. iphper/stdin

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

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

1.0.0(2y ago)18MITPHP

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 yesterday

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 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

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

799d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/37887253?v=4)[iphper](/maintainers/iphper)[@iphper](https://github.com/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)
```

###  Alternatives

[krlove/code-generator

Code Generator

702.3M19](/packages/krlove-code-generator)[soloterm/screen

A terminal renderer written in pure PHP.

25011.3k1](/packages/soloterm-screen)[kocal/biome-js-bundle

A Symfony Bundle to easily download and use Biome.js in your Symfony applications, to lint your front assets without needing Node.js.

32191.1k6](/packages/kocal-biome-js-bundle)[treeware/plant

13359.8k7](/packages/treeware-plant)[kris/laravel4-form-builder

Laravel form builder - symfony like

229.3k](/packages/kris-laravel4-form-builder)

PHPackages © 2026

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