How do I include a PHP library? In Drupal 7, there are hook_library() and drupal_add_library() that can be used to manage JS and CSS libraries. I am looking for how to include the PHPExel library in my distribution.

How can I do it?
hook_library() is thought only for Javascript and CSS files; for PHP libraries, you should consider the Library API module.


  This module introduces a common repository for libraries in sites/all/libraries resp. sites//libraries for contributed modules.
  
  External libraries
  
  Denotes libraries ("plugins") that are neither shipped nor packaged with a project on drupal.org. We do not want to host third-party libraries on drupal.org for a multitude of reasons, starting with licensing, proceeding to different release cycles, and not necessarily ending with fatal errors due to conflicts of having the same library installed in multiple versions.
  Drupal 7 only has built-in support for non-external libraries via hook_library(). But it is only suitable for drupal.org projects that bundle their own library; i.e., the module author is the creator and vendor of the library. Libraries API should be used for externally developed and distributed libraries. A simple example would be a third-party jQuery plugin.


The Library API module implements an API that can be used from third-party modules to load libraries installed on a Drupal site; the pro of using Library API is that it handles dependencies between libraries, and versioning.