eitaaphplib
v1.0.0
EitaaPHP is a lightweight library for working with Eitaayar api in php
$ composer require arjomand/eitaa
$ git clone https://github.com/mohammadali-arjomand/eitaaphplib.git
NOTICE
if you use git for add library to your project, you should also add cURL in your project
now you should include library file:
include "eitaa.php";for use this library:
$token = "bot16344:6d3e4430-****-****-****-************";
$channel_id = 23333622;$eitaa = new EitaaPHP($token, $channel_id);// send message
$eitaa->sendMessgae("YOUR_TEXT_TO_SEND");
// send file
$eitaa->sendFile("YOUR_FILE_PATH_TO_SEND");~/docs/other-argument.md).// send message
$eitaa->sendMessgae("YOUR_TEXT_TO_SEND", [OTHER_PARAMETER => "VALUE"]);
// send file
$eitaa->sendFile("YOUR_FILE_PATH_TO_SEND", [OTHER_PARAMETER => "VALUE"]);Examples
you can see examples code in
~/examples