PHPackages                             reedtechus/azure-data-explorer-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. reedtechus/azure-data-explorer-laravel

ActiveLibrary

reedtechus/azure-data-explorer-laravel
======================================

Azure Data Explorer SDK for Laravel

v0.3.0(3y ago)224[4 PRs](https://github.com/reedtechus/azure-data-explorer-laravel/pulls)MITPHPPHP ^8.1

Since Nov 8Pushed 2y agoCompare

[ Source](https://github.com/reedtechus/azure-data-explorer-laravel)[ Packagist](https://packagist.org/packages/reedtechus/azure-data-explorer-laravel)[ Docs](https://github.com/reedtechus/azure-data-explorer-laravel)[ RSS](/packages/reedtechus-azure-data-explorer-laravel/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)Dependencies (14)Versions (11)Used By (0)

[![logo-print-hd-transparent](https://user-images.githubusercontent.com/77644584/200294033-8c4d0980-56ba-4443-96f0-9dde0753a4df.png)](https://user-images.githubusercontent.com/77644584/200294033-8c4d0980-56ba-4443-96f0-9dde0753a4df.png)

Azure Data Explorer SDK for Laravel
===================================

[](#azure-data-explorer-sdk-for-laravel)

[![Latest Version on Packagist](https://camo.githubusercontent.com/11d53f2326dc709b587b0c85eaca99f1d49e740e7a59152b14a3b8ced1615100/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f726565647465636875732f617a7572652d646174612d6578706c6f7265722d6c61726176656c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/reedtechus/azure-data-explorer-laravel)[![GitHub Tests Action Status](https://camo.githubusercontent.com/61c25bf84ecca51d3024231bde33fbae3f1f0363322f464a6dfe9f6fe4e66ff9/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f726565647465636875732f617a7572652d646174612d6578706c6f7265722d6c61726176656c2f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/reedtechus/azure-data-explorer-laravel/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/4094354cd3894d20f19b8ec8e21b946dfbd6d4036c8875f86d0a0d02d07b7305/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f726565647465636875732f617a7572652d646174612d6578706c6f7265722d6c61726176656c2f466978253230504850253230636f64652532307374796c652532306973737565733f6c6162656c3d636f64652532307374796c65)](https://github.com/reedtechus/azure-data-explorer-laravel/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/047c4aefe3169e333b75eea506bdde3a64ea513c9739c11edd89528d041fab70/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f726565647465636875732f617a7572652d646174612d6578706c6f7265722d6c61726176656c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/reedtechus/azure-data-explorer-laravel)

This project is a Laravel package that allows you to connect to Azure Data Explorer and execute queries from your Laravel Application.

> ⚠️ **Experimental:** This package is still in development and is not ready for production use. Breaking changes can still occur **without** a major version change until **1.0.0**.

This package is a direct extension of the [Azure Data Explorer SDK for PHP](https://github.com/reedtechus/azure-data-explorer) by [Reed Tech](https://github.com/reedtechus) which provides a PHP SDK to interact with the [Azure Data Explorer REST API](https://learn.microsoft.com/en-us/azure/data-explorer/kusto/api/rest/).

Goals
-----

[](#goals)

The goal of this project is to provide a Laravel friendly interface to the [Azure Data Explorer SDK](https://github.com/reedtechus/azure-data-explorer) package.

**Feature Roadmap**

- Caching via Redis

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

[](#installation)

You can install the package via composer:

```
composer require reedtechus/azure-data-explorer-laravel
```

The following environment variables are **required** for this package to work:

```
# Azure Data Explorer
AZURE_DATA_EXPLORER_TENANT_ID="TENANT_ID"
AZURE_DATA_EXPLORER_CLIENT_ID="CLIENT_ID"
AZURE_DATA_EXPLORER_CLIENT_SECRET="SECRET"
AZURE_DATA_EXPLORER_CLUSTER="CLUSTER"
AZURE_DATA_EXPLORER_REGION="REGION"
AZURE_DATA_EXPLORER_DATABASE="DATABASE_NAME"
```

You can publish the config file with:

```
php artisan vendor:publish --tag="azure-data-explorer-laravel-config"
```

This is the contents of the published config file:

```
return [
	/*
    |--------------------------------------------------------------------------
    | Azure Data Explorer
    |--------------------------------------------------------------------------
    |
    | This is the configuration for the Azure Data Explorer package.
    |
    */

    // The base URL of the Azure Data Explorer API.
    'base_url' => env('AZURE_DATA_EXPLORER_BASE_URL', 'https://login.microsoftonline.com'),

    // The tenant ID of the Azure Data Explorer API.
    'tenant_id' => env('AZURE_DATA_EXPLORER_TENANT_ID'),

    // The client ID of the Azure Data Explorer API.
    'client_id' => env('AZURE_DATA_EXPLORER_CLIENT_ID'),

    // The client secret of the Azure Data Explorer API.
    'client_secret' => env('AZURE_DATA_EXPLORER_CLIENT_SECRET'),

    // The cache driver to use for caching responses.
    'cache_driver' => env('AZURE_DATA_EXPLORER_CACHE_DRIVER', 'redis'),

    // The cache TTL to use for caching responses.
    'cache_ttl' => env('AZURE_DATA_EXPLORER_CACHE_TTL', 3500),

    // The cluster of the Azure Data Explorer API.
    'cluster' => env('AZURE_DATA_EXPLORER_CLUSTER'),

    // The region of the Azure Data Explorer API.
    'region' => env('AZURE_DATA_EXPLORER_REGION'),

	// The database of the Azure Data Explorer API.
	'database' => env('AZURE_DATA_EXPLORER_DATABASE'),
];
```

Usage
-----

[](#usage)

```
// Option A: More efficient to save and re-use the AzureDataExplorer class instance for followup queries
$de = new AzureDataExplorer();
$results = $de->query($query);

// Option B: you can use the AzureDataExplorer::queryOnce() method to perform the query
$results = AzureDataExplorer::queryOnce($query);
```

These calls return a `QueryResultsDTO` object (or throw an exception).

**Using the results**

```
dump('Columns: '.implode(', ', $results->columns));
dump('Number of Results: '.count($results->data));
dump('Execution Time: '.$results->executionTime);

dump('First Row: '.print_r($results->data[0], true));
```

Testing
-------

[](#testing)

```
composer test
```

Dependencies
------------

[](#dependencies)

- [Azure Data Explorer REST API](https://learn.microsoft.com/en-us/azure/data-explorer/kusto/api/rest/)
- [Reed Tech's](https://github.com/reedtechus/azure-data-explorer) package, [Azure Data Explorer PHP SDK](https://github.com/reedtechus/azure-data-explorer)

Changelog
---------

[](#changelog)

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

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

[](#security-vulnerabilities)

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

Credits
-------

[](#credits)

- [Chris Reed](https://github.com/chrisreedio)
- [All Contributors](../../contributors)

This package is not endorsed nor supported by [Microsoft](https://github.com/microsoft) in any way.

License
-------

[](#license)

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

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 76.7% 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 ~36 days

Total

5

Last Release

1136d ago

### Community

Maintainers

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

---

Top Contributors

[![chrisreedio](https://avatars.githubusercontent.com/u/77644584?v=4)](https://github.com/chrisreedio "chrisreedio (33 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (5 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (5 commits)")

---

Tags

azuredata-explorerkustolaravelphplaravelreedtechusazure-data-explorer-laravel

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/reedtechus-azure-data-explorer-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/reedtechus-azure-data-explorer-laravel/health.svg)](https://phpackages.com/packages/reedtechus-azure-data-explorer-laravel)
```

###  Alternatives

[vormkracht10/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24149.7k](/packages/vormkracht10-laravel-mails)[spatie/laravel-prometheus

Export Laravel metrics to Prometheus

2651.3M6](/packages/spatie-laravel-prometheus)[hydrat/filament-table-layout-toggle

Filament plugin adding a toggle button to tables, allowing user to switch between Grid and Table layouts.

6292.3k1](/packages/hydrat-filament-table-layout-toggle)[scalar/laravel

Render your OpenAPI-based API reference

6183.9k2](/packages/scalar-laravel)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)[musahmusah/laravel-multipayment-gateways

A Laravel Package that makes implementation of multiple payment Gateways endpoints and webhooks seamless

852.2k1](/packages/musahmusah-laravel-multipayment-gateways)

PHPackages © 2026

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