Download the PHP package hivelink/php without Composer

On this page you can find all versions of the php package hivelink/php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package php

HiveLink Library Php

Easy-to-use SDK for implementing Hivelink SMS API in your PHP projects.
Explore the docs »


مستندات فارسی

## Table of Contents * [Install](#install) * [Usage](#usage) * [Parameters](#parameters) * [Example](#example) * [One-Time Passwords (OTP)](#one-time-passwords-otp) * [Parameters](#parameters-1) * [Example](#example-1) * [Licence](#license) ## Install The easiest way to install is by using [Composer](https://getcomposer.org/): Composer is a dependency manager for PHP which allows you to declare the libraries your project depends on, and it will manage (install/update) them for you. If you are not familiar with Composer, you can read its documentations and download it via [getcomposer.org](https://getcomposer.org/). Alternatively you can download HiveLink SDK from [here](https://github.com/hivelinklib/hivelink-php/archive/master.zip) and extract it in your project and follow the rest of the instructions below. Also there is an `Example` folder inside the package which you can use to understand the procedure. ## usage To use the API, you need an API key. To get that you should have a [Hivelink](https://notif.hivelink.co) account. Register and get your API key. Then require the file autoload.php to get all classes and dependencies loaded. Create an instance from Hivelink class with your API key: Don't forget to change `your_api_key` with the key you have got from your Hivelink account. Send a sms: ## Parameters | Parameter | Required | Description | Type | Example | | --- | --- | --- | --- | --- | | text| Yes | Text to be sent | string | Hello, World! | | receiver| Yes | The number of the receiver(s) of the message (set all receiver in array). | string | 09110000000 | | line_number| No | If the sender's number is not specified, the message will be selected from Highlink's dedicated lines with higher priority.**** | string | 9000**** | | date| No | The exact date and time of sending the message based on Unix time, if not specified, the message will be sent instantly. | string | 1671148877 | ## Example Here is a sample code for sending an SMS. Please note that if you are looking for a specific line, you must specify the `line number`. ## License Freely distributable under the terms of the [MIT](https://opensource.org/licenses/MIT) license.

فهرست مطالب

نصب

ساده‌ترین راه برای نصب این پکیج استفاده از Composer است:

نحوه استفاده

برای استفاده از این پکیج می‌بایست API key داشته باشید. جهت دریافت ابتدا در سامانه جامع هایولینک ثبت‌نام کنید و از پنل کاربری‌تان API key دریافت کنید.

سپس باید فایل autoload را به پروژه‌ی خود اضافه کنید:

یک instance از کلاس Hivelink با API key خود بسازید:

به خاطر داشته باشید که your_api_key را با کلید دریافتی از حساب هایولینک خود جایگزین کنید.

پیامک دلخواه‌تان را ارسال کنید:

پارامترها

پارامتر اجباری توضیحات نوع مثال
text بله متنی که باید ارسال شود. string این یک تست می باشد!
receiver بله شماره گیرنده پیام می باشد. string 09110000000
line_number خیر اگر شماره فرستنده مشخص نشده باشد، پیام از خطوط اختصاصی هایولینک با اولویت بالاتر انتخاب می شود.(در صورت داشتن خطوط مشخص، خط مورد نظر را وارد کنید) string 9000***
date خیر تاریخ و زمان دقیق ارسال پیام بر اساس Unixtime می باشد که اگر قید نشود در همان لحظه پیام ارسال می شود. string 1671147631

نمونه کد

در اینجا یک نمونه کد برای ارسال پیامک آورده شده است. لطفا توجه داشته باشید که اگر به دنبال یک خط خاص هستید، باید "شماره خط" را مشخص کنید.


All versions of php with dependencies

PHP Build Version
Package Version
Requires php Version >=5.2.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package hivelink/php contains the following files

Loading the files please wait ....