I cannot point you to a tutorial, but the easiest way to have a plug and play library is to have one class for each class file so that the user can use __autoload and just instantiate your classes without having to change anything in their existing code . This method is most accessible to most developers.
This method still allows you to create one standalone include file that includes all of your files from other classes.
Other options include including it in a PEAR package or requesting the placement of files in the include path. However, this is not optimal, in my opinion, for people who do not have access to anything other than their own public_html folder (for example, on shared hosting).
source share