PHPackages                             kfosoft/php-accept-ratio - 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. kfosoft/php-accept-ratio

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

kfosoft/php-accept-ratio
========================

PHP Screen Accept Ratio Helper

20.11(5y ago)041PHPPHP &gt;=7.4.0

Since Sep 25Pushed 5y ago1 watchersCompare

[ Source](https://github.com/kfosoft/php-accept-ratio)[ Packagist](https://packagist.org/packages/kfosoft/php-accept-ratio)[ RSS](/packages/kfosoft-php-accept-ratio/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (4)Used By (0)

PHP Screen Accept Ratio Helper
==============================

[](#php-screen-accept-ratio-helper)

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

[](#installation)

Installation with Composer

Either run

```
    php composer.phar require --prefer-dist kfosoft/php-accept-ratio:"*"

```

or add in composer.json

```
    "require": {
            ...
            "kfosoft/php-accept-ratio":"*"
    }

```

Well done!

#### Examples

[](#examples)

```
use KFOSOFT\Domain\Display\Value\DisplayAcceptRatio;

echo DisplayAcceptRatio::create(1366, 768)(); // 16:9
echo DisplayAcceptRatio::create(1280, 1024)->calculateRatio(); // 5:4

```

Enjoy, guys!

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity65

Established project with proven stability

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

Total

3

Last Release

1998d ago

Major Versions

1.0.1 → 20.112020-11-27

PHP version history (2 changes)1.0PHP &gt;=5.4.0

20.11PHP &gt;=7.4.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/3544388a2defce630d5b16fe9c38c91057278147939e8fac9a419386c3984a98?d=identicon)[kfosoft](/maintainers/kfosoft)

---

Top Contributors

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

---

Tags

phpratiophp ratiophp accept ratioaccept ratioscreen accept ratio

### Embed Badge

![Health badge](/badges/kfosoft-php-accept-ratio/health.svg)

```
[![Health](https://phpackages.com/badges/kfosoft-php-accept-ratio/health.svg)](https://phpackages.com/packages/kfosoft-php-accept-ratio)
```

###  Alternatives

[imanghafoori/laravel-anypass

A minimal yet powerful package to help you in development.

21421.6k](/packages/imanghafoori-laravel-anypass)

PHPackages © 2026

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