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.

0421PHP

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 1mo ago

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

Maintenance35

Infrequent updates — may be unmaintained

Popularity14

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://www.gravatar.com/avatar/0f50788283e2fdb2c2cd8ebc9af98593b17db6e1c1a22da539fb06dd290b389f?d=identicon)[manarth](/maintainers/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

[friendsofsymfony/rest-bundle

This Bundle provides various tools to rapidly develop RESTful API's with Symfony

2.8k73.3M319](/packages/friendsofsymfony-rest-bundle)[php-http/discovery

Finds and installs PSR-7, PSR-17, PSR-18 and HTTPlug implementations

1.3k309.5M1.2k](/packages/php-http-discovery)[pusher/pusher-php-server

Library for interacting with the Pusher REST API

1.5k94.8M293](/packages/pusher-pusher-php-server)[react/http

Event-driven, streaming HTTP client and server implementation for ReactPHP

78026.4M414](/packages/react-http)[php-http/curl-client

PSR-18 and HTTPlug Async client with cURL

48347.0M384](/packages/php-http-curl-client)[smi2/phpclickhouse

PHP ClickHouse Client

84310.1M71](/packages/smi2-phpclickhouse)

PHPackages © 2026

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