PHPackages                             mhsaheb/google-calendar - 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. [Framework](/categories/framework)
4. /
5. mhsaheb/google-calendar

ActiveProject[Framework](/categories/framework)

mhsaheb/google-calendar
=======================

google calendar api helper

1.1.4(9mo ago)222MITPHP

Since Jun 27Pushed 9mo ago1 watchersCompare

[ Source](https://github.com/MHSahebgharani/google-calendar)[ Packagist](https://packagist.org/packages/mhsaheb/google-calendar)[ RSS](/packages/mhsaheb-google-calendar/feed)WikiDiscussions main Synced 2w ago

READMEChangelogDependencies (2)Versions (15)Used By (0)

Laravel Google Calendar API Package
===================================

[](#laravel-google-calendar-api-package)

This package provides a convenient way to interact with the Google Calendar API in Laravel applications. It allows you to create, update, delete, and retrieve events from a Google Calendar.

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

[](#installation)

You can install this package via Composer by running the following command:

> composer require mhsaheb/google-calendar

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

[](#configuration)

> php artisan vendor:publish --tag=config

This command will create a google-calendar.php file in your config directory. Open the file and provide your Google API credentials and other required information.

Usage
-----

[](#usage)

To use this package, you need to create an instance of the GoogleEvent class, which extends the GoogleCalendar class. Here's an example of how to create a new event:

```
use GoogleCalendar\GoogleEvent;

$event = new GoogleEvent();

// Set event details
$event->setName('My Event');
$event->setStartTime('2023-06-28T10:00:00');
$event->setEndTime('2023-06-28T12:00:00');
$event->setParams([
    'description' => 'This is a sample event',
    'location' => 'New York',
]);

// Add attendees
$event->setAttendees(['attendee1@example.com', 'attendee2@example.com']);

// Enable Google Meet for the event
$event->hasMeet();

// Create the event
$createdEvent = $event->createEvent();

```

You can also retrieve a list of events or get a specific event using the following methods:

```
// Get all events
$events = $event->getEvents();

// Get a specific event by ID
$eventId = 'your-event-id';
$event = $event->getEvent($eventId);

```

To update or delete an event, you can use the respective methods:

```
// Update an event
$eventId = 'your-event-id';
$updatedEvent = $event->updateEvent($eventId);

// Delete an event
$eventId = 'your-event-id';
$deletedEvent = $event->deleteEvent($eventId);

```

Please note that you need to set up your Google Calendar API credentials correctly in the configuration file for these methods to work.

### Using Google Service Account

[](#using-google-service-account)

If you want to use the package with a Google Service Account, you need to follow these additional steps:

1. Make sure you have a Google Workspace (formerly G Suite) account and access to the Google Console.
2. Activate the Domain-wide Delegation for your service account:

    - Go to the Google Cloud Console.
    - Select your project and navigate to the "IAM &amp; Admin" -&gt; "Service Accounts" section.
    - Find your service account and click on the "Edit" button.
    - Enable the "Enable Domain-wide Delegation" option.
    - Save the changes.
3. Obtain the client\_email from your service account JSON key file.
4. Activate the Domain-wide Delegation Policy:

    - Go to your Google Workspace Admin Console.
    - Navigate to "Security" -&gt; "API Controls" -&gt; "Domain-wide Delegation".
    - Click on "Add new" and enter your client\_id.
    - Specify the scopes you want to grant access to (e.g., ).
    - Save the changes.
5. In your .env file, add the following variable with your client\_email:

> GOOGLE\_CALENDAR\_IMPERSONATE=

Contributing
------------

[](#contributing)

If you encounter any issues or have suggestions for improvements, feel free to open an issue or submit a pull request on GitHub. We appreciate your contributions!

License
-------

[](#license)

This package is open-source software licensed under the [MIT license](https://opensource.org/license/mit/).

###  Health Score

34

—

LowBetter than 74% of packages

Maintenance57

Moderate activity, may be stable

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~72 days

Recently: every ~0 days

Total

13

Last Release

282d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/58623065?v=4)[MHSahebgharani](/maintainers/MHSahebgharani)[@MHSahebgharani](https://github.com/MHSahebgharani)

---

Top Contributors

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

---

Tags

frameworklaravel

### Embed Badge

![Health badge](/badges/mhsaheb-google-calendar/health.svg)

```
[![Health](https://phpackages.com/badges/mhsaheb-google-calendar/health.svg)](https://phpackages.com/packages/mhsaheb-google-calendar)
```

###  Alternatives

[flow-php/flow

PHP ETL - Extract Transform Load - Data processing framework

86337.5k](/packages/flow-php-flow)[fleetbase/core-api

Core Framework and Resources for Fleetbase API

1239.7k25](/packages/fleetbase-core-api)[chameleon-system/chameleon-base

The Chameleon System core.

1029.4k6](/packages/chameleon-system-chameleon-base)[awcodes/filament-addons

A set of components / fields to extend Filament Admin.

3013.1k2](/packages/awcodes-filament-addons)

PHPackages © 2026

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