PHPackages                             websupport/api\_php - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. websupport/api\_php

ActiveLibrary[HTTP &amp; Networking](/categories/http)

websupport/api\_php
===================

Wrapper around cURL for simpler REST API communication

v1.0.0(11y ago)64.9k2[1 PRs](https://github.com/websupport-sk/api_php/pulls)GPL-3.0+PHPPHP &gt;=5.3

Since Feb 28Pushed 11y ago8 watchersCompare

[ Source](https://github.com/websupport-sk/api_php)[ Packagist](https://packagist.org/packages/websupport/api_php)[ Docs](https://github.com/websupport-sk/api_php)[ RSS](/packages/websupport-api-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

### Instalation using composer

[](#instalation-using-composer)

Require composer package using terminal:

```
composer require websupport/api_php
```

Or add following to `composer.json` file in your project:

```
{
	"require" : {
		"websupport/api_php" : "~1.0"
	}
}
```

And then run:

```
composer update
```

**Note:** Requires PHP version 5.3 or higher and the PHP cURL extension

### Quick Start Example

[](#quick-start-example)

```
$api = new \websupport\RestConnection('https://rest.websupport.sk/v1/', 'login', 'pass');

// load user info
try {
	$userInfo = $api->get('user/self');
	var_dump($userInfo);
} catch (\websupport\RestException $e) {
	var_dump($e); // error via exception
}

// ordering domain
try {
	$orderInfo = $api->post('user/self/order', array(
		"services"=>array(
			array('type'=>'domain', 'domain'=>'newdomain.com')
		)
	));
	var_dump($orderInfo);
} catch (\websupport\RestException $e) {
	var_dump($e); // error via exception
}
```

### API Docs

[](#api-docs)

More detailed documentation of all api methods can be found at our [docs page](https://rest.websupport.sk/docs/index).

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

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

4095d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/28bb9421e26379323bdef64a21eac186c9cc32f2dd8fb1076abe2b66a171a185?d=identicon)[websupport](/maintainers/websupport)

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

![](https://avatars.githubusercontent.com/u/70426?v=4)[freezy](/maintainers/freezy)[@freezy](https://github.com/freezy)

---

Top Contributors

[![capkovic](https://avatars.githubusercontent.com/u/1078875?v=4)](https://github.com/capkovic "capkovic (3 commits)")[![tatarko](https://avatars.githubusercontent.com/u/1819801?v=4)](https://github.com/tatarko "tatarko (1 commits)")

### Embed Badge

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

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

###  Alternatives

[educoder/pest

A proper REST client for PHP.

358689.2k15](/packages/educoder-pest)[chuyskywalker/rolling-curl

Rolling-Curl: A non-blocking, non-dos multi-curl library for PHP

207446.6k6](/packages/chuyskywalker-rolling-curl)[unikent/curl

Laravel Curl Helper Library.

1442.4k](/packages/unikent-curl)

PHPackages © 2026

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