PHPackages                             pyaesoneaung/aws-msk-iam-sasl-signer-php - 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. pyaesoneaung/aws-msk-iam-sasl-signer-php

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

pyaesoneaung/aws-msk-iam-sasl-signer-php
========================================

AWS MSK IAM SASL Signer for PHP

v1.1.0(7mo ago)312.6k↓45.7%2[1 issues](https://github.com/PyaeSoneAungRgn/aws-msk-iam-sasl-signer-php/issues)[4 PRs](https://github.com/PyaeSoneAungRgn/aws-msk-iam-sasl-signer-php/pulls)MITPHPPHP ^8.1CI passing

Since Jan 14Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/PyaeSoneAungRgn/aws-msk-iam-sasl-signer-php)[ Packagist](https://packagist.org/packages/pyaesoneaung/aws-msk-iam-sasl-signer-php)[ Docs](https://github.com/PyaeSoneAungRgn/aws-msk-iam-sasl-signer-php)[ RSS](/packages/pyaesoneaung-aws-msk-iam-sasl-signer-php/feed)WikiDiscussions main Synced 3d ago

READMEChangelog (2)Dependencies (4)Versions (9)Used By (0)

[![Packagist Version](https://camo.githubusercontent.com/abe0478ea3a1019d3f3c9951c69351fc63ef40cbfd1d2fc1cfd8c6bc75e02840/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f70796165736f6e6561756e672f6177732d6d736b2d69616d2d7361736c2d7369676e65722d706870)](https://packagist.org/packages/pyaesoneaung/aws-msk-iam-sasl-signer-php)[![Packagist Downloads](https://camo.githubusercontent.com/9d7483807aa033e3a485d6a160868ea2a2cd1f654fce740edec8fa04b9a723cd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f70796165736f6e6561756e672f6177732d6d736b2d69616d2d7361736c2d7369676e65722d706870)](https://packagist.org/packages/pyaesoneaung/aws-msk-iam-sasl-signer-php)

AWS MSK IAM SASL Signer for PHP
===============================

[](#aws-msk-iam-sasl-signer-for-php)

`aws-msk-iam-sasl-signer-php` is the AWS MSK IAM SASL Signer for PHP programming language.

For more information about Amazon MSK IAM Authentication, please check out [the Amazon blog post](https://aws.amazon.com/blogs/big-data/amazon-msk-iam-authentication-now-supports-all-programming-languages/).

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

[](#installation)

```
composer require pyaesoneaung/aws-msk-iam-sasl-signer-php
```

Usage
-----

[](#usage)

```
use PyaeSoneAung\AwsMskIamSaslSigner\AwsMskIamSaslSigner;

$awsMskIamSaslSigner = new AwsMskIamSaslSigner(
    'us-east-1', // region
    'testAccessKeyId', // iam access key id
    'testSecretAccessKey' // iam secret access key
);
$token = $awsMskIamSaslSigner->generateToken();

// [
//     'token' => 'aHR0cHM6Ly9rYWZrYS5hcC1zb3V0aGVhc3QtMS5hbWF6b25hd3MuY29tLz9BY3Rpb249a2Fma2EtY2x1c3RlciUzQUNvbm5lY3QmVXNlci1BZ2VudD1hd3MtbXNrLWlhbS1zYXNsLXNpZ25lci1waHAlMkYxLjAuMCZYLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPXRlc3RBY2Nlc3NLZXlJZCUyRjIwMjQwMTE0JTJGYXAtc291dGhlYXN0LTElMkZrYWZrYS1jbHVzdGVyJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDAxMTRUMTIyNTQ5WiZYLUFtei1FeHBpcmVzPTkwMCZYLUFtei1TaWduYXR1cmU9NWUxYzY4YzI5NDRkN2I2NjY0ZDkyMTJkMGJlMDQ1NTYyYzc5Y2U0NTZhNGJjZjg2YTQ3NTk3NDcxMjI3NTY3YyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3Q',
//     'expiryTime' => 1705236049000
// ]
```

Kafka Usage (php-simple-kafka-client)
-------------------------------------

[](#kafka-usage-php-simple-kafka-client)

Kafka usage for

```
use PyaeSoneAung\AwsMskIamSaslSigner\AwsMskIamSaslSigner;
use SimpleKafkaClient\Configuration;
use SimpleKafkaClient\Producer;

$conf = new Configuration();
$conf->set('metadata.broker.list', 'kafka:9092');
$conf->set('security.protocol', 'SASL_SSL');
$conf->set('sasl.mechanisms', 'OAUTHBEARER');

$producer = new Producer($conf);

$awsMskIamSaslSigner = new AwsMskIamSaslSigner(
    'us-east-1',
    'testAccessKeyId',
    'testSecretAccessKey'
);
$token = $awsMskIamSaslSigner->generateToken();
$producer->setOAuthBearerToken($token['token'], $token['expiryTime'], 'principalClaimName=azp');

$topic = $producer->getTopicHandle('topic-name');

$topic->producev(
    RD_KAFKA_PARTITION_UA,
    RD_KAFKA_MSG_F_BLOCK,
    'value',
    'key',
    ['header-key' => 'header-value']
);

$producer->poll(0);

$result = $producer->flush(20000);
```

Testing
-------

[](#testing)

```
composer test
```

###  Health Score

46

—

FairBetter than 92% of packages

Maintenance71

Regular maintenance activity

Popularity31

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% 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 ~683 days

Total

2

Last Release

219d ago

### Community

Maintainers

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

---

Top Contributors

[![PyaeSoneAungRgn](https://avatars.githubusercontent.com/u/44226349?v=4)](https://github.com/PyaeSoneAungRgn "PyaeSoneAungRgn (12 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (6 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (5 commits)")[![Adrien30starly](https://avatars.githubusercontent.com/u/181697419?v=4)](https://github.com/Adrien30starly "Adrien30starly (1 commits)")

---

Tags

pyaesoneaungaws-msk-iam-sasl-signer-php

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/pyaesoneaung-aws-msk-iam-sasl-signer-php/health.svg)

```
[![Health](https://phpackages.com/badges/pyaesoneaung-aws-msk-iam-sasl-signer-php/health.svg)](https://phpackages.com/packages/pyaesoneaung-aws-msk-iam-sasl-signer-php)
```

###  Alternatives

[league/flysystem-aws-s3-v3

AWS S3 filesystem adapter for Flysystem.

1.7k285.7M1.0k](/packages/league-flysystem-aws-s3-v3)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

45444.2k1](/packages/pressbooks-pressbooks)[ellaisys/aws-cognito

Laravel Authentication using AWS Cognito (Web and API)

123256.9k1](/packages/ellaisys-aws-cognito)[georgeboot/laravel-echo-api-gateway

Use Laravel Echo with API Gateway Websockets

10540.3k](/packages/georgeboot-laravel-echo-api-gateway)[altis/core

Core module for Altis

19228.0k3](/packages/altis-core)[keboola/storage-api-client

Keboola Storage API PHP Client

10405.9k40](/packages/keboola-storage-api-client)

PHPackages © 2026

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