First you need to install
pkg-config package.
sudo apt-get install pkg-config
Now you need to install DBus package. This will manage all background actions needed by the PHP extension.
sudo apt-get install dbus libdbus-1-dev libxml2-dev
Now we can install the PECL DBus extension
sudo pecl install DBus
* if you do not have PECL installed
click here
* if you get an error like "Failed to download pecl/Dbus within preferred state stable, latest release is version 0.1.1, stability 'beta', use ..... install failed" you need to install the version it says it's the last. For example :
sudo pecl install DBus-0.1.1
add the extension to PHP
echo -e "; configuration for php DBus module\nextension=dbus.so"| sudo tee -a /etc/php5/conf.d/dbus.ini