Difference between revisions of "PlazesPHP"
Olleolleolle (talk | contribs) (added note on phpxmlrpc.php) |
Olleolleolle (talk | contribs) (Added link to Variations of ARP) |
||
(One intermediate revision by the same user not shown) | |||
Line 28: | Line 28: | ||
== Need to know == | == Need to know == | ||
− | This class | + | This class depends on the following third-party Open Source libraries: |
+ | |||
+ | * [http://phpxmlrpc.sourceforge.net/ PHP XML-RPC] for communicating with the Plazes server | ||
+ | * [http://magpierss.sf.net Magpie RSS] for extracting latitude/longitude information from the RSS feed for a single Plaze, and add that to a Buddy object | ||
+ | |||
+ | The following commandline tools are used, to determine your gateway and its MAC address: | ||
+ | |||
+ | * arp, see the [[Variations_on_ARP|Variations on ARP]] page. | ||
+ | * awk | ||
+ | * grep | ||
+ | * netstat | ||
+ | * tail | ||
+ | |||
+ | Your PHP needs permission to run the [http://dk.php.net/manual/en/function.exec.php exec()] function. | ||
+ | |||
+ | Optional libraries, for developers of PlazesPHP: | ||
+ | |||
+ | * The [http://www.lastcraft.com/simple_test.php SimpleTest] testing framework, for unit tests on the PlazesPHP classes. |
Latest revision as of 07:17, 12 February 2006
PlazesPHP is an experimental PHP class that provides methods for interacting with Plazes.com. As it uses the new object model introduced with PHP version 5, PHP5 is a prerequisite.
Download Source Code
You can browse the source code from a browser, or grab the latest version of the source code using Subversion at:
svn://svn.reinvented.net/Plazes/PHP/PlazesPHP
or
http://svn.reinvented.net/Plazes/PHP/PlazesPHP
Sample Usage
This example will connect to Plazes.com and retrieve a list of currently signed-on buddies as an array, and then dump the array.
require "Plazes.php"; $plaze = new Plazes('username','password','developerkey'); $plaze->Launch(); $plaze->Update(); $plaze->Buddies(); print_r ($plaze->mybuddies);
Need to know
This class depends on the following third-party Open Source libraries:
- PHP XML-RPC for communicating with the Plazes server
- Magpie RSS for extracting latitude/longitude information from the RSS feed for a single Plaze, and add that to a Buddy object
The following commandline tools are used, to determine your gateway and its MAC address:
- arp, see the Variations on ARP page.
- awk
- grep
- netstat
- tail
Your PHP needs permission to run the exec() function.
Optional libraries, for developers of PlazesPHP:
- The SimpleTest testing framework, for unit tests on the PlazesPHP classes.