Download the PHP package gladdle/nexah-sms without Composer
On this page you can find all versions of the php package gladdle/nexah-sms. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download gladdle/nexah-sms
More information about gladdle/nexah-sms
Files in gladdle/nexah-sms
Package nexah-sms
Short Description A php library for sending SMS to one or more phone numbers using the Nexah API
License MIT
Homepage https://github.com/etiennekoumgang/nexah-sms
Informations about the package nexah-sms
Nexah SMS API - PHP library
This PHP library lets you communicate with the Nexah API. You can send SMS messages and check your SMS balance. The library gives developers the flexibility to manage their interaction with the API. To use the API, you need an account. Visit the official website https://nexah.net/ to get one.
Requirements
- A username and password from https://nexah.net/
- PHP 7.4 and above
- Composer
Installation
Via composer
Basic Usage
Catching errors
When you try to communicate with the API, errors may occur:
- Incorrect username and/or password,
- Invalid phone numbers
You can adapt your codes according to the error encountered
Testing
Immediately after installation, you can test the library without writing a line of code. Make sure you have a valid username and password.
NX_BAD_USER and the others are environment variables. You can define them according to your operating system
- NX_BAD_USER invalid username
- NX_GOOD_USER valid username
- NX_PWD good password
- NX_GOOD_NUM good number
- NX_BAD_NUM invalid number like 10 digits
Logs
You can stream logs messages by defining file path
Author
Koumé KOUMGANG - https://www.linkedin.com/in/etiennekoumgang/
All versions of nexah-sms with dependencies
symfony/http-client Version 5.4.x-dev
monolog/monolog Version 2.x-dev