承接 arjomand/eitaa 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

arjomand/eitaa

最新稳定版本:1.0.0

Composer 安装命令:

composer require arjomand/eitaa

包简介

A lightweight library for working with Eitaayar api

README 文档

README

EitaaPHP is a lightweight library for working with Eitaayar api in php

How to add it in my project?

1. with composer

$ composer require arjomand/eitaa

2. with git

$ 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";

How to use it?

for use this library:

  1. first find your eitaayar token and channel id from here.
$token = "bot16344:6d3e4430-****-****-****-************";
$channel_id = 23333622;
  1. now, create a object from Eitaa class.
$eitaa = new EitaaPHP($token, $channel_id);
  1. use sendMessage or sendFile methods to sending.
// send message
$eitaa->sendMessgae("YOUR_TEXT_TO_SEND");
// send file
$eitaa->sendFile("YOUR_FILE_PATH_TO_SEND");
  1. you can use other parameters in methods (See other parameters document: ~/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

Donate

统计信息

  • 总下载量: 190
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 5
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 5
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-05-25