PHP code example of survos / global-giving-bundle
1. Go to this page and download the library: Download survos/global-giving-bundle library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
survos / global-giving-bundle example snippets
#[Route('/featured', name: 'app_list_featured_projects')]
public function listFeatured(GlobalGivingService $globalGivingService): Response
{
$data = $globalGivingService->getFeaturedProjects();
return $this->render('app/index.html.twig', [
'projects' => $data['project']
]);
}