{"id":19601981,"url":"https://github.com/soneso/stellar-php-sdk","last_synced_at":"2026-02-21T21:09:45.350Z","repository":{"id":40722392,"uuid":"396341623","full_name":"Soneso/stellar-php-sdk","owner":"Soneso","description":"The Soneso open source Stellar SDK for PHP provides APIs to build and sign transactions, connect and query Horizon.","archived":false,"fork":false,"pushed_at":"2024-03-14T20:12:55.000Z","size":1788,"stargazers_count":25,"open_issues_count":1,"forks_count":18,"subscribers_count":11,"default_branch":"main","last_synced_at":"2024-03-14T23:17:43.795Z","etag":null,"topics":["blockchain","stellar"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Soneso.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-08-15T12:19:59.000Z","updated_at":"2024-04-30T13:57:05.766Z","dependencies_parsed_at":"2023-12-18T21:55:37.406Z","dependency_job_id":"cf27485b-18f5-4451-8a58-d767785f7f7b","html_url":"https://github.com/Soneso/stellar-php-sdk","commit_stats":{"total_commits":107,"total_committers":4,"mean_commits":26.75,"dds":0.05607476635514019,"last_synced_commit":"dbcea7f9499d4cd09fa5ebaa237eb0c21b99b550"},"previous_names":[],"tags_count":58,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Soneso%2Fstellar-php-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Soneso%2Fstellar-php-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Soneso%2Fstellar-php-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Soneso%2Fstellar-php-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Soneso","download_url":"https://codeload.github.com/Soneso/stellar-php-sdk/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224077296,"owners_count":17251892,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["blockchain","stellar"],"created_at":"2024-11-11T09:21:23.809Z","updated_at":"2026-02-21T21:09:45.337Z","avatar_url":"https://github.com/Soneso.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [Stellar SDK for PHP](https://github.com/Soneso/stellar-php-sdk)\n\n[![Latest Stable Version](https://img.shields.io/packagist/v/soneso/stellar-php-sdk.svg)](https://packagist.org/packages/soneso/stellar-php-sdk)\n[![Total Downloads](https://img.shields.io/packagist/dt/soneso/stellar-php-sdk.svg)](https://packagist.org/packages/soneso/stellar-php-sdk)\n[![codecov](https://codecov.io/gh/Soneso/stellar-php-sdk/branch/main/graph/badge.svg)](https://codecov.io/gh/Soneso/stellar-php-sdk)\n[![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/Soneso/stellar-php-sdk)\n\nBuild and sign Stellar transactions, query [Horizon](https://developers.stellar.org/docs/data/apis/horizon), and interact with [Soroban](https://developers.stellar.org/docs/build/smart-contracts/overview) smart contracts via RPC. Communicate with anchors and external services using built-in support for 18 SEPs.\n\n## Installation\n\n```bash\ncomposer require soneso/stellar-php-sdk\n```\n\nRequires PHP 8.0+.\n\n## Quick examples\n\n### Send a payment\n\nTransfer XLM between accounts:\n\n```php\n$payment = (new PaymentOperationBuilder($receiverId, Asset::native(), '100'))-\u003ebuild();\n$tx = (new TransactionBuilder($account))-\u003eaddOperation($payment)-\u003ebuild();\n$tx-\u003esign($senderKeyPair, Network::testnet());\n$sdk-\u003esubmitTransaction($tx);\n```\n\n### Trust an asset\n\nEnable your account to receive a token (like USDC):\n\n```php\n$asset = Asset::createNonNativeAsset('USDC', $issuerAccountId);\n$trustOp = (new ChangeTrustOperationBuilder($asset))-\u003ebuild();\n$tx = (new TransactionBuilder($account))-\u003eaddOperation($trustOp)-\u003ebuild();\n$tx-\u003esign($accountKeyPair, Network::testnet());\n$sdk-\u003esubmitTransaction($tx);\n```\n\n### Call a smart contract\n\nInvoke a Soroban contract method:\n\n```php\n$client = SorobanClient::forClientOptions(new ClientOptions(\n    sourceAccountKeyPair: $keyPair,\n    contractId: 'CABC...',\n    network: Network::testnet(),\n    rpcUrl: 'https://soroban-testnet.stellar.org'\n));\n$result = $client-\u003einvokeMethod('hello', [XdrSCVal::forSymbol('World')]);\n```\n\nFor complete walkthroughs, see the [documentation](docs/).\n\n## Documentation\n\n| Guide | Description |\n|-------|-------------|\n| [Quick start](docs/quick-start.md) | Your first transaction in 15 minutes |\n| [Getting started](docs/getting-started.md) | Keys, accounts, and fundamentals |\n| [SDK usage](docs/sdk-usage.md) | Transactions, operations, Horizon queries, streaming |\n| [Soroban](docs/soroban.md) | Smart contract deployment and interaction |\n| [SEPs](docs/sep/) | Anchor integration, authentication, KYC, etc. |\n\n[API reference](https://soneso.github.io/stellar-php-sdk/)\n\n## Compatibility\n\n- [Horizon API compatibility matrix](compatibility/horizon/COMPATIBILITY_MATRIX.md)\n- [RPC API compatibility matrix](compatibility/rpc/RPC_COMPATIBILITY_MATRIX.md)\n- [SEP support matrices](compatibility/sep/)\n\n## Feedback\n\nIf you're using this SDK, feedback helps improve it:\n\n- [Report a bug](https://github.com/Soneso/stellar-php-sdk/issues/new?template=bug_report.yml)\n- [Request a feature](https://github.com/Soneso/stellar-php-sdk/issues/new?template=feature_request.yml)\n- [Start a discussion](https://github.com/Soneso/stellar-php-sdk/discussions)\n\n## Contributing\n\nSee [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.\n\n## License\n\nApache 2.0. See [LICENSE](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoneso%2Fstellar-php-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoneso%2Fstellar-php-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoneso%2Fstellar-php-sdk/lists"}