PHPackages                             bear/project - 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. bear/project

ActiveProject

bear/project
============

BEAR.Sunday psr7 skeleton.

0.2.0(8y ago)267[1 issues](https://github.com/bearsunday/BEAR.Project/issues)MITPHPPHP &gt;=7.0.0

Since Oct 19Pushed 8y ago2 watchersCompare

[ Source](https://github.com/bearsunday/BEAR.Project)[ Packagist](https://packagist.org/packages/bear/project)[ RSS](/packages/bear-project/feed)WikiDiscussions 1.x Synced 1mo ago

READMEChangelog (2)Dependencies (4)Versions (3)Used By (0)

A PSR-7 BEAR.Sunday application project skeleton
================================================

[](#a-psr-7-bearsunday-application-project-skeleton)

Installing BEAR.Sunday PSR-7 application
----------------------------------------

[](#installing-bearsunday-psr-7-application)

```
composer create-project bear/project MyVendor.MyProject
cd MyVendor.MyProject
php -S 127.0.0.1:8080 -t public

```

PHP Streams for message bodies
------------------------------

[](#php-streams-for-message-bodies)

```
class Index extends ResourceObject
{
    public function onGet(string $name = 'BEAR.Sunday') : ResourceObject
    {
        $fp = fopen(__DIR__ . '/image.jpg', 'r');
        stream_filter_append($fp, 'convert.base64-encode');
        $this->body = [
            'greting' => 'Hello ' . $name,
            'image' => $fp
        ];

        return $this;
    }
}
```

```
// curl -i http://127.0.0.1:8080

HTTP/1.1 200 OK
Host: 127.0.0.1:8080
Connection: close
X-Powered-By: PHP/5.6.8
Content-Type: application/json

{"greeting":"Hello BEAR.Sunday","image":"/9j/4AAQZJ ... rpu/l56H//Z"}

```

Documentation
-------------

[](#documentation)

You can read the documentation [here](http://bearsunday.github.io/).

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity49

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

Every ~338 days

Total

3

Last Release

3188d ago

Major Versions

0.2.0 → 1.x-dev2017-08-26

PHP version history (2 changes)0.1.0PHP &gt;=5.5.0

0.2.0PHP &gt;=7.0.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/db4fc75ffc631168d0d7143b6f2c24b1534dfb921212bd851c026c5cbbb1344d?d=identicon)[koriym](/maintainers/koriym)

---

Top Contributors

[![koriym](https://avatars.githubusercontent.com/u/529021?v=4)](https://github.com/koriym "koriym (25 commits)")

---

Tags

bearsundaypsr7-middlewareskeleton-application

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/bear-project/health.svg)

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

###  Alternatives

[bear/skeleton

Skeleton application for BEAR.Sunday

1315.6k1](/packages/bear-skeleton)

PHPackages © 2026

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