PHPackages                             akaramires/laravel-googleforms - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. akaramires/laravel-googleforms

ActiveLibrary[API Development](/categories/api)

akaramires/laravel-googleforms
==============================

Laravel client for Google Forms

1254

Since Jun 24Compare

[ Source](https://github.com/akaramires/laravel-googleforms)[ Packagist](https://packagist.org/packages/akaramires/laravel-googleforms)[ RSS](/packages/akaramires-laravel-googleforms/feed)WikiDiscussions Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel 5 Google Forms (using Google Scripts) - Pull requests are welcome!
--------------------------------------------------------------------------

[](#laravel-5-google-forms-using-google-scripts---pull-requests-are-welcome)

Installation
------------

[](#installation)

Installation using composer:

```
composer require akaramires/laravel-googleforms

```

Configuration
-------------

[](#configuration)

### Google oauth key

[](#google-oauth-key)

1. Go to  and create OAuth client ID:
    Screenshot:
2. Download and save the file into `storage/` directory and with name `google_client_secret.json`
    Screenshot:

### Laravel

[](#laravel)

1. Publish the package config file:

```
php artisan vendor:publish --provider="Akaramires\GoogleForms\GoogleFormsServiceProvider"

```

2. Get access token

```
php artisan google-forms:token

```

### Google Scripts

[](#google-scripts)

- Go to
- Create new project
- Create 5 scripts (content of them you can find in `vendor/akaramires/laravel-googleforms/scripts` directory)
- Click on Publish-&gt;Deploy as API executable
- Copy API ID and paste into `config/googleforms.php`

Examples
--------

[](#examples)

### Simple form

[](#simple-form)

```
$form = App::make('GoogleForm');

$params = [
    'file_name'                   => sha1(microtime(true)),
    'file_description'            => 'File was created by ' . get_current_user() . ' (' . app()->environment() . ')',
    'title'                       => 'Super title',
    'description'                 => 'Super description',
    'confirmation_message'        => 'Your response has been recorded.',
    'show_progress'               => false,
    'limit_one_response_per_user' => false,
    'shuffle_questions'           => false,
    'show_link_to_respond_again'  => false,
    'publish_and_show'            => false,
    'allow_response_edits'        => false,
    'accepting_responses'         => true,
];

$form->createForm($params);
```

### Form with fields

[](#form-with-fields)

```
$fields = [];

$textItem = new TextItem();
// $textItem->setId($field->google_id); # if you have saved field id
$textItem->setTitle('Field title');
$textItem->setHelpText('Field help text');
$textItem->setRequired(true);
$textItem->setIndex(0);

$fields[] = $form->createOrUpdateElement($textItem, true);

$queries = [
    'form'   => $form->createForm($params, true),
    'fields' => $fields,
];

$request = $this->form->batchRequest($queries);;

print_r($request);
```

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1636145?v=4)[Elmar Abdurayimov](/maintainers/akaramires)[@akaramires](https://github.com/akaramires)

---

Top Contributors

[![akaramires](https://avatars.githubusercontent.com/u/1636145?v=4)](https://github.com/akaramires "akaramires (10 commits)")

### Embed Badge

![Health badge](/badges/akaramires-laravel-googleforms/health.svg)

```
[![Health](https://phpackages.com/badges/akaramires-laravel-googleforms/health.svg)](https://phpackages.com/packages/akaramires-laravel-googleforms)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35816.3M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172437.8k11](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

94452.6k6](/packages/botman-driver-telegram)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
