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 2d ago

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

3143d 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

[phalcon/zephir

Zephir is a compiled high level language aimed to the creation of C-extensions for PHP

3.4k414.1k18](/packages/phalcon-zephir)[code-tool/jaeger-client-php

35520.8k9](/packages/code-tool-jaeger-client-php)[rafaelfragoso/haversini-formula

This PHP class can replace the Google Distance Matrix to calculate the distance between two points using latitude and longitude. It will prevent you to do massive requests to Google servers and enhance your service performance.

45212.0k](/packages/rafaelfragoso-haversini-formula)

PHPackages © 2026

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