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↓50%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 1mo ago

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

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

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

956d 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://www.gravatar.com/avatar/7e3d3344950054978c6cfe7578a91ee71085a02d4e782eb9411ef7239d692efb?d=identicon)[SSHVersionControl](/maintainers/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

[spatie/crawler

Crawl all internal links found on a website

2.8k16.3M52](/packages/spatie-crawler)[omniphx/forrest

A Laravel library for Salesforce

2724.4M8](/packages/omniphx-forrest)[akamai-open/edgegrid-client

Implements the Akamai {OPEN} EdgeGrid Authentication specified by https://developer.akamai.com/introduction/Client\_Auth.html

482.5M6](/packages/akamai-open-edgegrid-client)[muhammadhuzaifa/telescope-guzzle-watcher

Telescope Guzzle Watcher provide a custom watcher for intercepting http requests made via guzzlehttp/guzzle php library. The package uses the on\_stats request option for extracting the request/response data. The watcher intercept and log the request into the Laravel Telescope HTTP Client Watcher.

98239.8k1](/packages/muhammadhuzaifa-telescope-guzzle-watcher)[onesignal/onesignal-php-api

A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com

34170.2k2](/packages/onesignal-onesignal-php-api)[ory/hydra-client-php

Documentation for all of Ory Hydra's APIs.

1710.8k](/packages/ory-hydra-client-php)

PHPackages © 2026

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