[Diablo] PHP libraries

API Discussion
The short answer is, nothing looks updated to after the release of the API. The first one in this list looks most promising. I'll likely use none of them. If you have have found a library that works, or are using one of these and it is working, please post!

https://github.com/pwnraid/bnet (composer)
item/follower/artisan so far, no battletag or hero
last update OLD: Aug 31st, 2014

The long answer is:

I did a search on packagist and google. I found 3 non-packagist libraries in this thread: http://us.battle.net/d3/en/forum/topic/6307731317

The rest are from packagist. Everything looks old.

https://github.com/pwnraid/bnet (composer)
item/follower/artisan so far, no battletag or hero
last update OLD: Aug 31st, 2014

https://github.com/XjSv/Diablo-3-API-PHP
Seems fully featured to the old api...
last update OLD: Jun 8th, 2014
This one may work with the new api?

https://github.com/jeserkin/d3-api-php
No documentation.
last update OLD: Sep 8th, 2012
I don't think this one works with the new API?

https://github.com/BeingTomGreen/Diablo-3-API (composer)
battletag/hero/follower/artisan/paperdoll
last update OLD: Mar 11th, 2014
I don't think this one works with the new API?

https://github.com/coss/bnetlib (composer)
last update OLD: Aug 15, 2012
I don't think this one works with the new API?

https://github.com/VTorikian/blizzard-api (composer)
Seems to handle full d3 api...
last update OLD: Aug 6th, 2013
I don't think this one works with the new API?

https://github.com/luukholleman/Diablo-3-PHP-API
The code does NOT look good to me.
last update OLD: May 31st, 2014
I don't think this one works with the new API?

libraries that deal with the api but don't handle diablo (yet?):

https://github.com/tpavlek/oauth2-bnet (composer)
This is only for oath2, doesn't do diablo api stuff
last update NEW: Sep 12th, 2014

https://github.com/T00mm/devbattle (composer)
last update: Sep 2nd, 2014
Here's one that I made.

https://github.com/b01/d3 (composer)
This is for D3 only with Mashery. Unfortunately I've only tested on PHP 5.6.
Looks great msu ;) I think I will try it in next few days with symfony 2.6 and php 5.4-5.6.
msuBREAKER, would you like me to add your lib to the Community Created Libraries & Resources thread?
@Aurifex Yes please.
I was a bit overzealous with the PHP 5.6 requirement. So I removed the bits that make it require 5.6, I just hope I got them all. I was able to run the Unit test on PHP 5.4.35, but there may be a small chance I missed something.

There is a new version with two new benefits:
* Added the library on Packagist with updated installation section in the README.md
* Added the API documentation on http://d3.readthedocs.org/en/latest/ (WIP).
I spent today setting up my D3 interface with Travis CI, so that I can find where my build in breaking on Linux. I fix some issues, so it is currently passing on 5.4, 5.5, and 5.6 on Linux. And since I build on windows 7 with IIS 7.5, it should work there as well, as long as you have the PHP built-in extension for fstream, and JSON enabled.

Join the Conversation

Return to Forum