dywily/gaw
最新稳定版本:v1.0.0
Composer 安装命令:
composer require dywily/gaw
包简介
wrap some google api,like gmail api
关键字:
README 文档
README
- A package base from google/apiclient
- Currently only packaging the gmail, you can easily manage syncing email, displaying email, and sending email
- The examples folder in the reference package is used for the basics
- you can see configuration file
config/gaw.phpand overwrite related configuration
Configure OAuth client authorization
-
refer: google api 授权及使用 总结
-
You need to move the downloaded credentials file into the configuration {auth_path}/{credential_file}
Usage of Examples folder
-
Enter parent directory of the examples
-
Execute
php -S localhost:8068
- Browser view: http://localhost:8068/examples/index.php
If you use the laravel
- Add the following into
routes/console.php
Artisan::command('dywily:gaw-install', function () { $dt = new Dywily\Gaw\Console\InstallCommand(); $dt->handle(); });
- Execute
php artisan dywily:gaw-install
- Add the following into
providersofconfig/app.php
App\Providers\GmailServiceProvider::class,
- Execute and view: http://localhost:8068/getLabels
php artisan serve --port 8068
PS
统计信息
- 总下载量: 6
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-03-25