Namespaces is a project mainly written in PHP, it's free.
[Drupal module] Support additional namespaces in Drupal output
This module adds support for namespaces to Drupal. To use it, other modules will need to implement hook_namespaces.