PHP code example of youduphp / youdu
1. Go to this page and download the library: Download youduphp/youdu library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
youduphp / youdu example snippets
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);