youduphp / youdu
The PHP SDK for youdu.
Fund package maintenance!
huangdijia
hdj.me/sponsors
Installs: 2 320
Dependents: 2
Suggesters: 0
Security: 0
Stars: 3
Watchers: 1
Forks: 1
Open Issues: 0
Requires
- php: >=8.2
- guzzlehttp/guzzle: ^6.4|^7.0
- psr/simple-cache: ^1.0|^2.0|^3.0
Requires (Dev)
- huangdijia/php-coding-standard: ^2.0
- mockery/mockery: ^2.0
- pestphp/pest: ^3.0
- phpstan/phpstan: ^2.0
This package is auto-updated.
Last update: 2024-11-11 03:43:34 UTC
README
The php sdk of youdu.
Installation
composer require youduphp/youdu
Usage
use YouduPhp\Youdu\Application; use YouduPhp\Youdu\Config; use YouduPhp\Youdu\Kernel\Message\App\Text; $config = new Config([ 'api' => 'http://10.0.0.188:7080', 'buin' => 56565656, 'app_id' => 'yd06AB76EC519B4130A802224B4C60F689', 'aes_key' => 'A0aWSqDL5SV4fafQl3OavoVPUn6sx7xNnD+1hOoTeWk=', ]); $app = new Application($config); $msg = (new Text('hello world'))->toUser(10001); $app->message()->send($msg);