Blockchain Integration Roadmap: Enables PHP-based applications to interact with The Open Network (TON) natively, reducing reliance on JavaScript/Node.js for blockchain operations. Ideal for:
Build vs. Buy: Buy for teams lacking blockchain expertise or time to build a custom TON SDK. Build only if needing deep customization beyond this package’s scope (e.g., non-standard wallet versions).
Use Cases:
WalletV4R2 and InternalMessage.toncenter client.amashukov/eth-php for TON-Ethereum interoperability.Adopt if:
@ton/core).gmp, sodium, bcmath).toncenter client.composer require for the full TON stack (cells, crypto, wallets, RPC).Look elsewhere if:
gmp/sodium extensions).olifanton/ton is more mature but lacks canonical BOC).blockchain-context-bundle instead).For Executives:
"This package lets us integrate TON blockchain functionality into our PHP backend with a single dependency. It covers wallets, transactions, and smart contracts—enabling features like in-app TON payments or NFT minting without relying on external APIs or JavaScript. The canonical BOC encoder ensures compatibility with TON’s core libraries, and the typed toncenter client reduces integration risk. Given TON’s growing ecosystem (e.g., DeFi, gaming), this gives us a competitive edge in blockchain-native products."
For Engineering: *"We’re adding a pure-PHP TON SDK that bundles:
@ton/core byte-for-byte).toncenter client for reliable RPC interactions.gmp, sodium, bcmath).This replaces ad-hoc TON integrations with a maintained, composable stack. Tradeoff: Early-stage package (0 stars), but PHPStan L9 and parity tests ensure quality. Alternative: olifanton/ton (more stars) but lacks canonical BOC. Recommend this for new TON projects or if we need strict BOC compatibility."*
For Developers:
*"Need to interact with TON from PHP? This SDK gives you:
✅ Cells/BOC: Build/parse TON messages with @ton/core-compatible encoding.
✅ Wallets: Full WalletV4R2 support with Ed25519 signing and TON mnemonics.
✅ RPC: Typed toncenter client for seqno checks, transfers, etc.
✅ No Glue Code: ToncenterWalletRpc implements WalletRpcInterface—just plug it in.
Example workflow:
$wallet = new WalletV4R2($keyPair, $address);
$rpc = new ToncenterWalletRpc(new ToncenterClient($httpClient));
$wallet->setRpc($rpc); // Auto-fetches seqno, broadcasts signed txs.
Requirements: PHP 8.3+, gmp, sodium, bcmath. Pair with amashukov/http-client-php for HTTP."*
How can I help you explore Laravel packages today?