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.
- Lightweight and fully PSR-4 compliant
- Supports JSON RPC methods
- Built-in extensibility for future methods
- Clean and intuitive API design
- Open source and community-friendly
- PHP 8.2+ Required
Install the library via Composer:
composer require josephopanel/solana-php-sdk
For detailed information about all available methods, visit the API Documentation.
getAccountInfo
getBalance
getTokenAccountBalance
getTokenAccountsByDelegate
getTokenAccountsByOwner
getTokenLargestAccounts
getTokenSupply
getLargestAccounts
getMultipleAccounts
getProgramAccounts
getBlock
getBlockCommitment
getBlockHeight
getBlockProduction
getBlockTime
getBlocks
getBlocksWithLimit
getFirstAvailableBlock
isBlockhashValid
minimumLedgerSlot
getClusterNodes
getEpochInfo
getEpochSchedule
getLeaderSchedule
getSlot
getSlotLeader
getSlotLeaders
getSupply
getIdentity
getInflationGovernor
getInflationRate
getInflationReward
getStakeMinimumDelegation
getVoteAccounts
getFeeForMessage
getHealth
getHighestSnapshotSlot
getRecentPerformanceSamples
getRecentPrioritizationFees
getLatestBlockhash
getSignatureStatuses
getSignaturesForAddress
getTransaction
getTransactionCount
simulateTransaction
sendTransaction
accountSubscribe
accountUnsubscribe
blockSubscribe
blockUnsubscribe
logsSubscribe
logsUnsubscribe
programSubscribe
programUnsubscribe
rootSubscribe
rootUnsubscribe
signatureSubscribe
signatureUnsubscribe
slotSubscribe
slotUnsubscribe
slotsUpdatesSubscribe
slotsUpdatesUnsubscribe
voteSubscribe
voteUnsubscribe
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.
- Fork the repository
- Create a new feature branch:
git checkout -b feature/my-feature
- Commit your changes:
git commit -m "Add new feature"
- Push to the branch:
git push origin feature/my-feature
- Open a pull request
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! ❤️
This project is licensed under the MIT License.
For any questions, feedback, or collaboration inquiries, feel free to reach out:
- Author: Joseph Opanel
- Email: [email protected]