Download the PHP library using the following link:
https://developers.braintreepayments.com/client_libraries/php/braintree-php-4.3.0.tgz
Include the Braintree.php to the PHP file.
Set up the merchantId, publicKey and privateKey.
Get them from https://sandbox.braintreegateway.com
Happy coding :-)