djamy / google-calendar-bundle
该软件包已被放弃,不再维护。未建议替代软件包。
GoogleCalendar 服务,具有管理 Google 事件的有用功能
dev-master
2016-06-29 13:55 UTC
Requires
- php: >=5.3
- google/apiclient: 1.1.2
- symfony/framework-bundle: ~2.3
This package is not auto-updated.
Last update: 2021-10-02 02:13:16 UTC
README
本软件包使用 Google API 列表、创建或更新 Google 日历中的事件。
请随时贡献、分支、发送合并请求和创建工单。
##需求
创建 API 账户
https://console.developers.google.com 选择服务器到服务器类型
##安装
步骤 1:安装 GoogleCalendarBundle
运行
composer require djamy/google-calendar-bundle:dev-master
步骤 2:启用软件包
<?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Djamy\GoogleCalendarBundle\DjamyGoogleCalendarBundle() ); }
步骤 3:配置
// app/config/parameters.yml 将您的 P12 文件复制到 app/Resources/GoogleCalendarBundle/XXXX.p12,例如
google_calendar: api_key_file: PATH TO YOUR P12 FILE # For example app/Resources/GoogleCalendarBundle/XXXX.p12 api_url: 'https://www.googleapis.com/auth/calendar' client_email: XXXX@XXXX.iam.gserviceaccount.com