PHPackages                             igorsgm/laravel-redash - 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. igorsgm/laravel-redash

ActiveLibrary[API Development](/categories/api)

igorsgm/laravel-redash
======================

📊 • A Laravel wrapper to empower your applications with Redash.io APIs. Extract, analyze, and leverage your Redash data right from your app!

1.2.0(9mo ago)428MITPHPPHP ^8.2CI passing

Since Jul 3Pushed 9mo ago1 watchersCompare

[ Source](https://github.com/igorsgm/laravel-redash)[ Packagist](https://packagist.org/packages/igorsgm/laravel-redash)[ Docs](https://github.com/igorsgm/laravel-redash)[ RSS](/packages/igorsgm-laravel-redash/feed)WikiDiscussions main Synced yesterday

READMEChangelog (5)Dependencies (15)Versions (8)Used By (0)

📊 Laravel Redash
================

[](#-laravel-redash)

Unleash the power of [Redash.io](https://redash.io/ "Redash") APIs in your Laravel applications. This package allows you to easily extract, analyze, and leverage your data directly within your application. Transform your data management today!

 [ ![Latest Version on Packagist](https://camo.githubusercontent.com/9530a440dda872fa796b8d598378a1e031b3b49472baea206375c4bd27c4555e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f69676f7273676d2f6c61726176656c2d7265646173682e7376673f7374796c653d666c61742d737175617265) ](https://packagist.org/packages/igorsgm/laravel-redash) [ ![GitHub Tests Action Status](https://camo.githubusercontent.com/3c28cd380e4d90fdb3fb336de36ff68b355fca12cd220d91ab2b53462551765d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f69676f7273676d2f6c61726176656c2d7265646173682f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265) ](https://github.com/igorsgm/laravel-redash/actions?query=workflow%3Arun-tests+branch%3Amain) [![Test Coverage](https://camo.githubusercontent.com/c2b48bf978a9d776f2746b16bcf4e72a4ea9f7d804445b752ac569539c22b1f5/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f69676f7273676d2f6c61726176656c2d7265646173682f6d61696e3f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/c2b48bf978a9d776f2746b16bcf4e72a4ea9f7d804445b752ac569539c22b1f5/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f69676f7273676d2f6c61726176656c2d7265646173682f6d61696e3f7374796c653d666c61742d737175617265) [![Code Quality](https://camo.githubusercontent.com/15df03cffc9ad1d82337e1e5f3a4c92c8dadd46db0c4f205139e222f0e0dd2b2/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f7175616c6974792f672f69676f7273676d2f6c61726176656c2d7265646173682f6d61696e3f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/15df03cffc9ad1d82337e1e5f3a4c92c8dadd46db0c4f205139e222f0e0dd2b2/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f7175616c6974792f672f69676f7273676d2f6c61726176656c2d7265646173682f6d61696e3f7374796c653d666c61742d737175617265) [ ![Total Downloads](https://camo.githubusercontent.com/1c9e2d10a0fd022e9180870aa3bac11a42d9e572f9f91636bfcf27f7305e724f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f69676f7273676d2f6c61726176656c2d7265646173682e7376673f7374796c653d666c61742d737175617265) ](https://packagist.org/packages/igorsgm/laravel-redash)

---

✨ Features
----------

[](#-features)

> - **Queries**: Easily create, edit, or archive query objects directly from your Laravel application. The package returns paginated arrays of query objects and supports the extraction of individual query objects too.
> - **Query Results**: Initiate a new query execution or return a cached result effortlessly. Handle parameterized queries and manage max\_age for cache bypassing with provided methods.
> - **Dashboards**: Create, edit, or archive dashboard objects seamlessly. Fetch an array of dashboard objects or individual ones directly from your Laravel application.
> - **Jobs**: Monitor the status of your query tasks effectively.

1️⃣ Installation
----------------

[](#1️⃣-installation)

- You can install the package via composer:

```
composer require igorsgm/laravel-redash
```

- You can publish the config file with:

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

2️⃣ Usage
---------

[](#2️⃣-usage)

#### Define Redash API credentials in your `.env` file. i.e.:

[](#define-redash-api-credentials-in-your-env-file-ie)

```
REDASH_BASE_URL=foo:bar
REDASH_API_KEY=12345678900987654321

```

### Summary

[](#summary)

- Redash API Documentation:

ResourceMethodsRedash::queries()all, get, create, update, delete, getCachedResult, executeOrGetResult, getResultRedash::queryResults()getRedash::dashboards()all, get, create, update, deleteRedash::jobs()get### Queries

[](#queries)

```
// Returns a paginated array of query objects.
Redash::queries()->all();

// Returns an individual query object.
Redash::queries()->get($queryId);

// Create a new query object.
Redash::queries()->create([
    'name' => 'My Query',
    'data_source_id' => 1,
    'query' => 'SELECT * FROM table',
    'description' => 'My Query Description',
    // ...
]);

// Edit an existing query object.
Redash::queries()->update($queryId, [
    'name' => 'My New Query Name',
    // ...
]);

// Archive an existing query.
Redash::queries()->delete($queryId);

// Get a cached result for this query ID
Redash::queries()->getCachedResult($queryId);

// Initiates a new query execution or returns a cached result.
Redash::queries()->executeOrGetResult($queryId, [
    'parameters' => [
        'foo' => 'bar',
    ],
    'max_age' => 0,
]);
```

- Execute a Query and return its result once ready (custom method).

```
// The maximum age (in milliseconds) of a cached result that the method should return.
// If a cached result is older than this, a new query execution will begin.
// Set to `0` to always start a new execution.
$maxAge = 1800;

// The number of times to retry the query execution if it is still in progress.
$retryAttempts = 20;

Redash::queries()->getResult($queryId, [
    'foo' => 'bar',
], $maxAge, $retryAttempts);
```

### Query Results

[](#query-results)

```
// Returns a query result
Redash::queryResults()->get($queryResultId);
```

### Dashboards

[](#dashboards)

```
Redash::dashboards()->all();
Redash::dashboards()->get($dashboardId);
Redash::dashboards()->create([
    // ...
]);
Redash::dashboards()->update($dashboardId, [
    // ...
]);
Redash::dashboards()->delete($dashboardId);
```

### Jobs

[](#jobs)

```
Redash::jobs()->get($jobId);
```

---

### Testing

[](#testing)

```
composer test
```

### Changelog

[](#changelog)

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

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)

- [Igor Moraes](https://github.com/igorsgm)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance57

Moderate activity, may be stable

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

Established project with proven stability

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

Total

5

Last Release

283d ago

PHP version history (2 changes)1.0.0PHP ^8.1

1.2.0PHP ^8.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/14129843?v=4)[Igor Moraes](/maintainers/igorsgm)[@igorsgm](https://github.com/igorsgm)

---

Top Contributors

[![igorsgm](https://avatars.githubusercontent.com/u/14129843?v=4)](https://github.com/igorsgm "igorsgm (21 commits)")

---

Tags

laraveligorsgmredashlaravel-redashredash.ioredash-api

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/igorsgm-laravel-redash/health.svg)

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

###  Alternatives

[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.

5021.9k](/packages/simplestats-io-laravel-client)[defstudio/telegraph

A laravel facade to interact with Telegram Bots

816333.8k3](/packages/defstudio-telegraph)[dedoc/scramble

Automatic generation of API documentation for Laravel applications.

2.1k11.2M100](/packages/dedoc-scramble)[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[spatie/laravel-health

Monitor the health of a Laravel application

87512.0M165](/packages/spatie-laravel-health)[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)

PHPackages © 2026

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