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 today

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 21% 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

[jfcherng/php-diff

A comprehensive library for generating differences between two strings in multiple formats (unified, side by side HTML etc).

4785.8M74](/packages/jfcherng-php-diff)[amphp/windows-registry

Windows Registry Reader.

10719.2M2](/packages/amphp-windows-registry)[theiconic/name-parser

PHP library for parsing a string containing a full name into its parts

1345.0M17](/packages/theiconic-name-parser)

PHPackages © 2026

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