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

ActiveLibrary

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

AWS MSK IAM SASL Signer for PHP

v1.1.0(5mo ago)39.4k↓32.6%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 1mo 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 1mo ago

READMEChangelog (2)Dependencies (4)Versions (6)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 93% of packages

Maintenance75

Regular maintenance activity

Popularity30

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity54

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

172d 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.6k263.6M790](/packages/league-flysystem-aws-s3-v3)[aws/aws-sdk-php-laravel

A simple Laravel 9/10/11/12/13 service provider for including the AWS SDK for PHP.

1.7k35.6M75](/packages/aws-aws-sdk-php-laravel)[humanmade/s3-uploads

WordPress plugin to store uploads on S3

2.1k2.4M9](/packages/humanmade-s3-uploads)[bref/laravel-bridge

An advanced Laravel integration for Bref, including Octane support.

3384.1M11](/packages/bref-laravel-bridge)[magento/magento2-functional-testing-framework

Magento2 Functional Testing Framework

15511.5M30](/packages/magento-magento2-functional-testing-framework)[laravel-notification-channels/aws-sns

Amazon Simple Notification Service (AWS SNS) notification channel for Laravel.

541.1M2](/packages/laravel-notification-channels-aws-sns)

PHPackages © 2026

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