PHPackages                             flossiraptor/imds4azure - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. flossiraptor/imds4azure

ActiveLibrary[HTTP &amp; Networking](/categories/http)

flossiraptor/imds4azure
=======================

Query Azure Instance Meta-Data Services.

0458PHP

Since Apr 17Pushed 1y agoCompare

[ Source](https://github.com/flossiraptor/IMDS4Azure)[ Packagist](https://packagist.org/packages/flossiraptor/imds4azure)[ RSS](/packages/flossiraptor-imds4azure/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Instance Meta-Data Service client for Azure
===========================================

[](#instance-meta-data-service-client-for-azure)

The Microsoft Azure IMDS (Instance Meta-Data Service) can be queried to fetch metadata information about the running environment and Azure configuration.

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

[](#installation)

We recommend using [composer](https://getcomposer.org/) to install the IMDS for Azure library.

```
  composer require flossiraptor/imds4azure
```

Quickstart
----------

[](#quickstart)

```
  use Flossiraptor\Imds4Azure\IMDS;
  $imds = new IMDS();

  // Get all the instance metadata.
  $instanceMetadata = $imds->instance()->get();

  // Get the public IP address of the VM.
  $ipAddress = $imds->instance()->get('network.interface.0.ipv4.ipAddress.0.publicIpAddress');

  // Get the public IP address of the load-balancer.
  $lbAddress = $imds->loadbalancer()->get('loadbalancer.publicIpAddresses.0.frontendIpAddress');

  // Get an access token for the "Management" resource.
  $token = (string) $imds->identity()->getToken('https://management.azure.com/');
```

Categories
----------

[](#categories)

Detailed descriptions and links can be found at

### Supported

[](#supported)

- `/metadata/identity`
- `/metadata/instance`
- `/metadata/loadbalancer`

### Not supported

[](#not-supported)

- `/metadata/attested`
- `/metadata/scheduledevents`
- `/metadata/versions`

Legal
-----

[](#legal)

Microsoft, Azure are trademarks of the Microsoft group of companies.

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity15

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/271171?v=4)[Marcus Deglos](/maintainers/manarth)[@manarth](https://github.com/manarth)

---

Top Contributors

[![manarth](https://avatars.githubusercontent.com/u/271171?v=4)](https://github.com/manarth "manarth (13 commits)")

### Embed Badge

![Health badge](/badges/flossiraptor-imds4azure/health.svg)

```
[![Health](https://phpackages.com/badges/flossiraptor-imds4azure/health.svg)](https://phpackages.com/packages/flossiraptor-imds4azure)
```

###  Alternatives

[php-http/cache-plugin

PSR-6 Cache plugin for HTTPlug

25126.1M82](/packages/php-http-cache-plugin)[illuminate/http

The Illuminate Http package.

11937.9M6.9k](/packages/illuminate-http)[rdkafka/rdkafka

A PHP extension for Kafka

2.2k24.3k1](/packages/rdkafka-rdkafka)[httpsoft/http-message

Strict and fast implementation of PSR-7 and PSR-17

87965.9k114](/packages/httpsoft-http-message)[mezzio/mezzio-router

Router subcomponent for Mezzio

265.4M91](/packages/mezzio-mezzio-router)[serpapi/google-search-results-php

Get Google, Bing, Baidu, Ebay, Yahoo, Yandex, Home depot, Naver, Apple, Duckduckgo, Youtube search results via SerpApi.com

69127.2k](/packages/serpapi-google-search-results-php)

PHPackages © 2026

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