定制 survos/global-giving-bundle 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

GitHub 信息

  • Stars: 0
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-02-04