Login

This is the HTClient sample application 2.0

Please login using your personal Hattrick Username and Security Code. Your credentials are needed to interact with the Hattrick website and will be NOT stored locally.


If you want to see in action another CHPP, HTClient based project, feel free to visit hattrickhq.org.

Supporting

Do you are a PHP developer that chose HTClient as the CHPP framework and found it helpful? Then, if you like to thank me in a different way, you can offer me a pizza. While all my CHPP projects will always be free and available to every Hattrick user without limitations, I will be happy to accept your gift. :)

Welcome to the HTClient project page!

HTClient is an Open-Source CHPP framework for PHP/5+ developers. It is based on the new Hattrick CHPP API and of course supports the new login system.

HTClient is fast. You will get fast results for your requests because of the advanced, transparent cache system. Your server will load the code fast, because of the lightweight design and the simple but flexible API. Development of your application will be fast, because you can save many lines of code issuing desired parameters to higher level functions to retrieve more details without specifically request every information needed. All the information fetched from Hattrick servers is available as an array, so accessing data is extremely fast. Moreover, using an array makes very easy to pass values you want to other environments than PHP: with a simple json_encode() call, you can provide details to Javascript code (AJAX applications) or Flash applications (using a default ActionScript function).

If you still don't need these features and you prefer a more object-oriented approach for a "PHP only" application, then you can relay just on the core module of this package and PHP SimpleXML for parsing the result provided by htFile(). This function is very easy to use: simply provide details about the CHPP page you want to fetch and requested parameters, and then manage the result in the way you prefer. You can obtain the resulting array or even the unparsed XML file, choosing to handle the obtained information for other HTClient features, or to get it directly with no overhead: if developer does not need all the high level functions of HTClient, he can safely use just CHPP.php, obtaining an extremely compact application. But is also possible to extend through the HTClient class, for example to redefine some of the provided methods allowing to save or read the information even from a local database instead of relying only on what obtained from XML files or the current session cache.

HTClient should now be interpreted as a lighweight Open-Source CHPP framework for PHP/5+ developers, instead of an helper class like before. Every developer can provide contributions in different modules. There is place for help from everyone, and of every kind. If you like to contribute, please contact CHPP-Odiobill on HTMail.