zamay86/unisender-php-api-wrapper 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

zamay86/unisender-php-api-wrapper

Composer 安装命令:

composer require zamay86/unisender-php-api-wrapper

包简介

Unisender API wrapper

README 文档

README

This is a fork of the original unisender/api-wrapper. The upstream project was moved to Gitflic.ru, which frequently goes offline, breaking automated installs. By maintaining this fork under the same namespaces, you can install zamay86/unisender-php-api-wrapper reliably without any changes to your code.

Original package on Packagist

Original package source on GitFlick

zamay86/unisender-php-api-wrapper (unisender/api-wrapper)

PHP wrapper for Unisender API requests.

English documentaion https://www.unisender.com/en/support/integration/api/

Русская документация https://www.unisender.com/ru/support/integration/api/

Install

The preferred way to install this extension is through composer.

composer require zamay86/unisender-php-api-wrapper

To use compression you have to install bz2 php extension.

Changelog

v1.2 Since this version, you may specify platform - a new argument. We will track it in our database. This is usefull for us to keep close to all platforms which uses our api. It is not required argument.

v1.5 Since this version, we requrire at least PHP 5.6 to enable TLS 1.2 support. Now English is default locale for api request.

v1.6 Updated all information into english, added new api-methods. Added support to change api request language.

Basic usage example

<?php

require_once 'UnisenderApi.php';

use Unisender\ApiWrapper\UnisenderApi;

$platform = 'My E-commerce product v1.0';
$UnisenderApi = new UnisenderApi('api key here', 'UTF-8', 4, null, false, $platform);
$UnisenderApi->sendSms(
    ['phone' => 380971112233, 'sender' => 'Sender', 'text' => 'Hello World!']
);

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-06-16