PHPackages                             bdteo/php-stellar-strkey - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. bdteo/php-stellar-strkey

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

bdteo/php-stellar-strkey
========================

A php implementation of Stellar Js SDK's "strkey"

143PHP

Since Aug 31Pushed 7y ago1 watchersCompare

[ Source](https://github.com/bdteo/php-stellar-strkey)[ Packagist](https://packagist.org/packages/bdteo/php-stellar-strkey)[ RSS](/packages/bdteo-php-stellar-strkey/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Stellar StrKey in PHP
=====================

[](#stellar-strkey-in-php)

This repo is a 1:1 PHP implementation of the StrKey helper from the Stellar Js SDK

See it at:

---

```
composer require bdteo/php-stellar-strkey
```

According to the Stellar implementation: the 56 character base32 encoded string key can contain binary data of public key, private key, preAuthTx or a sha256Hash. ( Stellar uses Ed25519 public/private keys -  )

---

You can use this class to validate Stellar addresses.

You can use this class also to check the validity of a Stellar string key, extract the payload data or encode payload data into a sting key.

Here is an example:

```
use Bdteo\Stellar\StrKey;

$testAddress = 'GDDJ7IIWHZV4KWEX3QH437C3QZL4RTJCSXNVRAQMFESQP6WNZAM4N32Y';
$strKey = new StrKey();

$isValid = $strKey->isValidStellarAddress($testAddress);

echo $isValid
    ? 'Awesome ! The address is valid !'
    : 'Too bad ! Your address is incorrect !';
```

---

Used on [The TokenRush Airdrop Platform](https://tokenrush.io/ "The TokenRush Airdrop Platform")
------------------------------------------------------------------------------------------------

[](#used-on-the-tokenrush-airdrop-platform)

I am planning to publish more general purpose crypto tools in the near future !

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 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/a758ddb412bba510163f7437b1fee8f4b11d373e72c178f0fe6ddcda800d9da0?d=identicon)[bteo](/maintainers/bteo)

---

Top Contributors

[![bdteo](https://avatars.githubusercontent.com/u/10471824?v=4)](https://github.com/bdteo "bdteo (3 commits)")

---

Tags

stellar

### Embed Badge

![Health badge](/badges/bdteo-php-stellar-strkey/health.svg)

```
[![Health](https://phpackages.com/badges/bdteo-php-stellar-strkey/health.svg)](https://phpackages.com/packages/bdteo-php-stellar-strkey)
```

PHPackages © 2026

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