2017 © Pedro PelĂĄez
 

library webfinger

WebFinger client library

image

fkooman/webfinger

WebFinger client library

  • Wednesday, December 2, 2015
  • by fkooman
  • Repository
  • 1 Watchers
  • 1 Stars
  • 31 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 3 % Grown

The README.md

Build Status Scrutinizer Code Quality, (*1)

Introduction

This is a WebFinger (RFC 7033) client implementation written in PHP. It locates the WebFinger data based on a resource., (*2)

Installation

You need Composer to install the dependencies to run the included finger.php script. See below how to use it in your project., (*3)

$ /path/to/composer.phar install

Usage

The library fkooman\WebFinger\WebFinger can be used in your project., (*4)

You can also use Composer and make this library a dependency by putting the following in your composer.json in the require section:, (*5)

"fkooman/webfinger": "^1.0.0"

Or if you want to use the development version:, (*6)

"fkooman/webfinger": "dev-master"

API

<?php
require_once 'vendor/autoload.php';

use fkooman\WebFinger\WebFinger;
use fkooman\WebFinger\Exception\WebFingerException;

try { 
    $w = new WebFinger();
    echo $w->finger("fkooman@5apps.com");
} catch (WebFingerException $e) {
    echo $e->getMessage() . PHP_EOL;
} 

The WebFingerException is thrown if an error occurs, like a specification violation. There are a number of options that can be set to avoid some (fatal) errors:, (*7)

$w = new WebFinger();

// disable TLS verification (default: true)
$w->setOption('verify', false);

// disable Content-Type check (default: false)
$w->setOption('ignore_media_type', true);

// disable check of the type of property value, introduced for the 
// remoteStorage WebFinger specification issues
// MUST be null or string according to specification (default: false)
$w->setOption('ignore_property_value_type', true);

NOTE: DO NOT use any of these options in production environments!, (*8)

Simple Compliancy Testing

A script is included to check a WebFinger server implementation:, (*9)

$ php finger.php foo@example.org

License

Licensed under the Apache License, Version 2.0;, (*10)

http://www.apache.org/licenses/LICENSE-2.0, (*11)

The Versions

02/12 2015

dev-master

9999999-dev

WebFinger client library

  Sources   Download

Apache-2.0

The Requires

 

by François Kooman

02/12 2015

1.1.0

1.1.0.0

WebFinger client library

  Sources   Download

Apache-2.0

The Requires

 

by François Kooman

06/10 2015

1.0.0

1.0.0.0

WebFinger client library

  Sources   Download

Apache-2.0

The Requires

 

by François Kooman

02/10 2014

0.1.2

0.1.2.0

WebFinger client written in PHP

  Sources   Download

Apache-2.0

The Requires

 

by François Kooman

02/10 2014

0.1.1

0.1.1.0

WebFinger client written in PHP

  Sources   Download

AGPL-3.0

The Requires

 

by François Kooman

02/10 2014

0.1.0

0.1.0.0

WebFinger client written in PHP

  Sources   Download

AGPL-3.0

The Requires

 

by François Kooman