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 today

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 41% of packages

Maintenance37

Infrequent updates — may be unmaintained

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

564d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2589281?v=4)[Stavros Ioannidis](/maintainers/istavros)[@istavros](https://github.com/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)
```

###  Alternatives

[creagia/filament-code-field

A Filamentphp input field to edit or view code data.

57307.1k3](/packages/creagia-filament-code-field)[element119/module-indexer-deploy-config

A Magento 2 module that allows developers to lock indexer modes via deployment config.

35151.9k](/packages/element119-module-indexer-deploy-config)[uma/composer-psysh

No-frills PsySH-Composer plugin

183.2k](/packages/uma-composer-psysh)

PHPackages © 2026

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