Download the PHP package wenova/microservices-php without Composer
On this page you can find all versions of the php package wenova/microservices-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download wenova/microservices-php
More information about wenova/microservices-php
Files in wenova/microservices-php
Package microservices-php
Short Description PHP SDK for Wenova Microservices SMS/OTP and address APIs.
License MIT
Informations about the package microservices-php
Wenova Microservices SDKs
Official SDK monorepo for Wenova Microservices integrations.
This repository contains backend SDKs for:
| Language | Folder | Status |
|---|---|---|
| PHP | php/ |
Ready for GitHub/local installation |
| Python | python/ |
Ready for GitHub/local installation |
| Ruby | ruby/ |
Ready for GitHub/local installation |
| C# | csharp/ |
Ready for GitHub/local installation |
| Java | java/ |
Ready for GitHub/local installation |
Install From GitHub
Clone the SDK repository first:
Then install or reference the SDK for your language:
API Contract
Default API base URL:
All SDKs support an optional custom base URL and the WENOVA_API_URL environment variable.
SMS/OTP
POST /sms/package
Required fields:
headerphoneNumbermessageusePackage- at least one of
tokenorscriptId
Address
Address methods call:
GET /npm-provincesGET /npm-provinces/{id}GET /npm-districts/by-province/{provinceId}GET /npm-districts/{id}GET /npm-vilages/by-district/{districtId}GET /npm-vilages/{id}
Required field:
pluginKey
Optional fields:
kw(search keyword)lang(supported values:lao,lo,en,english,eng)
NPM package parity (Wenova-Microservices-dev-api)
- Address: maps to NPM package
wenova-addressinwenova-link- Query params:
key(frompluginKey), optionalkw, optionallang - Optional
baseUrl: override via SDK custom base URL orWENOVA_API_URL
- Query params:
- SMS/OTP: maps to NPM package
wenova-sms-otpinnpm-package- Function:
sendOtp({ header, phoneNumber, message, usePackage, token?, scriptId?, baseUrl? }) - Auth: provide at least one of
tokenorscriptId
- Function:
Verification
Run package build or syntax checks from each language folder before using or publishing.
Local Verification Status
Last checked on this machine:
| Language | Command | Result |
|---|---|---|
| PHP | composer validate --strict and php -l src/*.php |
Passed |
| Python | python -m compileall wenova_microservices |
Passed |
| Ruby | ruby -c lib/wenova/microservices.rb |
Passed |
| C# | dotnet build src/Wenova.Microservices/Wenova.Microservices.csproj |
Passed |
| Java | mvn package |
Passed |
Registry Publishing
The SDKs are currently available from this GitHub repository. Package registry publishing is a separate future step for Packagist, PyPI, RubyGems, NuGet, and Maven Central.
All versions of microservices-php with dependencies
ext-json Version *