gmp, sodium, bcmath), making it highly portable across PHP environments.@ton/core, critical for interoperability with TON smart contracts.ToncenterWalletRpc implementing WalletRpcInterface) enable clean integration with wallet logic.composer require simplifies dependency management.@ton/core.olifanton/ton) during ramp-up.@ton/core?illuminate/http).ToncenterClient or WalletV4R2..env files).Http client or amashukov/http-client-php for PSR-18 compliance.WalletTransactionBroadcasted) for async processing (e.g., notifications).Phase 1: Non-Critical Integration
composer require amashukov/ton-php.https://testnet.toncenter.com/api/v2/jsonRPC).Phase 2: Wallet Logic
WalletV4R2) using a mnemonic phrase.ToncenterWalletRpc port.Phase 3: Mainnet Deployment
https://toncenter.com/api/v2/jsonRPC)..env:
TONCENTER_ENDPOINT=https://toncenter.com/api/v2/jsonRPC
WALLET_MNEMONIC="your mnemonic phrase"
AppServiceProvider:
public function register(): void
{
$this->app->bind(
ToncenterClient::class,
fn() => new ToncenterClient(
new AmashukovHttpClient(),
new JsonHttpMessageFactory(),
new UriFactory(),
config('toncenter.endpoint')
)
);
}
php artisan ton:send --address EQ... --amount 1.5
gmp, sodium, and bcmath are enabled in php.ini.Http client, wrap it in a PSR-18 adapter (e.g., amashukov/http-client-php).gmp, sodium, bcmath).composer.json.ton-cell-php) can be updated independently.How can I help you explore Laravel packages today?