PHPackages                             bernardinosousa/egoi-laravel - 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. bernardinosousa/egoi-laravel

ActiveLibrary[API Development](/categories/api)

bernardinosousa/egoi-laravel
============================

E-goi/sdk-php Wrapper for Laravel

v1.0(3y ago)03[3 PRs](https://github.com/bernardinosousa/egoi-laravel/pulls)MITPHPPHP ^8.1

Since Jan 20Pushed 2y ago1 watchersCompare

[ Source](https://github.com/bernardinosousa/egoi-laravel)[ Packagist](https://packagist.org/packages/bernardinosousa/egoi-laravel)[ Docs](https://github.com/bernardinosousa/egoi-laravel)[ RSS](/packages/bernardinosousa-egoi-laravel/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (14)Versions (5)Used By (0)

E-goi/sdk-php Wrapper for Laravel
=================================

[](#e-goisdk-php-wrapper-for-laravel)

[![Latest Version on Packagist](https://camo.githubusercontent.com/0d607dc325da7dc7e52ef7489c46d9b9443f1bc4f2f18fa2f1b35f3bb5ca5e77/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6265726e617264696e6f736f7573612f65676f692d6c61726176656c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/bernardinosousa/egoi-laravel)[![GitHub Tests Action Status](https://camo.githubusercontent.com/0a177e6a4070cd746e144965d93340a072569c9a6c6900ae871103d73f530a16/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6265726e617264696e6f736f7573612f65676f692d6c61726176656c2f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/bernardinosousa/egoi-laravel/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/3a22c95f62b53bcdbd4fe4cea734f5b3a22b0b7301af0408a4f7c96d1463a767/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6265726e617264696e6f736f7573612f65676f692d6c61726176656c2f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/bernardinosousa/egoi-laravel/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/f73db6edff1e9a340252e0d9177342e0fa8b225372cf1eaa094f082e35f5c531/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6265726e617264696e6f736f7573612f65676f692d6c61726176656c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/bernardinosousa/egoi-laravel)

Created this package on my free time to improve developer experience using Laravel/E-goi
I´m not affilied to [E-goi](https://www.e-goi.com/)

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

[](#installation)

You can install the package via composer:

```
composer require bernardinosousa/egoi-laravel
```

You can publish the config file with:

```
php artisan vendor:publish --tag="egoi-laravel-config"
```

Add to .env file:

```
EGOI_API_KEY="YOUR_API_KEY"
```

Usage
-----

[](#usage)

```
use Bernardinosousa\EgoiLaravel\Facades\EgoiLaravel;

//Get All Contacts from List
try {
    $listId = 1;

    $contactListResponse = EgoiLaravel::api('contacts')->getAllContacts(
        $listId
    );

    dump($contactResponse);
} catch (\Exception $e) {
    dump('Exception when getting all contacts from list: ', $e->getMessage());
}

//Get Contact Information from List Id and Contact Id
try {
    $listId = 1;

    $contactId = "f51f0117ba";

    $contactResponse = EgoiLaravel::api('contacts')->getContact(
        $contactId,
        $listId
    );

    dump($contactResponse);
} catch (\Exception $e) {
    dump('Exception when getting contact information: ', $e->getMessage());
}

//Create Contact from List
try {
    $contactBaseExtraPost = new \EgoiClient\EgoiModel\ContactBaseExtraPost([
        'base' => [
            "status" => "active",
            "first_name" => "John",
            "last_name" => "Doe",
            "birth_date" => "1975-01-10",
            "language" => "en",
            "email" => "example@e-goi.com",
            //"cellphone" => "351-300404336",
            //"phone" => "351-300404336",
            "push_token_android" => [],
            "push_token_ios" => []
        ]
    ]);

    $listId = 1;

    $contactResponse = EgoiLaravel::api('contacts')->createContact(
        $listId,
        $contactBaseExtraPost
    );

    dump($contactResponse);
} catch (\Exception $e) {
    dump('Exception when creating contact from list: ', $e->getMessage());
}
```

If you would like to have more examples, see [E-goi sdk-php endpoints](https://github.com/E-goi/sdk-php#api-endpoints)

Todo
----

[](#todo)

- AdvancedReportsApi
- AutomationsApi
- CNamesApi
- CampaignGroupsApi
- CampaignsApi
- ConnectedSitesApi
- EcommerceApi
- EcommerceActivityApi
- EmailApi
- FieldsApi
- ListsApi
- MyAccountApi
- OperationsApi
- PingApi
- PushApi
- ReportsApi
- SegmentsApi
- SendersApi
- SmartSmsApi
- SmsApi
- SuppressionListApi
- TagsApi
- TrackEngageApi
- UsersApi
- UtilitiesApi
- VoiceApi
- WebHooksApi
- WebpushApi

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

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

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Bernardino Sousa](https://github.com/bernardinosousa)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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

Unknown

Total

1

Last Release

1262d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f1403f95f96fa113bd5adf7b899de0b7654b4aa368d2b16e96d23b61a3cce458?d=identicon)[bernardinosousa](/maintainers/bernardinosousa)

---

Top Contributors

[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (4 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (4 commits)")[![bernardinosousa](https://avatars.githubusercontent.com/u/44657114?v=4)](https://github.com/bernardinosousa "bernardinosousa (3 commits)")

---

Tags

laravelbernardinosousaegoi-laravel

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/bernardinosousa-egoi-laravel/health.svg)

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

###  Alternatives

[dedoc/scramble

Automatic generation of API documentation for Laravel applications.

2.1k11.2M102](/packages/dedoc-scramble)[spatie/laravel-pdf

Create PDFs in Laravel apps

1.0k4.8M47](/packages/spatie-laravel-pdf)[defstudio/telegraph

A laravel facade to interact with Telegram Bots

816334.1k3](/packages/defstudio-telegraph)[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3914.6k](/packages/rawilk-profile-filament-plugin)[simplestats-io/laravel-client

Server-side analytics for Laravel that follows the full funnel from visit to registration to payment, attributed to the channel that drove it. Revenue, MRR, churn and ad-spend profit (ROAS/CAC) per channel. GDPR compliant, ad-blocker proof.

5022.0k](/packages/simplestats-io-laravel-client)[harris21/laravel-fuse

Circuit breaker for Laravel queue jobs. Protect your workers from cascading failures.

44855.7k](/packages/harris21-laravel-fuse)

PHPackages © 2026

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