I have a PHP class that I want to use in several plugins, rather than add the class to each plugin I want to add the class as a plugin and access it that way. This is more OOP and reduces duplication.
What is the best way to go about this?
Safety issues can be ignored, I can write checks to make sure a plugin is available before trying to use it.
The class I am trying to add is an Excel document creator in XML format. It would normally be used as follows.
include("excelwriter.inc.php");
$excel=new ExcelWriter("myXls.xls");