Download the PHP package mysteryinfosolutions/yourbulksms without Composer

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

YourBulkSMS PHP SDK (mysteryinfosolutions/yourbulksms)

A framework-agnostic PHP package for integrating with the YourBulkSMS HTTP API gateway. It provides a clean, SDK-like API, robust data normalization, custom exception handling, defensive webhook parsing, and optional Laravel integration.


Table of Contents

  1. Features
  2. Installation
  3. Client Initialization
  4. Public Methods & Feature Showcase
    • Send Standard SMS
    • Send Unicode SMS
    • Send Scheduled SMS
    • Send Scheduled Unicode SMS
    • Send International SMS
    • Check Route Balance
    • Fetch Delivery Report
  5. Overriding Configuration Per-Request
  6. Route Constants (Enums)
  7. Webhook & DLR Parsing
    • Variant A: Query String Style
    • Variant B: JSON POST data Payload
  8. Response DTO Structures
  9. Laravel Integration
  10. CodeIgniter 4 Integration
  11. Testing

Features


Installation

Install the package via Composer:


Client Initialization

To instantiate the client manually in plain PHP, pass an array configuration:


Public Methods & Feature Showcase

Send Standard SMS

Accepts a single mobile number (string) or an array of numbers. Arrays are normalized to a comma-separated format automatically.

Send Unicode SMS

Appends unicode=1 and sends the message payload as UTF-8 encoded text.

Send Scheduled SMS

Accepts a DateTimeInterface instance or a string format. Automatically normalizes it to the gateway-required Y-m-d H:i:s format.

Send Scheduled Unicode SMS

Combines Unicode payload and scheduling logic.

Send International SMS

Uses the gateway global SMS endpoint (/global-smsapi.php).

Check Route Balance

Checks remaining SMS balance on a specific route.

Fetch Delivery Report

Retrieves the real-time status of an SMS by its message ID.


Overriding Configuration Per-Request

You can override defaults (like sender, route, or dlt_te_id) on a per-request basis by passing them in the $options array:


Route Constants (Enums)

Use MysteryInfo\YourBulkSms\Support\Route to keep code clean and self-documenting:


Webhook & DLR Parsing

The SDK automatically detects the incoming webhook format and returns a normalized WebhookReportCollection containing WebhookReportItem objects.

Variant A: Query String Style

Webhook request format: GET /webhook.php?requestId=12345&userId=67890&status=000&date=1680766504000&senderId=TXTSMS&number=919999999999&desc=Delivered

Variant B: JSON POST data Payload

Webhook request format: POST /webhook.php with a data parameter containing a raw JSON array string.

Parsing implementation:


Response DTO Structures

All requests return structured DTOs containing the following public fields:

SendSmsResponse & DeliveryReportResponse

BalanceResponse


Laravel Integration

  1. Publish the configuration file:

  2. Add environment variables in .env:

  3. Call the API using the Facade:

CodeIgniter 4 Integration

Instantiate the client directly within your controllers:


Testing

Run tests locally using PHPUnit:


All versions of yourbulksms with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4|^8.0
guzzlehttp/guzzle Version ^7.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 mysteryinfosolutions/yourbulksms contains the following files

Loading the files please wait ...