PHPackages                             kahyam/api - 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. kahyam/api

ActiveLibrary[API Development](/categories/api)

kahyam/api
==========

Kahyam API for Commercial Usage

v1.3(9y ago)018MITPHPPHP &gt;=5.6.13

Since Dec 22Pushed 9y ago1 watchersCompare

[ Source](https://github.com/alihuseyn/kahyam)[ Packagist](https://packagist.org/packages/kahyam/api)[ RSS](/packages/kahyam-api/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (3)Dependencies (1)Versions (6)Used By (0)

Kahyam
======

[](#kahyam)

Kahyam Commercial API
---------------------

[](#kahyam-commercial-api)

[![StyleCI Badge](https://camo.githubusercontent.com/2a848c13bef789c9b6863225400aefea048af63b11aff59ba121acaed6660743/68747470733a2f2f7374796c6563692e696f2f7265706f732f37353530363931302f736869656c643f7374796c653d666c61742d737175617265266272616e63683d6d6173746572)](https://styleci.io/repos/75506910/) ![Packagist](https://camo.githubusercontent.com/2c0ff3e890fab2085b8913455ee79cbe2782873619ec3a6bac9c184fa5e349fe/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6b616879616d2f6170692e7376673f7374796c653d666c61742d737175617265) ![Packagist](https://camo.githubusercontent.com/97c2c6551f4bed58638799f7417f3c55f55b4c8d9f4da71e7877f46b751d58a3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6b616879616d2f6170692e7376673f7374796c653d666c61742d737175617265)

---

With this package the kahyam api usage is simplified.

- Simple Request initialization
- Procedure for curl
- Response after request

Usage
-----

[](#usage)

### Installation

[](#installation)

```
$ composer require kahyam/api
```

### Method

[](#method)

```
PUT    = Kahyam\Request::PUT
POST   = Kahyam\Request::POST
DELETE = Kahyam\Request::DELETE
GET    = Kahyam\Request::GET
```

### Endpoint

[](#endpoint)

```
api/v1/sales = Kahyam\Endpoint::SALES
api/v1/hours = Kahyam\Endpoint::HOURS
api/v1/not_work_dates = Kahyam\Endpoint::HOLIDAYS
api/v1/reports = Kahyam\Endpoint::REPORTS
api/v1/places = Kahyam\Endpoint::PLACES
api/v1/confirmation = Kahyam\Endpoint::CONFIRM
```

### Code

[](#code)

```
$request = new \Kahyam\Request();
$request->setMethod(Kahyam\Request::PUT)
        ->setEndPoint(Kahyam\Endpoint::SALES)
        ->setParams('prettyPrint',true) # Setting Url Parameters
        ->setBody('phone','5331456147') # Setting Body Items
        ->setID('KHY0001638');          # Specifying Which Order

$api = new \Kahyam\API($username,$api_key); # initialization for API
$response = $api->setRequest($request)->getResponse(); # Get Response
```

### More Info

[](#more-info)

[www.kahyam.co](http://www.kahyam.co)

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity62

Established project with proven stability

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

Total

4

Last Release

3460d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/12074224?v=4)[Alihuseyn Gulmammadov](/maintainers/alihuseyn)[@alihuseyn](https://github.com/alihuseyn)

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/kahyam-api/health.svg)

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

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M19](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k11](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

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