phpArmory

Miscellaneous code snippets and examples that members have posted

phpArmory

Postby phattangent » Wed Jun 06, 2007 4:48 am

I know this is my first post, and that it seems like an advertisement. However, I do plan on making future contributions to this community so I think it's okay.

Anyway, I've made a PHP class library that makes it really easy to retrieve and actually use data from the World of Warcraft Armory. The code is licensed under the GPL and is hosted on SourceForge.net. It's called "phpArmory".

Here are the important links

Project Website http://phparmory.sourceforge.net/
SF.net Project Page: http://sourceforge.net/projects/phparmory

If anyone is interested in helping develop the code more, please feel free to make that fact known in the project's forums.

-----------

More information -> Basically, the class provides three easy to use functions: guildFetch(), characterFetch(), and itemFetch(). You can configure the phpArmory object to make these functions suit the situation needed. In all cases, these functions return an associative array of data that corresponds to the serialized XML that Armory provides on its website.

Because the data is now available in an array, instead of serialized XML, it becomes easier to use in your scripts.

I haven't completed the documentation because this is still a work in progress, but you can see examples of how to use some of the functions at the following links:

- guildFetch() [ http://phparmory.sourceforge.net/?q=node/3 ]
- characterFetch() [ http://phparmory.sourceforge.net/?q=node/4 ]

Also, in the SVN repository, there is an example of a simple Guild Roster that makes use of the phpArmory class library. Here's a link to that source file: http://phparmory.svn.sourceforge.net/vi ... iew=markup

And finally, here's the link to current released code: http://sourceforge.net/project/showfile ... _id=197367

Newer source files may be available in the repository. There are instructions on the website on how to retrieve them.

Hope it helps someone.
Last edited by phattangent on Wed Jun 06, 2007 4:49 am, edited 1 time in total.
phattangent
WR.net Apprentice
WR.net Apprentice
 
Posts: 1
Joined: Wed Jun 06, 2007 4:30 am

phpArmory

Postby zanix » Wed Jun 06, 2007 8:22 am

Very nice
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5546
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

Re: phpArmory

Postby nske » Wed Jun 13, 2007 1:10 pm

very practical, thanks a lot! :)

PS. You might want to change your tarballs' extension to .tar, since it is not gzipped.
Last edited by nske on Wed Jun 13, 2007 1:14 pm, edited 1 time in total.
nske
WR.net Apprentice
WR.net Apprentice
 
Posts: 1
Joined: Wed Jun 13, 2007 1:05 pm


Return to Code Cache

Who is online

Users browsing this forum: No registered users and 0 guests

cron