survos / global-giving-bundle
global-giving-bundle Bundle
Package info
github.com/survos/GlobalGivingBundle
Type:symfony-bundle
pkg:composer/survos/global-giving-bundle
Fund package maintenance!
1.6.44
2025-07-26 14:04 UTC
Requires
- php: ^8.3
- symfony/config: ^7.3
- symfony/dependency-injection: ^7.3
- symfony/http-client: ^7.3
- symfony/http-kernel: ^7.3
- twig/twig: ^3.4
Requires (Dev)
- phpstan/phpstan: ^2.0
- symfony/browser-kit: ^7.3
- symfony/framework-bundle: ^7.3
- symfony/phpunit-bridge: ^7.3
- symfony/twig-bundle: ^7.3
- symfony/var-dumper: ^7.3
This package is auto-updated.
Last update: 2026-06-12 18:07:19 UTC
README
A simple bundle that facilitates calling the Global Giving API from a Symfony application.
composer require survos/global-giving-bundle
Get an API key at https://www.globalgiving.org/dy/v2/user/api/ and add it to your .env.local
# .env.local
GLOBAL_GIVING_API_KEY=your-api-key
Calls
Inject the service and make the calls
#[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'] ]); }
Note: There are only a handful of calls available to the API now. I'm hoping to get an OpenAPI spec from GlobalGiving.org to make development of this bundle easier and more reliable.