survos/global-giving-bundle
最新稳定版本:1.6.44
Composer 安装命令:
composer require survos/global-giving-bundle
包简介
global-giving-bundle Bundle
关键字:
README 文档
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.
统计信息
- 总下载量: 18
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-02-04