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.
Download rstacode/otpiq
More information about rstacode/otpiq
Files in rstacode/otpiq
Package otpiq
Short Description A Laravel package for handling OTP verification, The most reliable SMS & WhatsApp & Telegram verification platform for your business in Iraq
License MIT
Homepage https://github.com/rstacode/otpiq
Informations about the package otpiq
OTPIQ Laravel Package
A Laravel package for seamless integration with the OTPIQ SMS service API. Send verification codes and custom messages via SMS, WhatsApp, or Telegram with ease.
๐ Quick Links
โจ Features
- Multi-Channel Messaging: Send messages via SMS, WhatsApp, or Telegram.
- Verification Codes: Easily send OTPs and verification codes.
- Custom Messages: Send personalized messages with approved sender IDs.
- Delivery Tracking: Track the status of sent messages in real-time.
- Credit Management: Monitor your remaining credits and usage.
- Sender ID Management: Retrieve and manage your approved sender IDs.
- Laravel 10+ Support: Fully compatible with Laravel 10 and above.
- PHP 8.1+ Support: Built for modern PHP applications.
๐ ๏ธ Requirements
- PHP 8.1 or higher
- Laravel 10.x or higher
- Composer
๐ Installation
-
Install the package via Composer:
-
Publish the configuration file:
- Add your OTPIQ API key to your
.env
file:
โ๏ธ Configuration
The configuration file (config/otpiq.php
) includes the following options:
๐ฏ Usage
Send Verification Code
Send Custom Message
Track SMS Status
Get Project Information
Get Sender IDs
๐จ Error Handling
The package provides comprehensive error handling. Here's how to handle errors:
๐ Available Providers
When sending messages, you can specify the provider:
auto
(recommended): System automatically chooses the best available provider.sms
: Send via SMS.whatsapp
: Send via WhatsApp.telegram
: Send via Telegram.
Note: When smsType
is custom
, the provider is automatically set to sms
.
๐งช Testing
Run the test suite:
Run specific tests:
Mock API responses in tests:
๐ License
This package is licensed under the MIT License. See the LICENSE file for details.
๐ Security
If you discover any security-related issues, please email [email protected] instead of using the issue tracker.
๐ก Credits
- Rstacode
- All Contributors
๐ค Contributing
Thank you for considering contributing to the OTPIQ Laravel package!
- Fork the repository.
- Create your feature branch (
git checkout -b feature/amazing-feature
). - Commit your changes (
git commit -m 'Add some amazing feature'
). - Push to the branch (
git push origin feature/amazing-feature
). - Open a Pull Request.
๐ Support
For support, email GitHub repository.