PHPackages                             sapien/sapien - 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. [API Development](/categories/api)
4. /
5. sapien/sapien

ActiveLibrary[API Development](/categories/api)

sapien/sapien
=============

Server API (SAPI) request and response objects for PHP.

1.1.2(1y ago)4553.1k—3.8%4[1 issues](https://github.com/sapienphp/sapien/issues)4MITPHPPHP ^8.1 | ^8.2 | ^8.3 | ^8.4CI passing

Since Nov 7Pushed 1y ago3 watchersCompare

[ Source](https://github.com/sapienphp/sapien)[ Packagist](https://packagist.org/packages/sapien/sapien)[ RSS](/packages/sapien-sapien/feed)WikiDiscussions 1.x Synced 1mo ago

READMEChangelog (4)Dependencies (5)Versions (5)Used By (4)

Sapien
======

[](#sapien)

This package provides server API (SAPI) request and response objects for PHP 8.1:

- *Sapien\\Request*, composed of readonly copies of PHP superglobals, and some other commonly-used values such as Accept, Forwarded, and Upload collections
- *Sapien\\Response*, a wrapper around (and buffer for) response-related PHP functions

These are *not* HTTP message objects proper. Instead, they are wrappers and buffers for existing global PHP variables and functions.

Install this package via Composer:

```
composer require sapien/sapien

```

Read the docs at .

###  Health Score

47

—

FairBetter than 94% of packages

Maintenance42

Moderate activity, may be stable

Popularity41

Moderate usage in the ecosystem

Community19

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor1

Top contributor holds 88.5% 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 ~296 days

Total

5

Last Release

469d ago

PHP version history (2 changes)1.0.0PHP &gt;=8.1

1.1.2PHP ^8.1 | ^8.2 | ^8.3 | ^8.4

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/25754?v=4)[Paul M. Jones](/maintainers/pmjones)[@pmjones](https://github.com/pmjones)

---

Top Contributors

[![pmjones](https://avatars.githubusercontent.com/u/25754?v=4)](https://github.com/pmjones "pmjones (23 commits)")[![harikt](https://avatars.githubusercontent.com/u/120454?v=4)](https://github.com/harikt "harikt (3 commits)")

---

Tags

php

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[facebook/php-business-sdk

PHP SDK for Facebook Business

90821.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

74513.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

265103.1M454](/packages/google-gax)[google/common-protos

Google API Common Protos for PHP

173103.7M50](/packages/google-common-protos)

PHPackages © 2026

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