PHPackages                             coding-ninja/calculate - 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. coding-ninja/calculate

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

coding-ninja/calculate
======================

Do some basic calculations

01PHP

Since Sep 10Pushed 5y ago1 watchersCompare

[ Source](https://github.com/gurpreetindybytes/calculate)[ Packagist](https://packagist.org/packages/coding-ninja/calculate)[ RSS](/packages/coding-ninja-calculate/feed)WikiDiscussions master Synced 5d ago

READMEChangelogDependenciesVersions (1)Used By (0)

You can do some basic calculations by using this package
========================================================

[](#you-can-do-some-basic-calculations-by-using-this-package)

### To install this package run the following command

[](#to-install-this-package-run-the-following-command)

` composer require coding-ninja/calculate=dev-master`

### Load the file into your php project by following code

[](#load-the-file-into-your-php-project-by-following-code)

```
  require_once __DIR__ . './vendor/autoload.php';
  use Calculation\Calculate;

```

### Following methods are available in this package

[](#following-methods-are-available-in-this-package)

#### To calculate the area

[](#to-calculate-the-area)

` Calculate::area(height,width)`

#### To calculate the radius

[](#to-calculate-the-radius)

` Calculate::radius(diameter)`

#### To calculate the percentage

[](#to-calculate-the-percentage)

` Calculate::percentage(total_marks,obtained_marks)`

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity32

Early-stage or recently created project

 Bus Factor1

Top contributor holds 66.7% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/c2dee5253b41ba1519f171a621be37eac03c77fd825d8cf353399a84c4a460b5?d=identicon)[gurpreet.indybytes](/maintainers/gurpreet.indybytes)

---

Top Contributors

[![gurpreetindybytes](https://avatars.githubusercontent.com/u/43643032?v=4)](https://github.com/gurpreetindybytes "gurpreetindybytes (2 commits)")[![info3g](https://avatars.githubusercontent.com/u/17335074?v=4)](https://github.com/info3g "info3g (1 commits)")

### Embed Badge

![Health badge](/badges/coding-ninja-calculate/health.svg)

```
[![Health](https://phpackages.com/badges/coding-ninja-calculate/health.svg)](https://phpackages.com/packages/coding-ninja-calculate)
```

###  Alternatives

[inc2734/wp-breadcrumbs

A library for WordPress breadcrumbs.

1543.1k1](/packages/inc2734-wp-breadcrumbs)

PHPackages © 2026

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