{"id":42376407,"url":"https://github.com/reedtechus/azure-data-explorer-laravel","last_synced_at":"2026-01-27T20:50:22.825Z","repository":{"id":62864247,"uuid":"563039248","full_name":"reedtechus/azure-data-explorer-laravel","owner":"reedtechus","description":"Azure Data Explorer SDK for Laravel","archived":false,"fork":false,"pushed_at":"2023-10-09T20:14:13.000Z","size":48,"stargazers_count":2,"open_issues_count":4,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-13T09:49:01.621Z","etag":null,"topics":["azure","data-explorer","kusto","laravel","php"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/reedtechus.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-11-07T19:29:59.000Z","updated_at":"2023-06-29T19:37:01.000Z","dependencies_parsed_at":"2023-02-16T19:31:32.829Z","dependency_job_id":null,"html_url":"https://github.com/reedtechus/azure-data-explorer-laravel","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":"spatie/package-skeleton-laravel","purl":"pkg:github/reedtechus/azure-data-explorer-laravel","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reedtechus%2Fazure-data-explorer-laravel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reedtechus%2Fazure-data-explorer-laravel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reedtechus%2Fazure-data-explorer-laravel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reedtechus%2Fazure-data-explorer-laravel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/reedtechus","download_url":"https://codeload.github.com/reedtechus/azure-data-explorer-laravel/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reedtechus%2Fazure-data-explorer-laravel/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28822128,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-27T18:44:20.126Z","status":"ssl_error","status_checked_at":"2026-01-27T18:44:09.161Z","response_time":168,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["azure","data-explorer","kusto","laravel","php"],"created_at":"2026-01-27T20:50:21.603Z","updated_at":"2026-01-27T20:50:22.817Z","avatar_url":"https://github.com/reedtechus.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"![logo-print-hd-transparent](https://user-images.githubusercontent.com/77644584/200294033-8c4d0980-56ba-4443-96f0-9dde0753a4df.png)\n\n# Azure Data Explorer SDK for Laravel\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/reedtechus/azure-data-explorer-laravel.svg?style=flat-square)](https://packagist.org/packages/reedtechus/azure-data-explorer-laravel)\n[![GitHub Tests Action Status](https://img.shields.io/github/workflow/status/reedtechus/azure-data-explorer-laravel/run-tests?label=tests)](https://github.com/reedtechus/azure-data-explorer-laravel/actions?query=workflow%3Arun-tests+branch%3Amain)\n[![GitHub Code Style Action Status](https://img.shields.io/github/workflow/status/reedtechus/azure-data-explorer-laravel/Fix%20PHP%20code%20style%20issues?label=code%20style)](https://github.com/reedtechus/azure-data-explorer-laravel/actions?query=workflow%3A\"Fix+PHP+code+style+issues\"+branch%3Amain)\n[![Total Downloads](https://img.shields.io/packagist/dt/reedtechus/azure-data-explorer-laravel.svg?style=flat-square)](https://packagist.org/packages/reedtechus/azure-data-explorer-laravel)\n\nThis project is a Laravel package that allows you to connect to Azure Data Explorer and execute queries from your Laravel Application.\n\n\u003e :warning: **Experimental:** This package is still in development and is not ready for production use.\n\u003e Breaking changes can still occur **without** a major version change until **1.0.0**.\n\nThis 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/).\n\n## Goals\n\nThe 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.\n\n**Feature Roadmap**\n\n-   [ ] Caching via Redis\n\n## Installation\n\nYou can install the package via composer:\n\n```bash\ncomposer require reedtechus/azure-data-explorer-laravel\n```\n\n\u003c!-- You can publish and run the migrations with:\n\n```bash\nphp artisan vendor:publish --tag=\"azure-data-explorer-laravel-migrations\"\nphp artisan migrate\n``` --\u003e\n\nThe following environment variables are **required** for this package to work:\n\n```dotenv\n# Azure Data Explorer\nAZURE_DATA_EXPLORER_TENANT_ID=\"TENANT_ID\"\nAZURE_DATA_EXPLORER_CLIENT_ID=\"CLIENT_ID\"\nAZURE_DATA_EXPLORER_CLIENT_SECRET=\"SECRET\"\nAZURE_DATA_EXPLORER_CLUSTER=\"CLUSTER\"\nAZURE_DATA_EXPLORER_REGION=\"REGION\"\nAZURE_DATA_EXPLORER_DATABASE=\"DATABASE_NAME\"\n```\n\nYou can publish the config file with:\n\n```bash\nphp artisan vendor:publish --tag=\"azure-data-explorer-laravel-config\"\n```\n\nThis is the contents of the published config file:\n\n```php\nreturn [\n\t/*\n    |--------------------------------------------------------------------------\n    | Azure Data Explorer\n    |--------------------------------------------------------------------------\n    |\n    | This is the configuration for the Azure Data Explorer package.\n    |\n    */\n\n    // The base URL of the Azure Data Explorer API.\n    'base_url' =\u003e env('AZURE_DATA_EXPLORER_BASE_URL', 'https://login.microsoftonline.com'),\n\n    // The tenant ID of the Azure Data Explorer API.\n    'tenant_id' =\u003e env('AZURE_DATA_EXPLORER_TENANT_ID'),\n\n    // The client ID of the Azure Data Explorer API.\n    'client_id' =\u003e env('AZURE_DATA_EXPLORER_CLIENT_ID'),\n\n    // The client secret of the Azure Data Explorer API.\n    'client_secret' =\u003e env('AZURE_DATA_EXPLORER_CLIENT_SECRET'),\n\n    // The cache driver to use for caching responses.\n    'cache_driver' =\u003e env('AZURE_DATA_EXPLORER_CACHE_DRIVER', 'redis'),\n\n    // The cache TTL to use for caching responses.\n    'cache_ttl' =\u003e env('AZURE_DATA_EXPLORER_CACHE_TTL', 3500),\n\n    // The cluster of the Azure Data Explorer API.\n    'cluster' =\u003e env('AZURE_DATA_EXPLORER_CLUSTER'),\n\n    // The region of the Azure Data Explorer API.\n    'region' =\u003e env('AZURE_DATA_EXPLORER_REGION'),\n\n\t// The database of the Azure Data Explorer API.\n\t'database' =\u003e env('AZURE_DATA_EXPLORER_DATABASE'),\n];\n```\n\n\u003c!-- Optionally, you can publish the views using\n\n```bash\nphp artisan vendor:publish --tag=\"azure-data-explorer-laravel-views\"\n``` --\u003e\n\n## Usage\n\n```php\n// Option A: More efficient to save and re-use the AzureDataExplorer class instance for followup queries\n$de = new AzureDataExplorer();\n$results = $de-\u003equery($query);\n\n// Option B: you can use the AzureDataExplorer::queryOnce() method to perform the query\n$results = AzureDataExplorer::queryOnce($query);\n```\n\nThese calls return a `QueryResultsDTO` object (or throw an exception).\n\n**Using the results**\n\n```php\n\ndump('Columns: '.implode(', ', $results-\u003ecolumns));\ndump('Number of Results: '.count($results-\u003edata));\ndump('Execution Time: '.$results-\u003eexecutionTime);\n\ndump('First Row: '.print_r($results-\u003edata[0], true));\n```\n\n## Testing\n\n```bash\ncomposer test\n```\n\n## Dependencies\n\n-   [Azure Data Explorer REST API](https://learn.microsoft.com/en-us/azure/data-explorer/kusto/api/rest/)\n-   [Reed Tech's](https://github.com/reedtechus/azure-data-explorer) package, [Azure Data Explorer PHP SDK](https://github.com/reedtechus/azure-data-explorer)\n\n## Changelog\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.\n\n\u003c!-- ## Contributing\n\nPlease see [CONTRIBUTING](CONTRIBUTING.md) for details. --\u003e\n\n## Security Vulnerabilities\n\nPlease review [our security policy](../../security/policy) on how to report security vulnerabilities.\n\n## Credits\n\n-   [Chris Reed](https://github.com/chrisreedio)\n-   [All Contributors](../../contributors)\n\nThis package is not endorsed nor supported by [Microsoft](https://github.com/microsoft) in any way.\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freedtechus%2Fazure-data-explorer-laravel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freedtechus%2Fazure-data-explorer-laravel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freedtechus%2Fazure-data-explorer-laravel/lists"}