PHPackages                             official1coin/stellarsdk - 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. official1coin/stellarsdk

ActiveLibrary

official1coin/stellarsdk
========================

API client for the Stellar network

v1.0.8(4y ago)0131[1 PRs](https://github.com/official1coin/stellarsdk/pulls)MITPHPPHP ^8.0

Since May 15Pushed 4y agoCompare

[ Source](https://github.com/official1coin/stellarsdk)[ Packagist](https://packagist.org/packages/official1coin/stellarsdk)[ RSS](/packages/official1coin-stellarsdk/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (7)Versions (10)Used By (0)

Description
-----------

[](#description)

PHP Library for interacting with the Stellar network.

- Communicate with Horizon server
- Build and sign transactions

**Development Status**

This library is under active development and should be considered beta quality. Please ensure that you've tested extensively on a test network and have added sanity checks in other places in your code.

⚠️ [See the release notes for breaking changes](CHANGELOG.md)

**Large Integer Support**

The largest PHP integer is 64-bits when on a 64-bit platform. This is especially important to pay attention to when working with large balance transfers. The native representation of a single XLM (1 XLM) is 10000000 stroops.

Therefore, if you try to use a `MAX_INT` number of XLM (or a custom asset) it is possible to overflow PHP's integer type when the value is converted to stroops and sent to the network.

This library attempts to add checks for this scenario and also uses a `BigInteger`class to work around this problem.

If your application uses large amounts of XLM or a custom asset please do extensive testing with large values and use the `StellarAmount` helper class or the `BigInteger`class if possible.

**Floating point issues**

Although not specific to Stellar or PHP, it's important to be aware of problems when doing comparisons between floating point numbers.

For example:

```
$oldBalance = 1.605;
$newBalance = 1.61;

var_dump($oldBalance + 0.005);
var_dump($newBalance);
if ($oldBalance + 0.005 === $newBalance) {
    print "Equal\n";
}
else {
    print "Not Equal\n";
}
```

The above code considers the two values not to be equal even though the same value is printed out:

Output:

```
float(1.61)
float(1.61)
Not Equal

```

To work around this issue, always work with and store amounts as an integer representing stroops. Only convert back to a decimal number when you need to display a balance to the user.

The static `StellarAmount::STROOP_SCALE` property can be used to help with this conversion.

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

[](#installation)

To install the latest release for usage in your project:

```
cd your_project/
composer require official1coin/stellarsdk

```

Getting Started
---------------

[](#getting-started)

See the [getting-started](getting-started/) directory for examples of how to use this library.

These examples are modeled after the ones in Stellar's getting started guide:

Additional examples are available in the [examples](examples/) directory

Donations
---------

[](#donations)

Stellar: GAF3DND6FP6W2XIPMPQJPTG6SKYRD3CTKTZ6FUZGCM2ZQFY7CBI4Q646

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 92.9% 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 ~0 days

Total

9

Last Release

1820d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/79da38b1122151e2b074be1f3f2ab78d4ad25bab9cdad0fed76d70392a759e01?d=identicon)[cryptoaaron](/maintainers/cryptoaaron)

---

Top Contributors

[![zulucrypto](https://avatars.githubusercontent.com/u/29358017?v=4)](https://github.com/zulucrypto "zulucrypto (235 commits)")[![aaron-1pbx](https://avatars.githubusercontent.com/u/10770444?v=4)](https://github.com/aaron-1pbx "aaron-1pbx (12 commits)")[![omarfurrer](https://avatars.githubusercontent.com/u/24496297?v=4)](https://github.com/omarfurrer "omarfurrer (3 commits)")[![cballou](https://avatars.githubusercontent.com/u/166784?v=4)](https://github.com/cballou "cballou (1 commits)")[![cmichi](https://avatars.githubusercontent.com/u/241530?v=4)](https://github.com/cmichi "cmichi (1 commits)")[![tholder](https://avatars.githubusercontent.com/u/41235?v=4)](https://github.com/tholder "tholder (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/official1coin-stellarsdk/health.svg)

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

###  Alternatives

[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

728272.9k17](/packages/civicrm-civicrm-core)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)[soneso/stellar-php-sdk

Stellar PHP SDK for the Stellar Network

4048.2k4](/packages/soneso-stellar-php-sdk)[ymirapp/cli

Ymir command-line tool

2619.6k](/packages/ymirapp-cli)[zulucrypto/stellar-api

API client for the Stellar network

5334.3k1](/packages/zulucrypto-stellar-api)

PHPackages © 2026

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