How do i get the contribution table entries?
You can use CRM_Contribute_BAO_Contribution::getContributionTokenValues() function to get details of contribution based on contribution id.
To get all data of contribution you can use api
$contributionData = civicrm_api3('Contribution', 'getsingle', ['id' =&gt; $contributionId]);