Download the PHP package aristide/nimbasms without Composer

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

Nimbasms

Client Laravel pour l'API Nimba SMS : SMS, WhatsApp (templates Meta), OTP, contacts, groupes, sender names, achats et extensions.

Packagist PHP from Packagist Laravel versions GitHub Workflow Status (master) Total Downloads

Prérequis

Installation

Publiez le fichier de configuration :

Ajoutez vos identifiants dans .env :

L'authentification suit la spec officielle : HTTP Basic base64(service_id:secret_token) vers https://api.nimbasms.com/v1.

Clé Description
NIMBASMS_BASE_URL URL de base (https://api.nimbasms.com/v1 par défaut)
NIMBASMS_SERVICE_ID Identifiant de service
NIMBASMS_SECRET_TOKEN Jeton secret
NIMBASMS_SENDER_NAME Nom d'expéditeur par défaut (sensible à la casse)
NIMBASMS_TIMEOUT Timeout HTTP en secondes (20 par défaut)

Usage

Toutes les réponses JSON de l'API sont renvoyées sous forme de tableaux PHP. Les erreurs HTTP lèvent une exception typée.

Compte

GET /accounts — soldes SMS et WhatsApp (sms_balance, whatsapp_balance ; balance est obsolète).

Messages SMS

POST /messages avec channel: sms. Maximum 30 destinataires par requête ; le client découpe automatiquement au-delà.

Jusqu'à 7 parties SMS (1071 caractères GSM-7). Simulateur : simulator.nimbasms.com.

Messages WhatsApp

POST /messages avec channel: whatsapp. Le texte libre n'est pas accepté : il faut un template Meta validé créé depuis le dashboard Nimba SMS.

Les clés "1", "2", "3" correspondent à {{1}}, {{2}}, {{3}} dans le corps du template.

Détail d'un message

GET /messages/{messageid}

Vérifications OTP

POST /verifications puis PATCH /verifications/{verificationid}.

Le message SMS doit contenir le motif <1234>. Pour WhatsApp, le contenu est remplacé par le template d'authentification. Préférez cet endpoint aux SMS OTP via /messages : Nimba lui donne une file prioritaire.

Contacts

GET /contacts et POST /contacts

Groupes, sender names, achats

Extensions marketplace

Couvre la spec OpenAPI : liste, création, détail, mise à jour, publication, logo, actions et plans tarifaires.

Webhooks de livraison

L'URL se configure dans le dashboard Nimba (API Keys). Nimba envoie un POST JSON ; répondez 200 OK (3 tentatives sinon).

Statuts documentés côté livraison : tosend, sent, received, read, failure, not_available. Le webhook OpenAPI mentionne aussi failed.

Exceptions

HTTP Exception
400 / 422 Nimbasms\Nimbasms\Exceptions\ValidationException
401 AuthenticationException
404 NotFoundException
420 / 429 RateLimitException
5xx ServerException
autre NimbaSmsException

Toutes étendent NimbaSmsException ($exception->status, $exception->body).

L'API limite les envois à 300 SMS / seconde. Prévoyez un retry sur RateLimitException.

Tests dans l'application hôte

Documentation officielle

Changelog

Voir CHANGELOG.

Contributing

Voir .github/CONTRIBUTING.md.

Security Vulnerabilities

Voir .github/SECURITY.md.

Credits

License

Nimbasms is open-sourced software licensed under the MIT license.


All versions of nimbasms with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
illuminate/http Version ^12.0||^13.0
illuminate/support Version ^12.0||^13.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 aristide/nimbasms contains the following files

Loading the files please wait ...