PHPackages                             josephopanel/solana-php-sdk - 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. josephopanel/solana-php-sdk

ActiveLibrary[API Development](/categories/api)

josephopanel/solana-php-sdk
===========================

A PHP SDK for interacting with the Solana blockchain via JSON RPC and WebSocket methods.

2.0.6(1y ago)125114[1 PRs](https://github.com/jopanel/solana-php-sdk/pulls)MITPHPPHP ^8.2

Since Nov 24Pushed 1y ago1 watchersCompare

[ Source](https://github.com/jopanel/solana-php-sdk)[ Packagist](https://packagist.org/packages/josephopanel/solana-php-sdk)[ Docs](https://github.com/jopanel/solana-php-sdk)[ RSS](/packages/josephopanel-solana-php-sdk/feed)WikiDiscussions main Synced 1mo ago

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

Solana PHP SDK
==============

[](#solana-php-sdk)

[![License](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](https://opensource.org/licenses/MIT)[![PHP Version](https://camo.githubusercontent.com/b5d4f7901c58ad1ddfff679966f426cc25a9354bab763846b9a7276c2feab4e0/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d253545382e322d626c7565)](https://www.php.net/releases/8.2/)[![PHPUnit Tests](https://github.com/jopanel/solana-php-sdk/actions/workflows/phpunit.yml/badge.svg)](https://github.com/jopanel/solana-php-sdk/actions/workflows/phpunit.yml/badge.svg)

A powerful and easy-to-use PHP SDK for interacting with the Solana blockchain. This library allows developers to interact with Solana's JSON RPC and WebSocket APIs using PHP, enabling seamless integration for blockchain applications.

🚀 Features
----------

[](#-features)

- Lightweight and fully PSR-4 compliant
- [Supports **JSON RPC** methods](https://solana.com/docs/rpc)
- Built-in extensibility for future methods
- Clean and intuitive API design
- Open source and community-friendly
- PHP 8.2+ Required

📚 Installation
--------------

[](#-installation)

Install the library via Composer:

```
composer require josephopanel/solana-php-sdk
```

📖 Documentation
---------------

[](#-documentation)

For detailed information about all available methods, visit the [API Documentation](docs/API.md).

---

### 🚀 API Methods

[](#-api-methods)

#### Account Methods

[](#account-methods)

- [`getAccountInfo`](docs/API.md#getaccountinfo)
- [`getBalance`](docs/API.md#getbalance)
- [`getTokenAccountBalance`](docs/API.md#gettokenaccountbalance)
- [`getTokenAccountsByDelegate`](docs/API.md#gettokenaccountsbydelegate)
- [`getTokenAccountsByOwner`](docs/API.md#gettokenaccountsbyowner)
- [`getTokenLargestAccounts`](docs/API.md#gettokenlargestaccounts)
- [`getTokenSupply`](docs/API.md#gettokensupply)
- [`getLargestAccounts`](docs/API.md#getlargestaccounts)
- [`getMultipleAccounts`](docs/API.md#getmultipleaccounts)
- [`getProgramAccounts`](docs/API.md#getprogramaccounts)

#### Block Methods

[](#block-methods)

- [`getBlock`](docs/API.md#getblock)
- [`getBlockCommitment`](docs/API.md#getblockcommitment)
- [`getBlockHeight`](docs/API.md#getblockheight)
- [`getBlockProduction`](docs/API.md#getblockproduction)
- [`getBlockTime`](docs/API.md#getblocktime)
- [`getBlocks`](docs/API.md#getblocks)
- [`getBlocksWithLimit`](docs/API.md#getblockswithlimit)
- [`getFirstAvailableBlock`](docs/API.md#getfirstavailableblock)
- [`isBlockhashValid`](docs/API.md#isblockhashvalid)
- [`minimumLedgerSlot`](docs/API.md#minimumledgerslot)

#### Cluster Methods

[](#cluster-methods)

- [`getClusterNodes`](docs/API.md#getclusternodes)
- [`getEpochInfo`](docs/API.md#getepochinfo)
- [`getEpochSchedule`](docs/API.md#getepochschedule)
- [`getLeaderSchedule`](docs/API.md#getleaderschedule)
- [`getSlot`](docs/API.md#getslot)
- [`getSlotLeader`](docs/API.md#getslotleader)
- [`getSlotLeaders`](docs/API.md#getslotleaders)
- [`getSupply`](docs/API.md#getsupply)

#### Governance and Identity

[](#governance-and-identity)

- [`getIdentity`](docs/API.md#getidentity)
- [`getInflationGovernor`](docs/API.md#getinflationgovernor)
- [`getInflationRate`](docs/API.md#getinflationrate)
- [`getInflationReward`](docs/API.md#getinflationreward)
- [`getStakeMinimumDelegation`](docs/API.md#getstakeminimumdelegation)
- [`getVoteAccounts`](docs/API.md#getvoteaccounts)

#### System and Performance

[](#system-and-performance)

- [`getFeeForMessage`](docs/API.md#getfeeformessage)
- [`getHealth`](docs/API.md#gethealth)
- [`getHighestSnapshotSlot`](docs/API.md#gethighestsnapshotslot)
- [`getRecentPerformanceSamples`](docs/API.md#getrecentperformancesamples)
- [`getRecentPrioritizationFees`](docs/API.md#getrecentprioritizationfees)

#### Transactions

[](#transactions)

- [`getLatestBlockhash`](docs/API.md#getlatestblockhash)
- [`getSignatureStatuses`](docs/API.md#getsignaturestatuses)
- [`getSignaturesForAddress`](docs/API.md#getsignaturesforaddress)
- [`getTransaction`](docs/API.md#gettransaction)
- [`getTransactionCount`](docs/API.md#gettransactioncount)
- [`simulateTransaction`](docs/API.md#simulatetransaction)
- [`sendTransaction`](docs/API.md#sendtransaction)

#### Utilities

[](#utilities)

- [`requestAirdrop`](docs/API.md#requestairdrop)

### Web Socket Methods

[](#web-socket-methods)

- [`accountSubscribe`](docs/API.md#accountsubscribe)
- [`accountUnsubscribe`](docs/API.md#accountunsubscribe)
- [`blockSubscribe`](docs/API.md#blocksubscribe)
- [`blockUnsubscribe`](docs/API.md#blockunsubscribe)
- [`logsSubscribe`](docs/API.md#logssubscribe)
- [`logsUnsubscribe`](docs/API.md#logsunsubscribe)
- [`programSubscribe`](docs/API.md#programsubscribe)
- [`programUnsubscribe`](docs/API.md#programunsubscribe)
- [`rootSubscribe`](docs/API.md#rootsubscribe)
- [`rootUnsubscribe`](docs/API.md#rootunsubscribe)
- [`signatureSubscribe`](docs/API.md#signaturesubscribe)
- [`signatureUnsubscribe`](docs/API.md#signatureunsubscribe)
- [`slotSubscribe`](docs/API.md#slotsubscribe)
- [`slotUnsubscribe`](docs/API.md#slotunsubscribe)
- [`slotsUpdatesSubscribe`](docs/API.md#slotsupdatessubscribe)
- [`slotsUpdatesUnsubscribe`](docs/API.md#slotsupdatesunsubscribe)
- [`voteSubscribe`](docs/API.md#votesubscribe)
- [`voteUnsubscribe`](docs/API.md#voteunsubscribe)

💻 Contributing
--------------

[](#-contributing)

Contributions are welcome! If you'd like to improve the SDK or add new features, feel free to fork the repository and submit a pull request.

1. Fork the repository
2. Create a new feature branch: `git checkout -b feature/my-feature`
3. Commit your changes: `git commit -m "Add new feature"`
4. Push to the branch: `git push origin feature/my-feature`
5. Open a pull request

---

💰 Donations
-----------

[](#-donations)

This project is open source and developed with passion. If you’d like to support ongoing development, consider donating:

- **Solana Wallet Address**: `4izNYzN7uQac8jBDcD7NmuCpS8PqvYiHVSLXF5bY9Zrg`

Every little bit helps keep this project maintained and up-to-date. Thank you for your support! ❤️

---

📜 License
---------

[](#-license)

This project is licensed under the [MIT License](https://opensource.org/licenses/MIT).

---

📞 Contact
---------

[](#-contact)

For any questions, feedback, or collaboration inquiries, feel free to reach out:

- **Author**: Joseph Opanel
- **Email**:

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity55

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.

###  Release Activity

Cadence

Every ~1 days

Total

6

Last Release

534d ago

Major Versions

v1.1.0 → v2.0.02024-11-25

PHP version history (2 changes)v1.1.0PHP ^8.0

v2.0.0PHP ^8.2

### Community

Maintainers

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

---

Top Contributors

[![jopanel](https://avatars.githubusercontent.com/u/13390478?v=4)](https://github.com/jopanel "jopanel (21 commits)")

---

Tags

apijson-rpcphpsdksolanawebsocketsjson-rpcphp-sdkweb3blockchainsolana

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/josephopanel-solana-php-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/josephopanel-solana-php-sdk/health.svg)](https://phpackages.com/packages/josephopanel-solana-php-sdk)
```

###  Alternatives

[zerodha/phpkiteconnect

The PHP client library for the Kite Connect trading APIs Resources

463.4k2](/packages/zerodha-phpkiteconnect)[signnow/api-php-sdk

Library to communicate with SignNow API

11138.0k](/packages/signnow-api-php-sdk)[hardcastle/xrpl_php

PHP SDK / Client for the XRP Ledger

129.7k5](/packages/hardcastle-xrpl-php)[leapfu/cloud-printer

高扩展性云小票打印SDK，支持飞鹅云、芯烨云、易联云、快递100、映美云、佳博云、中午云、优声云等主流云打印服务，兼容 Laravel、ThinkPHP 等主流框架，统一API，易集成，易扩展。

104.5k](/packages/leapfu-cloud-printer)

PHPackages © 2026

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