Download the PHP package rstacode/otpiq without Composer

On this page you can find all versions of the php package rstacode/otpiq. 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 otpiq

OTPIQ Laravel Package

Latest Version on Packagist Total Downloads License

The most reliable SMS, WhatsApp, and Telegram verification platform for your business in Iraq and Kurdistan.

OTPIQ provides a simple and powerful Laravel package to send verification codes and custom messages through multiple channels including SMS, WhatsApp, and Telegram with automatic fallback support.

Features

Requirements

Installation

Install the package via Composer:

Configuration

Publish the configuration file:

Add your OTPIQ API key to your .env file:

You can get your API key from the OTPIQ Dashboard.

Usage

Get Project Information

Retrieve your project details and remaining credits:

Response:

Send Verification Code

Send a verification code to a phone number:

Response:

With Custom Sender ID

With Delivery Report Webhook

Send Custom Message

Send a custom transactional or marketing message:

Send WhatsApp Template Message

Send a message using a pre-approved WhatsApp template:

Track SMS Status

Track the delivery status of a sent message:

Response:

Get Sender IDs

Retrieve all your available sender IDs:

Response:

Provider Options

The provider parameter allows you to choose how your message is delivered:

Error Handling

The package provides comprehensive error handling through the OtpiqApiException class:

Available Exception Methods

Testing

You can use the OTPIQ dashboard to test your integration:

  1. Visit the OTPIQ Dashboard
  2. Navigate to MessagingSend SMS
  3. Build and test your API calls interactively

API Reference

sendSms(array $data): array

Send an SMS message.

Parameters:

Verification Message

Custom Message

WhatsApp Template Message

getProjectInfo(): array

Get project information and remaining credits.

Returns:

trackSms(string $smsId): array

Track SMS delivery status.

Parameters:

Returns:

getSenderIds(): array

Get all available sender IDs.

Returns:

Support

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

The MIT License (MIT). Please see License File for more information.

Credits


All versions of otpiq with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1|^8.2|^8.3|^8.4
illuminate/support Version ^10.0|^11.0|^12.0|^13.0
guzzlehttp/guzzle Version ^7.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 rstacode/otpiq contains the following files

Loading the files please wait ...