PHPackages                             stephanecoinon/sendgrid-activity - 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. [Mail &amp; Notifications](/categories/mail)
4. /
5. stephanecoinon/sendgrid-activity

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

stephanecoinon/sendgrid-activity
================================

PHP Client for SendGrid e-Mail Activity API

021PHP

Since Aug 5Pushed 6y ago2 watchersCompare

[ Source](https://github.com/stephanecoinon/sendgrid-activity)[ Packagist](https://packagist.org/packages/stephanecoinon/sendgrid-activity)[ RSS](/packages/stephanecoinon-sendgrid-activity/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (2)Used By (0)

PHP Client for SendGrid e-Mail Activity API
===========================================

[](#php-client-for-sendgrid-e-mail-activity-api)

[![Latest Version on Packagist](https://camo.githubusercontent.com/4d79be59162ca2df4d959f75e2ed45d6ec49761fc55c02f9cb2e0f2784074570/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7374657068616e65636f696e6f6e2f73656e64677269642d61637469766974792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/stephanecoinon/sendgrid-activity)[![Build Status](https://camo.githubusercontent.com/88d969bf9fd25de9c9ec0d17202299cc2c5899ea5247b9503372456f0a3b6738/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f7374657068616e65636f696e6f6e2f73656e64677269642d61637469766974792f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/stephanecoinon/sendgrid-activity)[![Quality Score](https://camo.githubusercontent.com/d6070d09f1a6772018f40d2d1f64d9930ec2951f72bce0c789986755d571ec86/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f7374657068616e65636f696e6f6e2f73656e64677269642d61637469766974792e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/stephanecoinon/sendgrid-activity)[![Total Downloads](https://camo.githubusercontent.com/4103765af9f343d65d17c596550564b9c347faf311c8e7c9dd8b04b20356d270/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7374657068616e65636f696e6f6e2f73656e64677269642d61637469766974792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/stephanecoinon/sendgrid-activity)

Based on [SendGrid API v3](https://sendgrid.api-docs.io/v3.0/email-activity).

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

[](#installation)

You can install the package via composer:

```
composer require stephanecoinon/sendgrid-activity
```

This package is agnostic but also can integrate with Laravel (tested on 5.8 but should work &gt;=5.5).

Just add your SendGrid API key in `.env`:

```
SENDGRID_API_KEY=your_API_key_here

```

Then update `config/services.php` and you're good to go:

```
return [

    // ...

    'sendgrid' => [
        'key' => env('SENDGRID_API_KEY'),
    ],

];
```

Usage
-----

[](#usage)

```
use StephaneCoinon\SendGridActivity\Requests\MessagesRequest;
use StephaneCoinon\SendGridActivity\SendGrid;

// First, get SendGrid API client instance
// In vanilla PHP
$api = new SendGrid('your API key here');
// Or in Laravel
$api = app(SendGrid::class);

// Fetch the message activity
$messages = $api->request(
    (new MessagesRequest)
        ->limit(50)
        ->query('status="delivered"')
);
// Note: $messages will be a \Illuminate\Support\Collection when in a Laravel app

// Find a message by id
$message = $api->request(MessagesRequest::find('message-id'));
```

### Testing

[](#testing)

```
composer test
```

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

[](#contributing)

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

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Stéphane Coinon](https://github.com/stephanecoinon)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

PHP Package Boilerplate
-----------------------

[](#php-package-boilerplate)

This package was generated using the [PHP Package Boilerplate](https://laravelpackageboilerplate.com).

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 Bus Factor1

Top contributor holds 50% 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/bcf993deb6f73549b595654664517ba1e7640898ff75bf3b5fac2bdc95dc9fe5?d=identicon)[stephanecoinon](/maintainers/stephanecoinon)

---

Top Contributors

[![dentalserve-stephane](https://avatars.githubusercontent.com/u/146490150?v=4)](https://github.com/dentalserve-stephane "dentalserve-stephane (1 commits)")[![scrutinizer-auto-fixer](https://avatars.githubusercontent.com/u/6253494?v=4)](https://github.com/scrutinizer-auto-fixer "scrutinizer-auto-fixer (1 commits)")

### Embed Badge

![Health badge](/badges/stephanecoinon-sendgrid-activity/health.svg)

```
[![Health](https://phpackages.com/badges/stephanecoinon-sendgrid-activity/health.svg)](https://phpackages.com/packages/stephanecoinon-sendgrid-activity)
```

###  Alternatives

[tijsverkoyen/css-to-inline-styles

CssToInlineStyles is a class that enables you to convert HTML-pages/files into HTML-pages/files with inline styles. This is very useful when you're sending emails.

5.8k505.3M228](/packages/tijsverkoyen-css-to-inline-styles)[minishlink/web-push

Web Push library for PHP

1.9k12.0M53](/packages/minishlink-web-push)[laravel-notification-channels/twilio

Provides Twilio notification channel for Laravel

2587.7M12](/packages/laravel-notification-channels-twilio)[spatie/url-signer

Generate a url with an expiration date and signature to prevent unauthorized access

4422.3M16](/packages/spatie-url-signer)[mattketmo/email-checker

Throwaway email detection library

2742.0M5](/packages/mattketmo-email-checker)[laravel-notification-channels/discord

Laravel notification driver for Discord.

2371.3M11](/packages/laravel-notification-channels-discord)

PHPackages © 2026

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