Skip to content

raymondjavaxx/php-oexchange

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

OExchange PHP Library

PHP-OExchange is a PHP5 library for playing with OExchange enabled services.

Basic Usage:

require 'OExchange.php';
$targets = OExchange_Discovery::host('www.oexchange.org');
print_r($targets);

Page Discovery can also be performed by calling OExchange_Discovery::page()

$targets = OExchange_Discovery::page('http://www.oexchange.org/demo/blog/');
print_r($targets);

The library can also be used to generate Target XRD documents:

$target = new OExchange_Target(array(
	'name'     => 'CoolService',
	'title'    => 'A cool service that accepts URLs',
	'subject'  => 'http://www.example.org/coolservice',
	'vendor'   => 'Examples Inc',
	'prompt'   => 'Share to CoolService',
	'offer'    => 'http://www.example.com/coolservice/offer.php',
	'icon'     => 'http://www.example.com/assets/icon.png',
	'icon32'   => 'http://www.example.com/assets/icon32.png',
));

echo $target->toXRD()->toXML();

About

OExchange PHP Library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages