PHPackages                             cct-marketing/rest-exception-handler - 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. cct-marketing/rest-exception-handler

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

cct-marketing/rest-exception-handler
====================================

An exception handler used to handle and parse all errors from the rest lib requests

v2.0.0(2y ago)06.8k↓84.4%MITPHPPHP ~7.4|~8.0

Since Apr 9Pushed 2y ago1 watchersCompare

[ Source](https://github.com/cct-marketing/rest-exception)[ Packagist](https://packagist.org/packages/cct-marketing/rest-exception-handler)[ RSS](/packages/cct-marketing-rest-exception-handler/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (2)Versions (6)Used By (0)

REST Exception Handler
======================

[](#rest-exception-handler)

An exception handler using the decorator pattern to wrap the client requests from the REST lib and parse the server responses in correctly correctly form format exceptions based on api format

Installation
------------

[](#installation)

```
composer require cct-marketing/rest-execption-handler
```

Usage
-----

[](#usage)

```
use CCT\Component\Rest\AbstractClient;
use CCT\Component\Rest\Config;

class RESTClient extends AbstractClient
{
    /**
     * @return ScrapeRequest
     */
    public function myAPI(): MyRequest
    {
        $config = clone $this->config;
        $modelClass = TestModel::class;

        $serializer = $this->getBuiltSerializer($config);
        if ($this->shouldUseDefaultResponseTransformers() && null !== $serializer) {
            $this->applyDefaultResponseTransformers($config, $serializer, $modelClass);
        }

        return $this->createRequestInstance(TestRequest::class, $config, null);
    }
}
```

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity72

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

Total

5

Last Release

1002d ago

Major Versions

v1.0.3 → v2.0.02023-10-05

PHP version history (2 changes)v1.0.0PHP ~7.1

v2.0.0PHP ~7.4|~8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/19488132?v=4)[Paul Schweppe](/maintainers/SSHVersionControl)[@SSHVersionControl](https://github.com/SSHVersionControl)

---

Top Contributors

[![jvahldick](https://avatars.githubusercontent.com/u/1113015?v=4)](https://github.com/jvahldick "jvahldick (3 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/cct-marketing-rest-exception-handler/health.svg)

```
[![Health](https://phpackages.com/badges/cct-marketing-rest-exception-handler/health.svg)](https://phpackages.com/packages/cct-marketing-rest-exception-handler)
```

###  Alternatives

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.3k543.5M2.6k](/packages/aws-aws-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[illuminate/http

The Illuminate Http package.

11937.9M6.9k](/packages/illuminate-http)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M47](/packages/tencentcloud-tencentcloud-sdk-php)[guzzlehttp/guzzle-services

Provides an implementation of the Guzzle Command library that uses Guzzle service descriptions to describe web services, serialize requests, and parse responses into easy to use model structures.

25711.0M191](/packages/guzzlehttp-guzzle-services)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

273.0k](/packages/eslazarev-wildberries-sdk)

PHPackages © 2026

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