PHPackages                             imdigital/magento-serverless-gcp - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. imdigital/magento-serverless-gcp

ActiveMagento2-module[Utility &amp; Helpers](/categories/utility)

imdigital/magento-serverless-gcp
================================

Add Google Cloud functions to the serverless framework

1.0.1(3y ago)202OSL-3.0PHPPHP &gt;=8.1

Since Mar 1Pushed 3y agoCompare

[ Source](https://github.com/Imagination-Media/magento-serverless-gcp)[ Packagist](https://packagist.org/packages/imdigital/magento-serverless-gcp)[ RSS](/packages/imdigital-magento-serverless-gcp/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (3)Versions (3)Used By (0)

[![Magento logo](https://camo.githubusercontent.com/e2fb4d9e3a6606febb15922c2a6b8d6bb7c0761c40a565a5c0e4c99914920e7d/68747470733a2f2f75706c6f61642e77696b696d656469612e6f72672f77696b6970656469612f656e2f7468756d622f352f35332f4d6167656e746f2e7376672f3132383070782d4d6167656e746f2e7376672e706e67)](https://camo.githubusercontent.com/e2fb4d9e3a6606febb15922c2a6b8d6bb7c0761c40a565a5c0e4c99914920e7d/68747470733a2f2f75706c6f61642e77696b696d656469612e6f72672f77696b6970656469612f656e2f7468756d622f352f35332f4d6167656e746f2e7376672f3132383070782d4d6167656e746f2e7376672e706e67) [![Google Cloud logo](https://camo.githubusercontent.com/2495e33867d65b0d555c281f82285ec1e13c538363a3fb75621e017e4467a20a/68747470733a2f2f636c6f75642e676f6f676c652e636f6d2f5f7374617469632f636c6f75642f696d616765732f736f6369616c2d69636f6e2d676f6f676c652d636c6f75642d313230302d3633302e706e67)](https://camo.githubusercontent.com/2495e33867d65b0d555c281f82285ec1e13c538363a3fb75621e017e4467a20a/68747470733a2f2f636c6f75642e676f6f676c652e636f6d2f5f7374617469632f636c6f75642f696d616765732f736f6369616c2d69636f6e2d676f6f676c652d636c6f75642d313230302d3633302e706e67)

 Google Cloud Functions for the Magento 2 Serverless Framework
---------------------------------------------------------------

[](#--google-cloud-functions-for-the-magento-2-serverless-framework)

#### **This Magento module will extend the [Magento 2 serverless framework module](https://github.com/Imagination-Media/magento-serverless) allowing us to use Google Cloud Functions.**

[](#this-magento-module-will-extend-the-magento-2-serverless-framework-module-allowing-us-to-use-google-cloud-functions)

[![](https://camo.githubusercontent.com/cb059cf7f9dae23755c6fd6f78095293ddf85f13a500bc22a5e7a3c2cf7cde88/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c616e67756167652d5048502d626c7565)](https://camo.githubusercontent.com/cb059cf7f9dae23755c6fd6f78095293ddf85f13a500bc22a5e7a3c2cf7cde88/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c616e67756167652d5048502d626c7565) [![](https://camo.githubusercontent.com/14c677a2107f7f89b4b0a134e6f745e3117c0ec18e6e18a668ab8ce35f6866c9/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f45636f6d6d657263652d4d6167656e746f2d6f72616e6765)](https://camo.githubusercontent.com/14c677a2107f7f89b4b0a134e6f745e3117c0ec18e6e18a668ab8ce35f6866c9/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f45636f6d6d657263652d4d6167656e746f2d6f72616e6765) [![](https://camo.githubusercontent.com/ae7e492a17764667d495db9620c00b90ad7450462024d4caec29534192ae09f1/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f486f7374696e6725323050726f76696465722d476f6f676c65253230436c6f75642d626c7565)](https://camo.githubusercontent.com/ae7e492a17764667d495db9620c00b90ad7450462024d4caec29534192ae09f1/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f486f7374696e6725323050726f76696465722d476f6f676c65253230436c6f75642d626c7565) [![](https://camo.githubusercontent.com/8439195364c770e54aea8fa85d97c52e1c5c33779cd500cf5e6a9cad95950998/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4372656174656425323042792d494d4469676974616c2d6f72616e6765)](https://camo.githubusercontent.com/8439195364c770e54aea8fa85d97c52e1c5c33779cd500cf5e6a9cad95950998/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4372656174656425323042792d494d4469676974616c2d6f72616e6765)

Installation
============

[](#installation)

Requirements
------------

[](#requirements)

- Magento &gt;= 2.4.5-p1
- PHP &gt;= 8.1
- [Grpc for PHP](https://cloud.google.com/php/grpc)

Installing the module and enabling it
-------------------------------------

[](#installing-the-module-and-enabling-it)

To install this module we must run the composer require command requesting its installation:

```
composer require imdigital/magento-serverless-gcp

```

Then, enable it by modifying the app/etc/config.php or running the CLI command:

```
php bin/magento module:enable ImDigital_ServerlessGcp

```

Serverless function setup
=========================

[](#serverless-function-setup)

When adding a new serverless function into the ***serverless\_functions*** database table, we must use **gcp** as the cloud provider code on the **cloud\_provider** field.

The cloud config field expects a (encrypted) JSON on this format:

```
{
    "region_id": "us-central1",
    "serviceaccount_key": {
        "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
        "auth_uri": "https://accounts.google.com/o/oauth2/auth",
        "client_email": "my-service-account-email",
        "client_id": "my-client-id",
        "client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/my-cert-url",
        "private_key": "my-private-key",
        "private_key_id": "my-private-key-id",
        "project_id": "my-gcp-project-id",
        "token_uri": "https://oauth2.googleapis.com/token",
        "type": "service_account"
    }
}
```

The ***region\_id*** is the region where the cloud function is hosted. The ***serviceaccount\_key*** field is a [service account that we must create](https://cloud.google.com/iam/docs/service-account-overview), and then [generate a JSON service account key](https://cloud.google.com/iam/docs/keys-create-delete) with access to execute the functions.

These are the permissions you must add to your service account in order to be able to execute cloud functions:

[![Service Account permissions](https://github.com/Imagination-Media/magento-serverless-gcp/raw/master/screenshots/iam-permissions.png)](https://github.com/Imagination-Media/magento-serverless-gcp/blob/master/screenshots/iam-permissions.png)
*Service account permissions*

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

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 ~12 days

Total

2

Last Release

1161d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ba4717066272b685269252b40d37f3dbe3114cf008e7af57fe71d6b0c77268c1?d=identicon)[igor-imaginemage](/maintainers/igor-imaginemage)

---

Top Contributors

[![igor-imaginemage](https://avatars.githubusercontent.com/u/25936073?v=4)](https://github.com/igor-imaginemage "igor-imaginemage (5 commits)")

### Embed Badge

![Health badge](/badges/imdigital-magento-serverless-gcp/health.svg)

```
[![Health](https://phpackages.com/badges/imdigital-magento-serverless-gcp/health.svg)](https://phpackages.com/packages/imdigital-magento-serverless-gcp)
```

###  Alternatives

[alibaba/nacos

阿里巴巴nacos配置中心php客户端

19340.8k1](/packages/alibaba-nacos)[hasanmertermis/milvus-php-client

Milvus 2 Grpc Php Client

142.1k](/packages/hasanmertermis-milvus-php-client)

PHPackages © 2026

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