PHPackages                             muhamza/calculator-package-v-1-php-sdk - 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. muhamza/calculator-package-v-1-php-sdk

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

muhamza/calculator-package-v-1-php-sdk
======================================

Use the calculator api to perform arithmetic between two numbers

1.0.6(1y ago)00MITPHPPHP ^7.2 || ^8.0

Since Apr 23Pushed 1y ago1 watchersCompare

[ Source](https://github.com/MuHamza30/calculator-package-v-1-php-php-sdk)[ Packagist](https://packagist.org/packages/muhamza/calculator-package-v-1-php-sdk)[ Docs](https://www.apimatic.io)[ RSS](/packages/muhamza-calculator-package-v-1-php-sdk/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (5)Versions (7)Used By (0)

Getting Started with APIMATIC Calculator
========================================

[](#getting-started-with-apimatic-calculator)

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

[](#introduction)

Simple calculator API hosted on APIMATIC

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 "muhamza/calculator-package-v-1-php-sdk:1.0.5"
```

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

```
"require": {
    "muhamza/calculator-package-v-1-php-sdk": "1.0.5"
}
```

You can also view the package at:

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

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

***Note:*** Documentation for the client can be found [here.](https://www.github.com/MuHamza30/calculator-package-v-1-php-php-sdk/tree/1.0.5/doc/client.md)

The following parameters are configurable for the API Client:

ParameterTypeDescriptionenvironment`Environment`The API environment.
 **Default: `Environment.PRODUCTION`**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'`proxyConfiguration[`ProxyConfigurationBuilder`](https://www.github.com/MuHamza30/calculator-package-v-1-php-php-sdk/tree/1.0.5/doc/proxy-configuration-builder.md)Represents the proxy configurations for API callsThe API client can be initialized as follows:

```
$client = APIMATICCalculatorClientBuilder::init()
    ->environment(Environment::PRODUCTION)
    ->build();
```

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

[](#list-of-apis)

- [Simple Calculator](https://www.github.com/MuHamza30/calculator-package-v-1-php-php-sdk/tree/1.0.5/doc/controllers/simple-calculator.md)

SDK Infrastructure
------------------

[](#sdk-infrastructure)

### Configuration

[](#configuration)

- [ProxyConfigurationBuilder](https://www.github.com/MuHamza30/calculator-package-v-1-php-php-sdk/tree/1.0.5/doc/proxy-configuration-builder.md)

### HTTP

[](#http)

- [HttpRequest](https://www.github.com/MuHamza30/calculator-package-v-1-php-php-sdk/tree/1.0.5/doc/http-request.md)
- [HttpResponse](https://www.github.com/MuHamza30/calculator-package-v-1-php-php-sdk/tree/1.0.5/doc/http-response.md)

### Utilities

[](#utilities)

- [ApiException](https://www.github.com/MuHamza30/calculator-package-v-1-php-php-sdk/tree/1.0.5/doc/api-exception.md)

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance48

Moderate activity, may be stable

Popularity0

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity46

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

Every ~0 days

Total

6

Last Release

385d ago

### Community

Maintainers

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

---

Top Contributors

[![MuHamza30](https://avatars.githubusercontent.com/u/199583608?v=4)](https://github.com/MuHamza30 "MuHamza30 (5 commits)")

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/muhamza-calculator-package-v-1-php-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/muhamza-calculator-package-v-1-php-sdk/health.svg)](https://phpackages.com/packages/muhamza-calculator-package-v-1-php-sdk)
```

###  Alternatives

[square/square

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

793.4M21](/packages/square-square)[paypal/paypal-server-sdk

PayPal's SDK for interacting with the REST APIs

53456.5k3](/packages/paypal-paypal-server-sdk)

PHPackages © 2026

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