Download the PHP package tedeh/pingback without Composer

On this page you can find all versions of the php package tedeh/pingback. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package pingback

Pingback implementation for PHP

Created and copyrighted by Tedde Lundgren and licensed under MIT.

Introduction

Pingbacks, quoting Wikipedia, are "one of three types of linkbacks, methods for Web authors to request notification when somebody links to one of their documents". More precisely, an explicitly defined procedure based on XML-RPC that enable web applications (typically blogs) to communicate about links.

This library was built to comply with the official pingback specification and supports both the sending and the reception of pingback requests.

Requirements

Requirements center around libraries commonly available in PHP5.

Usage and notes on implementation

Overview

The library consists of three classes.

Pingback_Utility

Pingback_Utility contains the following static methods.

Pingback_Utility::isURL()

Returns a boolean value determining wheter the first argument is a valid URL or not.

Pingback_Utility::isPingbackEnabled()

Returns a boolean value determining wheter the first argument supports the reception of pingbacks.

Pingback_Utility::getRawPostData()

Reads the raw, unfiltered POST data and returns it

Pingback_Utility::getPingbackURL()

Extracts the pingback URL from the first argument.

PingbackUtility::isBacklinking()

Determines wheter the first argument is linking to the second.

PingbackUtility::sendPingback()

The client implementation. Takes three arguments. The first one is the source URL (originator) of the pingback request, the second one is the target url, and the third one is the url to the pingback server. Returns the raw server response, which is easily parsed with xmlrpc_decode_request().

Pingback_Server

PingbackServer is an instantiable class representing a pingback server resource. The majority of requirements put upon a valid pingback request are automatically evaluated. However, two specific requirements have to be evaluated by additional, user-provided logic. These corresponding faults of these two requirements are:

After execution of the bound request, the implementor may leverage Pingback_Server->setFault() to ensure a proper response if all requirements of the request have not been met.

Pingback_Server->__construct()

Takes an array of options that will be automatically set. Creates the server instance and enabled the pingback method on it.

Pingback_Server->getOption()

Returns an option.

Pingback_Server->setOption()

Takes an array of options.

Pingback_Server->setOptions()

Takes an array of options.

Pingback_Server->execute()

Evaluates the given request. If no argument is given, evaluates the set request.

Pingback_Server->setResponse()

Sets the response as a string.

Pingback_Server->setRequest()

Sets the request as a string.

Pingback_Server->getRequest()

Returns the request.

Pingback_Server->getResponse()

Returns the response.

Pingback_Server->getSourceURL()

Returns the source URL from the request.

Pingback_Server->getTargetURL()

Returns the target URL from the request.

Pingback_Server->getTargetURL()

Returns the target URL from the request.

Pingback_Server->getFaultAsArray()

Returns the passed fault code as an array fit for the response.

Pingback_Server->setFault()

Sets the fault code of the request.

Pingback_Server->getSuccessAsArray()

Returns the success response as an array fit for the response.

Pingback_Server->setSuccess()

Marks the current request as successful.

Pingback_Server->isValid()

Returns wheter or not the current request is considered valid.

Available options

The methods for setting options supports the following option names and values:

Responses

Pingback_Server has a set of class constants that may be used with the appropriate methods on a server instance. The actual messages returned by the server can be manipulated by changing the strings in the Pingback_Server->responses array (where the array keys correspond to the class constants).


All versions of pingback with dependencies

PHP Build Version
Package Version
Requires php Version >=5.0.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package tedeh/pingback contains the following files

Loading the files please wait ....