The adventure PHP framework (APF) is a utility to implement object oriented and generic PHP Web applications. It allows the developer to create programs in compliance with approved software design patterns, and the code base already has answers to many everyday problems. The framework cannot be described as an application that only has to be configured, but rather as a technical basis and design guide for the design of software. Further, it introduced many concepts and efficiency tools already well known in the Java community.
This class fixes the problem where PayPal IPN notifications fail. It uses cURL so PHP can follow the 302 redirection served, and by default uses SSL for posting to PayPal, but is configurable to do normal HTTP as well. It also gives more detailed logging info in the log file/log email.