PHPackages                             boonyaritth7/satung-rounding - 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. boonyaritth7/satung-rounding

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

boonyaritth7/satung-rounding
============================

v1.0.4(8y ago)037PHPPHP &gt;=5.3.0

Since Oct 4Pushed 8y ago1 watchersCompare

[ Source](https://github.com/BoonyaritTH7/satung-rounding)[ Packagist](https://packagist.org/packages/boonyaritth7/satung-rounding)[ RSS](/packages/boonyaritth7-satung-rounding/feed)WikiDiscussions master Synced today

READMEChangelog (3)DependenciesVersions (6)Used By (0)

Satung rounding
===============

[](#satung-rounding)

Calculate usable price

- 100.24 &gt;&gt; 100.25
- 0.78 &gt;&gt; 0.75
- 99.99 &gt;&gt; 100.00
- 24.33 &gt;&gt; 24.50
- 18.07 &gt;&gt; 18.00

Requirements
============

[](#requirements)

- PHP &gt;= 5.3.0

Installation
============

[](#installation)

```
composer require boonyaritth7/satung-rounding

```

Usage
=====

[](#usage)

```
use Satung\SatungRounding;

// Calculate
echo SatungRounding::calculate("99.99"); // You wil get 100
echo SatungRounding::calculate("99.68"); // You wil get 99.75
echo SatungRounding::calculate("99.42"); // You wil get 99.5
echo SatungRounding::calculate("99.32"); // You wil get 99.25
echo SatungRounding::calculate("99.11"); // You wil get 99

// Calculate include vat(%)
echo SatungRounding::calculate("99.99", 7); // You wil get 107
echo SatungRounding::calculate("99.68", 7); // You wil get 106.75
echo SatungRounding::calculate("99.42", 7); // You wil get 106.5
echo SatungRounding::calculate("99.32", 7); // You wil get 106.25
echo SatungRounding::calculate("99.11", 7); // You wil get 106

// Calculate include vat(%) and quantity
echo SatungRounding::calculate("99.99", 7, 3); // You wil get 321
echo SatungRounding::calculate("99.68", 7, 3); // You wil get 320.25
echo SatungRounding::calculate("99.42", 7, 3); // You wil get 319.5
echo SatungRounding::calculate("99.32", 7, 3); // You wil get 318.75
echo SatungRounding::calculate("99.11", 7, 3); // You wil get 318
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

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

Total

5

Last Release

3141d ago

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/boonyaritth7-satung-rounding/health.svg)

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

###  Alternatives

[botman/botman

Create messaging bots in PHP with ease.

6.2k1.5M97](/packages/botman-botman)[denngarr/seat-fitting

Module to check fittings per character

1433.3k2](/packages/denngarr-seat-fitting)[thedmsgroup/mautic-enhancer-bundle

Various contact enhancer integrations for Mautic.

342.8k](/packages/thedmsgroup-mautic-enhancer-bundle)[xi/breadcrumbs-bundle

Xi breadcrumbs bundle for Symfony2 that utilises routes as a tree to build the breadcrumbs in order to not pollute the controller actions with repetitive breadcrumbs code.

113.2k](/packages/xi-breadcrumbs-bundle)

PHPackages © 2026

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