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-sdkFor detailed information about all available methods, visit the API Documentation.
getAccountInfogetBalancegetTokenAccountBalancegetTokenAccountsByDelegategetTokenAccountsByOwnergetTokenLargestAccountsgetTokenSupplygetLargestAccountsgetMultipleAccountsgetProgramAccounts
getBlockgetBlockCommitmentgetBlockHeightgetBlockProductiongetBlockTimegetBlocksgetBlocksWithLimitgetFirstAvailableBlockisBlockhashValidminimumLedgerSlot
getClusterNodesgetEpochInfogetEpochSchedulegetLeaderSchedulegetSlotgetSlotLeadergetSlotLeadersgetSupply
getIdentitygetInflationGovernorgetInflationRategetInflationRewardgetStakeMinimumDelegationgetVoteAccounts
getFeeForMessagegetHealthgetHighestSnapshotSlotgetRecentPerformanceSamplesgetRecentPrioritizationFees
getLatestBlockhashgetSignatureStatusesgetSignaturesForAddressgetTransactiongetTransactionCountsimulateTransactionsendTransaction
accountSubscribeaccountUnsubscribeblockSubscribeblockUnsubscribelogsSubscribelogsUnsubscribeprogramSubscribeprogramUnsubscriberootSubscriberootUnsubscribesignatureSubscribesignatureUnsubscribeslotSubscribeslotUnsubscribeslotsUpdatesSubscribeslotsUpdatesUnsubscribevoteSubscribevoteUnsubscribe
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: opanelj@gmail.com