aestron / aestron-openapi-sdk
Aestron openapi sdk for PHP - Use Aestron openapi sdk client in your PHP project
1.0
2020-12-08 02:42 UTC
Requires
- php: >=5.5
- ext-openssl: *
- guzzlehttp/guzzle: ^6.0
This package is auto-updated.
Last update: 2025-06-25 19:08:08 UTC
README
Use Aestron openapi sdk client in your PHP project
Install
composer require aestron/aestron-openapi-sdk
Demo
<?php use AestronSdk\Sms\SmsClient; use AestronSdk\Exception\ClientException; SmsClient::setAppId('z3i0plp74s22rj'); SmsClient::setCertificate('yRC3vrpUFgpSpw'); try { $res = SmsClient::send([ 'to' => '8615826666666', 'content' => 'Do not go gentle into that good night.', 'from' => 'BIGO', 'type' => 'OTP', 'session' => '168201771', ]); var_export($res); } catch (\Exception $e) { var_export($e->getMessage()); var_export(SmsClient::getLastRequestParam()); }