PHPackages                             vstaran/mycalc - 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. vstaran/mycalc

ActiveLibrary

vstaran/mycalc
==============

PHP calculator class which will accept two values as arguments then add, subtract, multiply or divide them

1.0.0(4y ago)05MITPHPPHP &gt;=7.1

Since Oct 25Pushed 4y ago1 watchersCompare

[ Source](https://github.com/vstaran/php-mycalc-pkg)[ Packagist](https://packagist.org/packages/vstaran/mycalc)[ RSS](/packages/vstaran-mycalc/feed)WikiDiscussions main Synced 4w ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

Калькулятор
===========

[](#калькулятор)

Класс калькулятора PHP, который будет принимать два значения в качестве аргументов, и складывать, вычитать, умножать и делить их.

```
$mycalc = new MyCalc(12, 6);
```

Складывать:

```
echo $mycalc->add();
```

Вычитать:

```
echo $mycalc->subtract();
```

Умножать:

```
echo $mycalc->multiply();
```

Делить:

```
echo $mycalc->divide();
```

Подключение
-----------

[](#подключение)

В зависимости он нужного способа подключения, добавить в файл composer.json

Через packagist.org:

```
"require": {
  "vstaran/mycalc": "*"
}
```

Через github:

```
"repositories": [
  {
     "type":"github",
     "url":"git@github.com:vstaran/php-mycalc-pkg.git"
  }
]
```

Через файловую систему:

```
"repositories": [
  {
     "type":"path",
     "url":"/home/project-name"
  }
]
```

после добавления исполнить команду:

```
composer update
```

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity45

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

Unknown

Total

1

Last Release

1657d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/64c15a04cbd786f95310d54cf84782ef6b8c49135c7f8016f554a549f9b65e3e?d=identicon)[vstaran](/maintainers/vstaran)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/vstaran-mycalc/health.svg)

```
[![Health](https://phpackages.com/badges/vstaran-mycalc/health.svg)](https://phpackages.com/packages/vstaran-mycalc)
```

PHPackages © 2026

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