These forums have been archived and are now read-only.

The new forums are live and can be found at https://forums.eveonline.com/

EVE Technology Lab

 
  • Topic is locked indefinitely.
 

PhealNG // the next generation of the lightweight PHP API Library

Author
Peter Powers
Terrorists of Dimensions
HORSE-KILLERS
#1 - 2012-12-08 15:50:04 UTC
Good News Everyone!

In June 2010, annoyed with all the other API Libraries for PHP i launched Pheal, the PHP eve api library, and with great success alot of people adopted it, and i can proudly say that nowadays it runs in the background of some of the largest websites around EVE Online.

During the course of the Years PHP Development, and they way PHP Applications are developed has not stopped though, and while Pheal found quite a few contributors, including Wollari who put efford in it like a maniac, Pheal was never really at the status most modern Libraries should be.

Sure i added composer support a while ago, but whats that worth without PSR-0 compliance? Namespaces etc?

Well today, after a while of work i bring to you PhealNG, a refactored version of Pheal.

FAQ

why would i want to switch to PhealNG?
because PhealNG offers you namespacing, because PhealNG is PSR-0 compliant, and because new features will be build for PhealNG only.

does that mean Pheal is dead?
No, should there be bugs found or submissions by others, this will be put into Pheal at least for the next 12 month,

are there reasons not to switch to PhealNG yet?
Yes, absolutely, for example if your application needs to run on PHP versions older than 5.4.

so i can checkout PhealNG on Github, or i can go through composer?
Installing PhealNG through composer is the recommended way to go, obviously you can install it by just downloading it from Github aswell, but please don't expect support then.

PhealNG on Github (check README.md here for information on how to install/use)
PhealNG on Packagist
Issue Tracking

3rdPartyEve.net - your catalogue for 3rd party applications

Louis Vitton
Viziam
Amarr Empire
#2 - 2012-12-09 21:11:40 UTC
Hey Peter, Thank you for this i am a fan of your work so i shall have a look at this and see how it goes :)
Bit of a noob on the php so may have a few questions later on :)
Peter Powers
Terrorists of Dimensions
HORSE-KILLERS
#3 - 2012-12-11 11:52:05 UTC
Louis Vitton wrote:
Hey Peter, Thank you for this i am a fan of your work so i shall have a look at this and see how it goes :)
Bit of a noob on the php so may have a few questions later on :)

sure, just ask =)

3rdPartyEve.net - your catalogue for 3rd party applications

Peter Powers
Terrorists of Dimensions
HORSE-KILLERS
#4 - 2012-12-12 07:25:50 UTC
0.2.4 released
- fixes wrongly named file causing autoloader problems
- fixes Pheal::$version

users should upgrade (edit composer json && php composer.phar update)

3rdPartyEve.net - your catalogue for 3rd party applications

Kivorno
Myanapa Corsica
#5 - 2012-12-13 13:09:35 UTC  |  Edited by: Kivorno
Just started playing with this, although just on the basic example for the ServerStatus(), I am getting the error:

Quote:
Fatal error: Call to undefined function Pheal\Fetcher\curl_init() in C:\xampp\htdocs\eve\vendor\3rdpartyeve\phealng\lib\Pheal\Fetcher\Curl.php on line 45


the error comes from this line:

Quote:
// requests /server/ServerStatus.xml.aspx
$response = $pheal->serverScope->ServerStatus();

Proud creator and developer of Eve-Merchant / Eve-Merchant Sprint

xHjfx
The Legion of Spoon
Curatores Veritatis Alliance
#6 - 2012-12-13 19:37:23 UTC
Kivorno wrote:
Just started playing with this, although just on the basic example for the ServerStatus(), I am getting the error:

Quote:
Fatal error: Call to undefined function Pheal\Fetcher\curl_init() in C:\xampp\htdocs\eve\vendor\3rdpartyeve\phealng\lib\Pheal\Fetcher\Curl.php on line 45


the error comes from this line:

Quote:
// requests /server/ServerStatus.xml.aspx
$response = $pheal->serverScope->ServerStatus();


You need Curl installed...
Peter Powers
Terrorists of Dimensions
HORSE-KILLERS
#7 - 2012-12-13 21:44:12 UTC
you need either curl installed, or you have to reconfigure it to use the file fetcher:

\Pheal\Core\Config::getInstance()->fetcher = new \Pheal\Fetcher\File();

3rdPartyEve.net - your catalogue for 3rd party applications

Kivorno
Myanapa Corsica
#8 - 2012-12-14 10:19:14 UTC
Brilliant, cant believe I didn't remember that, working on a new laptop and hadn't quite configured Apache to my liking.

Proud creator and developer of Eve-Merchant / Eve-Merchant Sprint