https://github.com/antonioribeiro/googleforms
Post to Google Form Spreadsheets
https://github.com/antonioribeiro/googleforms
Last synced: 7 months ago
JSON representation
Post to Google Form Spreadsheets
- Host: GitHub
- URL: https://github.com/antonioribeiro/googleforms
- Owner: antonioribeiro
- License: mit
- Created: 2015-06-26T23:04:02.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-06-27T16:15:42.000Z (over 10 years ago)
- Last Synced: 2025-02-06T12:07:19.599Z (8 months ago)
- Language: PHP
- Size: 129 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Post to Google Forms
[](https://github.com/antonioribeiro/googleforms/releases)
[](LICENSE.md)
[](https://travis-ci.org/antonioribeiro/googleforms)
[](https://scrutinizer-ci.com/g/antonioribeiro/googleforms/code-structure)
[](https://scrutinizer-ci.com/g/antonioribeiro/googleforms)
[](https://packagist.org/packages/pragmarx/googleforms)Need to create a form and send data straight to a [Google Forms Spreadsheet](https://www.google.com/forms/about/)? This is your package!
## Install
Via Composer
``` bash
$ composer require pragmarx/googleforms
```## Usage
``` php
$googleform = new PragmaRX\GoogleForms\Client('12345lvDG6F4ISHQbT4duG2lwl6OAHY');$data = [
'entry.386548658' => Input::get('name'),
'entry.361290697' => Input::get('city'),
'entry.740093423' => Input::get('school'),
'entry.1928496279' => Input::get('email'),
'entry.494802185' => Input::get('phone'),
];return [
'success' => $googleForm->post($data)
];
```## Contributing
Please see [CONTRIBUTING](CONTRIBUTING.md) for details.
## Security
If you discover any security related issues, please email acr@antoniocarlosribeiro.com instead of using the issue tracker.
## Credits
- [Antonio Carlos Ribeiro](https://github.com/antonioribeiro)
## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.