PHPackages                             asadali214/calculator - 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. [API Development](/categories/api)
4. /
5. asadali214/calculator

ActiveLibrary[API Development](/categories/api)

asadali214/calculator
=====================

Simple calculator API hosted on APIMATIC

v1.5.0(3y ago)03MITPHPPHP &gt;=7.2 &lt;8.2

Since Jun 14Pushed 3y ago1 watchersCompare

[ Source](https://github.com/asadali214/calculator)[ Packagist](https://packagist.org/packages/asadali214/calculator)[ Docs](https://www.apimatic.io)[ RSS](/packages/asadali214-calculator/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (7)Dependencies (4)Versions (8)Used By (0)

Getting Started with Calc
=========================

[](#getting-started-with-calc)

Introduction
------------

[](#introduction)

Simple calculator API hosted on [Packagist/asadali214](https://packagist.org/packages/asadali214/calculator)

Install the Package
-------------------

[](#install-the-package)

Run the following command to install the package and automatically add the dependency to your composer.json file:

```
composer require "asadali214/calculator:1.0.3"
```

Or add it to the composer.json file manually as given below:

```
"require": {
    "asadali214/calculator": "1.0.3"
}
```

You can also view the package at:

Initialize the API Client
-------------------------

[](#initialize-the-api-client)

***Note:*** Documentation for the client can be found [here.](doc/client.md)

The following parameters are configurable for the API Client:

ParameterTypeDescription`timeout``int`Timeout for API calls in seconds.
*Default*: `0``enableRetries``bool`Whether to enable retries and backoff feature.
*Default*: `false``numberOfRetries``int`The number of retries to make.
*Default*: `0``retryInterval``float`The retry time interval between the endpoint calls.
*Default*: `1``backOffFactor``float`Exponential backoff factor to increase interval between retries.
*Default*: `2``maximumRetryWaitTime``int`The maximum wait time in seconds for overall retrying requests.
*Default*: `0``retryOnTimeout``bool`Whether to retry on request timeout.
*Default*: `true``httpStatusCodesToRetry``array`Http status codes to retry against.
*Default*: `408, 413, 429, 500, 502, 503, 504, 521, 522, 524``httpMethodsToRetry``array`Http methods to retry against.
*Default*: `'GET', 'PUT'`The API client can be initialized as follows:

```
$client = CalcLib\CalcClientBuilder::init()
    ->timeout(1)
    ->build();
```

List of APIs
------------

[](#list-of-apis)

- [Simple Calculator](doc/controllers/simple-calculator.md)

Classes Documentation
---------------------

[](#classes-documentation)

- [ApiException](doc/api-exception.md)
- [HttpRequest](doc/http-request.md)
- [HttpResponse](doc/http-response.md)

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

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

Recently: every ~26 days

Total

7

Last Release

1313d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9dba5f4bc60505d53926e60266ed8fe98ccb6c494b4fe2ecebea4977e2a8c65e?d=identicon)[asadali214](/maintainers/asadali214)

---

Top Contributors

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

---

Tags

phpapisdkcalc

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/asadali214-calculator/health.svg)

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

###  Alternatives

[square/square

Use Square APIs to manage and run business including payment, customer, product, inventory, and employee management.

793.4M20](/packages/square-square)[bandwidth/sdk

Bandwidth's set of APIs

16948.8k1](/packages/bandwidth-sdk)

PHPackages © 2026

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