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.
- Official Website
- Live Demo
- Source Code Live Demo
Features
- Send verification codes via SMS, WhatsApp, or Telegram
- Send custom messages with approved sender IDs
- Track SMS delivery status
- Get project information and credits
- Manage sender IDs
- Full Laravel 10+ support
- PHP 8.1+ support
Requirements
- PHP 8.1 or higher
- Laravel 10.x or higher
- Composer
Installation
Install the package via Composer:
After installing, publish the configuration file:
Configuration
Add your OTPIQ API key to your .env
file:
Usage
Send Verification Code
Send Custom Message
Track SMS Status
Get Project Information
Get Sender IDs
Error Handling
The package includes comprehensive error handling. Here's how to handle different scenarios:
Available Providers
When sending messages, you can specify the provider:
auto
(recommended): System automatically chooses the best available providersms
: Send via SMSwhatsapp
: Send via WhatsApptelegram
: Send via Telegram
Note: When smsType
is custom
, the provider is automatically set to sms
.
Testing
Run the test suite:
Or run specific 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! Please review our contribution guidelines before submitting a pull request.
- 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 [email protected] or create an issue in the GitHub repository.