Download the PHP package creatvstudio/itexmo without Composer
On this page you can find all versions of the php package creatvstudio/itexmo. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download creatvstudio/itexmo
More information about creatvstudio/itexmo
Files in creatvstudio/itexmo
Package itexmo
Short Description iTexMo API client for PHP.
License MIT
Homepage https://github.com/creatvstudio/itexmo
Informations about the package itexmo
iTexmo
iTexMo API client for PHP.
Requirements
To use the client library you'll need to have created an iTexmo account.
Installation
You can install the package via composer:
Usage
Laravel
Add ItexmoServiceProvider to your config.
Add your Itexmo credentials to config/services.php
and .env
file.
If you want to use the Itexmo
Facade you can also add the alias to your config.
Now you can just use the Facade to send SMS. Your API Code
and API Password
will be automatically injected to the Itexmo
object.
Dependency Injection
You can also use Laravel's dependecy injection to your controllers or commands.
Error Codes
Command | Description | |
---|---|---|
1 | Invalid Number. | |
2 | Number prefix not supported. Please contact us so we can add. | |
3 | Invalid ApiCode. | |
4 | Maximum Message per day reached. This will be reset every 12MN. | |
5 | Maximum allowed characters for message reached. | |
6 | System OFFLINE. | |
7 | Expired ApiCode. | |
8 | iTexMo Error. Please try again later. | |
9 | Invalid Function Parameters. | |
10 | Recipient's number is blocked due to FLOODING, message was | ignored. |
11 | Recipient's number is blocked temporarily due to HARD sending | (after 3 retries of sending and message still failed to send) and the message was ignored. |
12 | Invalid request. You can't set message priorities on non | corporate apicodes. |
13 | Invalid or Not Registered Custom Sender ID. | |
14 | Invalid preferred server number. | |
15 | IP Filtering enabled - Invalid IP. | |
16 | Authentication error. Contact support at [email protected] | |
17 | Telco Error. Contact Support [email protected] | |
18 | Message Filtering Enabled. Contact Support [email protected] |
Testing
You need your Itexmo credentials to test the API. For this you have to create a phpunit.xml
file. You can do this by copying the phpunit.xml.dist
.
And replace the ITEXMO
env variables with your credentials.
To start the test.
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Jeffrey Naval
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
PHP Package Boilerplate
This package was generated using the PHP Package Boilerplate.