PHPackages                             servicestack/gistcafe - 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. servicestack/gistcafe

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

servicestack/gistcafe
=====================

gist.cafe utils for PHP

0.0.2(5y ago)029BSD-3-Clause-AttributionPHP &gt;=5.3.0

Since Jan 27Compare

[ Source](https://github.com/ServiceStack/gistcafe-php)[ Packagist](https://packagist.org/packages/servicestack/gistcafe)[ RSS](/packages/servicestack-gistcafe/feed)WikiDiscussions Synced today

READMEChangelogDependenciesVersions (3)Used By (0)

Useful [gist.cafe](https://gist.cafe) utils for PHP Apps.

Usage
-----

[](#usage)

Simple Usage Example:

```
require __DIR__ . '/vendor/autoload.php';

use gistcafe\Inspect;

$orgName = "php";

$opts = [
    "http" => [
        "header" => "User-Agent: gist.cafe\r\n"
    ]
];
$context = stream_context_create($opts);
$json = file_get_contents("https://api.github.com/orgs/{$orgName}/repos", false, $context);
$orgRepos = array_map(function($x) {
    $x = get_object_vars($x);
    return [
        "name"        => $x["name"],
        "description" => $x["description"],
        "url"         => $x["url"],
        "lang"        => $x["language"],
        "watchers"    => $x["watchers"],
        "forks"       => $x["forks"],
    ];
}, json_decode($json));
usort($orgRepos, function($a,$b) { return $b["watchers"] - $a["watchers"]; });

echo  "Top 3 {$orgName} GitHub Repos:\n";
Inspect::printDump(array_slice($orgRepos, 0, 3));

echo  "\nTop 10 {$orgName} GitHub Repos:\n";
Inspect::printDumpTable(array_map(function($x) {
    return [
        "name"        => $x["name"],
        "lang"        => $x["lang"],
        "watchers"    => $x["watchers"],
        "forks"       => $x["forks"],
    ];
}, array_slice($orgRepos, 0, 10)));
```

Which outputs:

```
Top 3 php GitHub Repos:
[
    {
        name: php-src,
        description: The PHP Interpreter,
        url: https://api.github.com/repos/php/php-src,
        lang: C,
        watchers: 29300,
        forks: 6484
    },
    {
        name: web-php,
        description: The www.php.net site,
        url: https://api.github.com/repos/php/web-php,
        lang: PHP,
        watchers: 565,
        forks: 344
    },
    {
        name: php-gtk-src,
        description: The PHP GTK Bindings,
        url: https://api.github.com/repos/php/php-gtk-src,
        lang: C++,
        watchers: 192,
        forks: 48
    }
]

Top 10 php GitHub Repos:
+------------------------------------------------+
|      name      |    lang    | watchers | forks |
|------------------------------------------------|
| php-src        | C          |    29300 |  6484 |
| web-php        | PHP        |      565 |   344 |
| php-gtk-src    | C++        |      192 |    48 |
| web-qa         | PHP        |       61 |    32 |
| phd            | PHP        |       55 |    25 |
| web-bugs       | PHP        |       45 |    55 |
| web-doc-editor | JavaScript |       42 |    29 |
| presentations  | HTML       |       42 |    19 |
| web-wiki       | PHP        |       31 |    19 |
| systems        | C          |       26 |    11 |
+------------------------------------------------+

```

Features and bugs
-----------------

[](#features-and-bugs)

Please file feature requests and bugs to the [issue tracker](https://github.com/ServiceStack/gistcafe-php/issues).

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 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

Every ~0 days

Total

2

Last Release

1983d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1ac0a99be24cc936b859e619e01de4e15d51afc435becc41a914e44cb6acc690?d=identicon)[servicestack](/maintainers/servicestack)

---

Top Contributors

[![mythz](https://avatars.githubusercontent.com/u/89361?v=4)](https://github.com/mythz "mythz (5 commits)")

### Embed Badge

![Health badge](/badges/servicestack-gistcafe/health.svg)

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

###  Alternatives

[magestat/module-facebook-pixel

This extension allows you integrate the Facebook pixel to track your website visitors' actions.

37111.8k](/packages/magestat-module-facebook-pixel)[bolt/forms

📦 This Bolt extension can be used to handle forms in your Bolt project.

2225.1k1](/packages/bolt-forms)

PHPackages © 2026

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