Libvirt supports C and C++ directly, and has bindings available for other languages:
PHP: Radek Hladik started developing PHP bindings in 2010.
In February 2011 the binding development has been moved to the libvirt.org website as libvirt-php project.
The project is now maintained by Michal Novotny and it's heavily based on Radek's version. For more information, including information on posting patches to libvirt-php, please refer to the PHP bindings site.
Python: Libvirt comes with direct support for the Python language.
If your libvirt is installed as packages, rather than compiled by you from source code, ensure you have the appropriate package installed.
This is named libvirt-python on RHEL/Fedora, python-libvirt on Ubuntu, and may be named differently on others.
For usage information, see the Python API bindings page.
For information on using libvirt on Windows please see the Windows support page.
Support, requests or help for libvirt bindings are welcome on the mailing list, as usual try to provide enough background information and make sure you use recent version, see the help page.