PHPackages                             frandieguez/pingback-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. frandieguez/pingback-php

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

frandieguez/pingback-php
========================

Library for performing Pingback requests (Pingback 1.0 compliant)

3621PHP

Since Dec 26Pushed 13y agoCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Pingback-PHP [![Build Status](https://camo.githubusercontent.com/06e9e91d614fc2f66719e03cc26d4cfb3d23b0369c9cbfad0012701602c278cc/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f6672616e6469656775657a2f70696e676261636b2d7068702e706e67)](http://travis-ci.org/frandieguez/pingback-php)
=====================================================================================================================================================================================================================================================================================================

[](#pingback-php-)

What is this!
-------------

[](#what--is-this)

Library for performing Pingback requests in a simple way (Pingback 1.0 compliant).

Pingback-PHP is Pingback 1.0 standard specification compliant. Please refer to its [original webpage](http://www.hixie.ch/specs/pingback/pingback) to get deeper information about how it works.

A quick example:

To inform to [this article](http://www.mabishu.com/blog/2012/12/14/object-calisthenics-write-better-object-oriented-code/)that you have referenced it from [one of your posts](http://www.mabishu.com/blog/2012/12/14/get-better-performance-and-life-from-your-ssd-in-linux-based-systems/)by using the Pingback protocol, you can make it like this:

```
// Prepare the Pingback client
$requestHandler = new Pingback\RequestHandler();
$client = new Pingback\Client($requestHandler);

// Perform the pingback call
try {

    $client->ping(
        "http://www.mabishu.com/blog/2012/12/14/get-better-performance-and-life-from-your-ssd-in-linux-based-systems/",
        "http://www.mabishu.com/blog/2012/12/14/object-calisthenics-write-better-object-oriented-code/";
    );

} catch (Pingback\Exception $e) {
  printf("Exception raised with code (%d) : %s\n", $e->getCode(), $e->getMessage());
}

```

Exception-aware
---------------

[](#exception-aware)

Pingback-PHP raises different exceptions if some error happens in the target server or between client-server communication.

All the exceptions has a direct correlation with the server reported faults:

- 0: A generic fault code.
- 0×0010 (16): The source URI does not exist.
- 0×0011 (17): The source URI does not contain a link to the target URI
- 0×0020 (32): The specified target URI does not exist.
- 0×0021 (33): The specified target URI cannot be used as a target.
- 0×0030 (48): The pingback has already been registered.
- 0×0031 (49): Access denied.
- 0×0032 (50): The server could not communicate with an upstream server.

So take care of this raised exceptions in your code.

Install it!
-----------

[](#install-it)

1. Just put in one of your include\_path folders, and make sure to use an PSR-0-compatible autoloader.

Dependencies
------------

[](#dependencies)

This library is only compatible with PHP 5.3 or later.

- For now the unique dependency is the xmlrpc php extension for encoding/decing the protocol messages. We are looking to replace this with a simple library.

Test it!
--------

[](#test-it)

Help us to mantain this library updated. Run our unit tests with phpunit to give us feedback about what doesn't work.

For running tests:

1. Install in your system PHPUnit:
2. And simply run phpunit from the root of projct: phpunit

And... what else?
-----------------

[](#and-what-else)

If you find a bug or want to suggest a new video service, please let us know in [a ticket](http://github.com/frandieguez/pingback-php/issues).

Thanks!!

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

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/96af42554cb26fa99a786a47d16a0bc2ee3c8ac29fc790fcb102993aec8e676b?d=identicon)[frandieguez](/maintainers/frandieguez)

---

Top Contributors

[![frandieguez](https://avatars.githubusercontent.com/u/4584?v=4)](https://github.com/frandieguez "frandieguez (13 commits)")

### Embed Badge

![Health badge](/badges/frandieguez-pingback-php/health.svg)

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

###  Alternatives

[boesing/typed-arrays

Hashmap and Collection

1037.8k1](/packages/boesing-typed-arrays)

PHPackages © 2026

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