edwrodrig / google_utils
Library to retrieve information from google drive
Requires
- php: ^7.2
- ext-json: *
- google/apiclient: ^2.0
Requires (Dev)
- mikey179/vfsstream: ^1.6
- phpunit/phpunit: ^7.0
README
A php library to read some Google Services
My use cases
- Reading resources like images from google drive.
- Read google spreadsheets and export them as a json
My infrastructure is targeted to Ubuntu 16.04 machines with last php7.2 installed from ppa:ondrej/php.
How to get the credentials file
- Log in in Google developers console
- Go to Credentials > New credential > Clave de cuenta de servicio
Documentation
The source code is documented using phpDocumentor style, so it should pop up nicely if you're using IDEs like PhpStorm or similar.
Composer
composer require edwrodrig/google_utils
Testing
The test are built using PhpUnit. It generates images and compare the signature with expected ones. Maybe some test fails due metadata of some generated images, but at the moment I haven't any reported issue. I created a test google account to perform the testing and put read-only credentials in this repository publicly. It is not a good security practice but I'm going to trust in people of doesn't doing something nasty.
License
MIT license. Use it as you want at your own risk.
About language
I'm not a native english writer, so there may be a lot of grammar and orthographical errors on text, I'm just trying my best. But feel free to correct my language, any contribution is welcome and for me they are a learning instance.