PHPackages                             caseyw/restorationmedia-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. caseyw/restorationmedia-php

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

caseyw/restorationmedia-php
===========================

Simple library to add data into Restoration Media

0276PHP

Since Apr 9Pushed 11y ago1 watchersCompare

[ Source](https://github.com/caseyw/restorationmedia-php)[ Packagist](https://packagist.org/packages/caseyw/restorationmedia-php)[ RSS](/packages/caseyw-restorationmedia-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Restoration Media PHP Library
=============================

[](#restoration-media-php-library)

[![Build Status](https://camo.githubusercontent.com/c9af438c6a8682ef3e71441d5c30dd8863dc7d7c79d41fdca4c763d9fcdc8cb4/68747470733a2f2f7472617669732d63692e6f72672f6361736579772f726573746f726174696f6e6d656469612d7068702e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/caseyw/restorationmedia-php)

Small project needed to interface with Restoration Media.

Needed to have a simple way to pass in the correct data, and know if responses were sound.

```
$client = new GuzzleHttp\Client();

// Required API fields are constructor injected
$api = new \RestorationMedia\RestorationMediaApi(
    $client,
    $pid,
    $email,
    $ipAddress,
    $source,
    $date,
    $params // Optional fields as array
);

if (!$api->send()) {
    // We can examine the response... but they always return 200...
    $api->getResponse()->getStatusCode();

    // We can check for what response came up
    $response = $api->getResponse()->xml();

    switch ($response) {
        case 'Invalid Email.':
            // Do logic for Invalid Email according to their API
        break;
        case 'Invalid Source.':
            // Do logic for Invalid Source according to their API
        break;
    }
}
```

Currently known responses:

- success.
- Invalid Email.
- Invalid Source Url.
- Invalid Ip Address.
- Invalid Date.

Thanks,

-Casey

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/0fff3eaab05f6267ec85475549df88d60d9420ab84b12d2de0227ff348081e81?d=identicon)[caseyw](/maintainers/caseyw)

---

Top Contributors

[![caseyw](https://avatars.githubusercontent.com/u/69193?v=4)](https://github.com/caseyw "caseyw (15 commits)")

### Embed Badge

![Health badge](/badges/caseyw-restorationmedia-php/health.svg)

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

###  Alternatives

[ihor/nspl

Non-standard PHP library (NSPL) - functional primitives toolbox and more

381368.5k](/packages/ihor-nspl)[akeneo/measure-bundle

Akeneo Measure Bundle

27458.8k](/packages/akeneo-measure-bundle)[eightynine/filament-approvals

Manage approval processes in your filament application

12016.7k1](/packages/eightynine-filament-approvals)[ikr/money-math

gmp-based arbitrary precision operations on currency amounts "XXX.YY"; because floats are BAD for representing money

3115.0k1](/packages/ikr-money-math)[rocramer/nova-matomo-analytics

Matomo Analytics cards for Laravel Nova.

2226.0k](/packages/rocramer-nova-matomo-analytics)[sof3/pharynx

224.3k2](/packages/sof3-pharynx)

PHPackages © 2026

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