Skip to content

imonroe/cr_aspects_google

Repository files navigation

Google Aspect Types for Coldreader

Aspect Types for Coldreader, which implement Google APIs

Install

Via Composer

$ composer require imonroe/cr_aspects_google

Add the following array to your /config/services.php file:

'google' => [
        'application_name' => env('GOOGLE_API_APP_NAME'),
        'client_id' => env('GOOGLE_API_CLIENT_ID'),
        'client_secret' => env('GOOGLE_API_CLIENT_SECRET'),
        'redirect' => env('GOOGLE_API_REDIRECT'),
        'public_api_key' => env('GOOGLE_API_PUBLIC_API_KEY'),
        'auth_config_file' => env('GOOGLE_AUTH_CONFIG_FILE'),
        'custom_search_api_key' => env('GOOGLE_CUSTOM_SEARCH_API_KEY'),
        'custom_search_cz' => env('GOOGLE_CUSTOM_SEARCH_CZ'),
        'static_maps_api_key' => env('GOOGLE_STATIC_MAPS_API_KEY'),
    ],

Add the following to your .env file, along with the correct respective values:

GOOGLE_API_APP_NAME=YourAppName
GOOGLE_PROJECT_ID=yourProjectID
GOOGLE_API_CLIENT_ID=XXXX
GOOGLE_API_CLIENT_SECRET=XXX
GOOGLE_API_MAPS_API_KEY=
GOOGLE_API_PUBLIC_API_KEY=XXX
GOOGLE_API_REDIRECT=https://yoursite/auth/google/callback
GOOGLE_CUSTOM_SEARCH_API_KEY=XXXX
GOOGLE_CUSTOM_SEARCH_CZ=XXXX
GOOGLE_STATIC_MAPS_API_KEY=XXXX

Change log

Please see CHANGELOG for more information on what has changed recently.

Testing

$ composer test

Contributing

Please see CONTRIBUTING and CODE_OF_CONDUCT for details.

Security

If you discover any security related issues, please email ian@ianmonroe.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

About

Google API Aspect Types for Coldreader

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published