PHPackages                             istavros/polite - 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. istavros/polite

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

istavros/polite
===============

Let's make our code polite

1.0.3(1y ago)03MITPHPPHP ^8.1

Since Dec 16Pushed 1y ago1 watchersCompare

[ Source](https://github.com/istavros/polite)[ Packagist](https://packagist.org/packages/istavros/polite)[ RSS](/packages/istavros-polite/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (3)Used By (0)

Polite
======

[](#polite)

Let's make our code polite

You can wrap any object in a Polite wrapper and ask it to perform actions politely.

Installation
------------

[](#installation)

```
composer require istavros/polite

```

Example
-------

[](#example)

```
class Myclass {
    public function performAction()
    {
        // Do something;
        return 1;
    }
}

$object = Polite::wrap(MyClass::class);

$result = $object->couldYouPlease()->performAction();

// Expected $result == 1
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance40

Moderate activity, may be stable

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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 ~0 days

Total

2

Last Release

511d ago

### Community

Maintainers

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

---

Top Contributors

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

###  Code Quality

TestsPest

### Embed Badge

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

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

PHPackages © 2026

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