PHPackages                             priteshdrc/stellar-api - 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. [API Development](/categories/api)
4. /
5. priteshdrc/stellar-api

ActiveLibrary[API Development](/categories/api)

priteshdrc/stellar-api
======================

API client for the Stellar network

v0.7.1(7y ago)0249MITPHP

Since Oct 9Pushed 7y agoCompare

[ Source](https://github.com/priteshdrc/stellar-api)[ Packagist](https://packagist.org/packages/priteshdrc/stellar-api)[ RSS](/packages/priteshdrc-stellar-api/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (1)Dependencies (6)Versions (15)Used By (0)

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

[](#description)

PHP Library for interacting with the Stellar network.

- Communicate with Horizon server
- Build and sign transactions

⚠️ Danger Zone ⚠️
-----------------

[](#warning-danger-zone-warning)

**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 zulucrypto/stellar-api

```

If you want to work with the most recent development version you can use this repository:

```
git clone https://github.com/zulucrypto/stellar-api.git
cd stellar-api/
composer install

```

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: GCUVDZRQ6CX347AMUUWZDYSNDFAWDN6FUYM5DVYYVO574NHTAUCQAK53

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 96.7% 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 ~31 days

Recently: every ~60 days

Total

14

Last Release

2725d ago

### Community

Maintainers

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

---

Top Contributors

[![zulucrypto](https://avatars.githubusercontent.com/u/29358017?v=4)](https://github.com/zulucrypto "zulucrypto (235 commits)")[![omarfurrer](https://avatars.githubusercontent.com/u/24496297?v=4)](https://github.com/omarfurrer "omarfurrer (3 commits)")[![priteshdrc](https://avatars.githubusercontent.com/u/28600195?v=4)](https://github.com/priteshdrc "priteshdrc (2 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/priteshdrc-stellar-api/health.svg)

```
[![Health](https://phpackages.com/badges/priteshdrc-stellar-api/health.svg)](https://phpackages.com/packages/priteshdrc-stellar-api)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[soneso/stellar-php-sdk

Stellar PHP SDK for the Stellar Network

4048.2k4](/packages/soneso-stellar-php-sdk)[wheelpros/fitment-platform-api

Magento 2 (Open Source)

12.1k1.2k](/packages/wheelpros-fitment-platform-api)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[civicrm/civicrm-core

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

728272.9k20](/packages/civicrm-civicrm-core)

PHPackages © 2026

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