PHPackages                             cloudmario/yeah - 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. cloudmario/yeah

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

cloudmario/yeah
===============

1.0.0(10y ago)031MITPHPPHP &gt;=5.3.0

Since Aug 19Pushed 10y ago1 watchersCompare

[ Source](https://github.com/CloudSide/yeah)[ Packagist](https://packagist.org/packages/cloudmario/yeah)[ Docs](https://github.com/CloudSide/yeah)[ RSS](/packages/cloudmario-yeah/feed)WikiDiscussions master Synced today

READMEChangelog (1)DependenciesVersions (2)Used By (0)

Yeah
====

[](#yeah)

[![Latest Stable Version](https://camo.githubusercontent.com/411a8556aacc161db94681e57cb300edd91646256228c8799a46198900ee1cb7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f636c6f75646d6172696f2f796561682e737667)](https://packagist.org/packages/cloudmario/yeah)[![Latest Stable Version](https://camo.githubusercontent.com/a64a13e0f142b508dc4d03d7b975f6a4f742a0df021d2f865712ff09348edadd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f767072652f636c6f75646d6172696f2f796561682e737667)](https://packagist.org/packages/cloudmario/yeah)[![Total Downloads](https://camo.githubusercontent.com/12e6d05225122ffb3bdfb27e41d1c66eb52eeea6994c5a85e2bd6ecdea3ff06a/68747470733a2f2f706f7365722e707567782e6f72672f636c6f75646d6172696f2f796561682f646f776e6c6f616473)](https://packagist.org/packages/cloudmario/yeah)[![License](https://camo.githubusercontent.com/f74e5e4c26038209d3eb32ff555ffac084b2f500daacbfc3b44a82656c88e872/68747470733a2f2f706f7365722e707567782e6f72672f636c6f75646d6172696f2f796561682f6c6963656e7365)](https://packagist.org/packages/cloudmario/yeah)

Execute a command and provides a much greater degree of control over the program execution.

#### Requirements

[](#requirements)

- PHP &gt;= 5.3.0

#### Introduction

[](#introduction)

use composer composer.json:

```
"require": {
	"cloudmario/yeah": "dev-master"
}
```

#### Usage

[](#usage)

- Simple

```
$p = new Yeah("/bin/bash");
list($pid, $stdin, $stdout, $stderr) = array($p->pid(), $p->stdin(), $p->stdout(), $p->stderr());

fwrite($stdin, "echo 42.out\n");
fwrite($stdin, "echo 42.err 1>&2\n");
fclose($stdin);

echo "pid    : " . $pid."\n";
echo "stdout : " . trim(fread($stdout, 1024)) . "\n";
echo "stderr : " . trim(fread($stderr, 1024)) . "\n";
echo "status : " . trim(print_r($p->status(), true)) . "\n";
```

- Block

```
$status = Yeah::yeah("/bin/bash", function($pid, $stdin, $stdout, $stderr) {

	fwrite($stdin, "echo 42.out\n");
	fwrite($stdin, "echo 42.err 1>&2\n");
	fclose($stdin);

	echo "pid    : " . $pid . "\n";
	echo "stdout : " . trim(fread($stdout, 1024)) . "\n";
	echo "stderr : " . trim(fread($stderr, 1024)) . "\n";

	/*
	while ( !feof($stdout) ) {
		$out .= fgets($stdout, 2048);
	}
	*/

});

echo "status : " . trim(print_r($status, true)) . "\n";
```

[![](https://camo.githubusercontent.com/3d7ad1313757eec59c1a1fa89f312709ca84d514c002bdb3e7773a2915f91256/687474703a2f2f736572766963652e742e73696e612e636f6d2e636e2f7769646765742f716d642f313635363336303932352f30323738316261342f342e706e67)](http://weibo.com/smcz)

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

3971d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0af04f554606a0f1f3ecf3a7043c27f69e0e9431f8f5ab59ef4677596b5c0e1c?d=identicon)[CloudSide](/maintainers/CloudSide)

---

Top Contributors

[![CloudSide](https://avatars.githubusercontent.com/u/1386799?v=4)](https://github.com/CloudSide "CloudSide (7 commits)")

---

Tags

cloudpopenyeah

### Embed Badge

![Health badge](/badges/cloudmario-yeah/health.svg)

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

###  Alternatives

[alibabacloud/sdk

Alibaba Cloud SDK for PHP - Easier to Use Alibaba Cloud in your PHP project

5292.2M47](/packages/alibabacloud-sdk)[sixty-nine/php-cloud-lib

A library to generate words clouds in PHP

2012.4k](/packages/sixty-nine-php-cloud-lib)

PHPackages © 2026

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