PHPackages                             spatie/laravel-there-there - 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. spatie/laravel-there-there

ActiveLibrary[API Development](/categories/api)

spatie/laravel-there-there
==========================

Expose application data as JSON for There There

1.0.0(3mo ago)22.2kMITPHPPHP ^8.3CI passing

Since Mar 26Pushed 3w agoCompare

[ Source](https://github.com/spatie/laravel-there-there)[ Packagist](https://packagist.org/packages/spatie/laravel-there-there)[ Docs](https://github.com/spatie/laravel-there-there)[ GitHub Sponsors](https://github.com/:vendor_name)[ RSS](/packages/spatie-laravel-there-there/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (2)Dependencies (26)Versions (7)Used By (0)

Expose application data as JSON for There There
===============================================

[](#expose-application-data-as-json-for-there-there)

[![Latest Version on Packagist](https://camo.githubusercontent.com/ae87626a99e1dd5f634d58a976efbdf4ce28eca10db2916a841f39ec562045df/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7370617469652f6c61726176656c2d74686572652d74686572652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/spatie/laravel-there-there)[![GitHub Tests Action Status](https://github.com/spatie/laravel-there-there/actions/workflows/run-tests.yml/badge.svg)](https://github.com/spatie/laravel-there-there/actions?query=workflow%3Arun-tests+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/7b33ad2b88fe009282c345a56588edebc4d99aa5d13e384c70a7a02d018e625f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7370617469652f6c61726176656c2d74686572652d74686572652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/spatie/laravel-there-there)

This package makes it easy to expose application data to [There There](https://there-there.app). When a customer opens a ticket in There There, it will call your application to fetch relevant data and display it in the sidebar.

Support us
----------

[](#support-us)

[![](https://camo.githubusercontent.com/470716a3a68d93f44c830e53cb3edc9fa74d83abd250f0a2e7c65e9c66ec4ed2/68747470733a2f2f6769746875622d6164732e73332e65752d63656e7472616c2d312e616d617a6f6e6177732e636f6d2f6c61726176656c2d74686572652d74686572652e6a70673f743d31)](https://spatie.be/github-ad-click/laravel-there-there)

We invest a lot of resources into creating [best in class open source packages](https://spatie.be/open-source). You can support us by [buying one of our paid products](https://spatie.be/open-source/support-us).

We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on [our contact page](https://spatie.be/about-us). We publish all received postcards on [our virtual postcard wall](https://spatie.be/open-source/postcards).

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

[](#installation)

You can install the package via composer:

```
composer require spatie/laravel-there-there
```

You can publish the config file with:

```
php artisan vendor:publish --tag="there-there-config"
```

This is the contents of the published config file:

```
return [
    'secret' => env('THERE_THERE_SECRET'),
    'url' => '/there-there',
    'middleware' => [
        Spatie\ThereThere\Http\Middleware\IsValidThereThereRequest::class,
        'api',
    ],
];
```

Add the secret to your `.env` file. You can find it in your There There workspace settings.

```
THERE_THERE_SECRET=your-secret-here

```

Usage
-----

[](#usage)

In a service provider (for example `AppServiceProvider`), register a sidebar callback using the `ThereThere` facade:

```
use Spatie\ThereThere\Facades\ThereThere;
use Spatie\ThereThere\SidebarItem;
use Spatie\ThereThere\Http\Requests\ThereThereRequest;

ThereThere::sidebar(function (ThereThereRequest $request) {
    $user = User::firstWhere('email', $request->email());

    if (! $user) {
        return [];
    }

    return [
        SidebarItem::markdown('Name', $user->name),
        SidebarItem::date('Registered at', $user->created_at),
        SidebarItem::numeric('Total orders', $user->orders()->count()),
        SidebarItem::boolean('Is subscribed', $user->subscribed()),
    ];
});
```

Each `SidebarItem` has a name, value, and type. The following types are available:

TypeMethodValue`numeric``SidebarItem::numeric($name, $value)`An integer or float`markdown``SidebarItem::markdown($name, $value)`A string (supports Markdown)`date``SidebarItem::date($name, $value)`A `DateTimeInterface` or ISO 8601 string`boolean``SidebarItem::boolean($name, $value)`A booleanThe package will respond with JSON in this format:

```
{
    "data": [
        {"name": "Name", "value": "John Doe", "type": "markdown"},
        {"name": "Registered at", "value": "2024-01-15T10:30:00+00:00", "type": "date"},
        {"name": "Total orders", "value": 42, "type": "numeric"},
        {"name": "Is subscribed", "value": true, "type": "boolean"}
    ]
}
```

Security
--------

[](#security)

All requests are verified using HMAC-SHA256 signatures. The package will reject any request without a valid `X-There-There-Signature` header.

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

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

Credits
-------

[](#credits)

- [Freek Van der Herten](https://github.com/freekmurze)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

47

—

FairBetter than 93% of packages

Maintenance90

Actively maintained with recent releases

Popularity25

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 71.4% 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 ~0 days

Total

5

Last Release

92d ago

Major Versions

0.0.4 → 1.0.02026-03-26

PHP version history (2 changes)0.0.1PHP ^8.4

0.0.3PHP ^8.3

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

spatielaravelhelpdeskthere-there

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/spatie-laravel-there-there/health.svg)

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

###  Alternatives

[spatie/laravel-permission

Permission handling for Laravel 12 and up

12.9k98.0M1.3k](/packages/spatie-laravel-permission)[dedoc/scramble

Automatic generation of API documentation for Laravel applications.

2.1k9.9M90](/packages/dedoc-scramble)[spatie/laravel-pdf

Create PDFs in Laravel apps

1.0k4.3M42](/packages/spatie-laravel-pdf)[spatie/laravel-health

Monitor the health of a Laravel application

87411.3M153](/packages/spatie-laravel-health)[defstudio/telegraph

A laravel facade to interact with Telegram Bots

815320.5k3](/packages/defstudio-telegraph)[spatie/laravel-passkeys

Use passkeys in your Laravel app

470755.5k32](/packages/spatie-laravel-passkeys)

PHPackages © 2026

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