PHPackages                             gogochat/laravel-sdk - 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. gogochat/laravel-sdk

ActiveLibrary[API Development](/categories/api)

gogochat/laravel-sdk
====================

GoGo Empire Chat SDK for Laravel

043PHP

Since May 24Pushed 6y ago1 watchersCompare

[ Source](https://github.com/jimmy5312/gogochat-php)[ Packagist](https://packagist.org/packages/gogochat/laravel-sdk)[ RSS](/packages/gogochat-laravel-sdk/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

gogochat-php
============

[](#gogochat-php)

PHP Laravel SDK to use GoGo Empire Chat

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

[](#installation)

1. `composer require gogochat/laravel-sdk:dev-master`
2. At .env, add `CHAT_APP_SECRET=your-app-secret-string`
3. At config/app.php, add `'chat_app_secret' => env('CHAT_APP_SECRET', null)`

Usage
=====

[](#usage)

Assuming you have a Job model that requires chat between employer and employee for the job

Job.php

```
use Illuminate\Database\Eloquent\Model;
use GogoChat\Traits\HasChatRoom;
use GogoChat\Member;

class Job extends Model {
    use HasChatRoom;

    // Override this abstract method to return name of the chat room
    function getChatRoomName() {
        return "Job #{$this->id}";
    }

    // Override this to return the members of the chat room
    function getChatRoomMembers() {

        // You can manually create the Member object
        $boss = $this->employer;
        $employer = new Member([
          'uid' => $boss->id,
          'name' => $boss->name,
          'avatar' => $boss->profile_pic,
        ]);

        // Or use the trait GogoChat\Traits\IsChatMember to auto
        // extract the information.
        // $this->employee is a Model has the trait GogoChat\Traits\IsChatMember
        $employee = new Member($this->employee);

        // Can override the property if needed
        $employee->name = "The Cleaner";

        return [$employer, $employee];
    }
}

```

Employee.php

```

use GogoChat\Traits\IsChatMember;

class Employee extends Model {
    use IsChatMember;
    /**
     * This function to tell how to convert \App\Employee
     * into \GogoChat\Member
     *
     * @return array
     */
    function chatMemberOptions() {
        return [
            // Translated into $member->uid = $this->uid
            'uid'   => 'auto_id',

            // Translated into $member->name = 'Typist'
            'name'  => function() {
                return 'Typist';
            },

            // Dynamically get the avatar image
            'avatar'=> function() {
                if ($this->img_thumbnail) {
                    return BASE_THUMBNAIL_PATH . $this->img_thumbnail;
                }
                else if ($this->img) {
                    return BASE_IMG_PATH . $this->img;
                }
                return null;
            }
        ];
    }
}

```

When you need to get the ChatRoom properties,

```
  $job = Job::find(1);
  $chatRoom = $job->chat_room;

```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

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://www.gravatar.com/avatar/2c915a446e6c2aa64fa36e9a9f9fd2ba187a6d7fe1db16f9204e692fb61bc444?d=identicon)[jimmy5312](/maintainers/jimmy5312)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/gogochat-laravel-sdk/health.svg)

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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