Download the PHP package kpaph/msg4wrdio without Composer

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

About MSG4wrd

MSG4wrd is an SMS Gateway and Message Forwarder API formerly known as PTXT4wrd.

From 2005 to 2012, in the Philippines, some networks only allowed text messaging within the same network. Promos were available for unlimited texting to the same network, such as SMART to SMART or GLOBE to GLOBE only.

To address this issue, PTXT4wrd was invented, which allows users to send messages to other networks by forwarding their texts from their own network.

Example command for sending a message to other networks:

PTXT{space}OtherNetworkNumber{space}YourMessage then send to Gateway.

PTXT 09171234567 Hello world! Then, send to gateway number.

Gateways - SMART / GLOBE / SUN If you are smart, you will use SMART Gateway, identical to the other networks.

Requirements

Installation

composer require kpaph/msg4wrdio

The service provider is auto-discovered by Laravel — no manual registration in config/app.php is required.

Publish the config file (config/msg4wrdio.php):

php artisan vendor:publish --tag=msg4wrdio-config

Add your token to .env. Get a token at MSG4wrd.io:

Demo routes (optional, disabled by default)

The package ships with demo routes (/msg4wrd, /msg4wrd/send, /msg4wrd/send-with-options) for smoke-testing. They are unauthenticated and can trigger SMS sends billed to your token, so they are disabled by default. To enable them in local environments only:

With the demo routes enabled you can check the install:

http://localhost:8000/msg4wrd

And trigger a test send:

http://localhost:8000/msg4wrd/send?number=63XXXXXXXXXX

Note: Only +63 (Philippines mobile) and +1 (US / Canada) numbers are accepted. A leading + and common separators (spaces, dashes, dots, parentheses) are stripped automatically. Examples of valid input: +63 917 123 4567, 639171234567, +1 (202) 664-5435, 12026645435.

Usage

Create a controller, e.g. SMSController:

Configuration reference

Env variable Default Purpose
MSG4wrdIO_TOKEN (empty) Bearer token from MSG4wrd.io.
MSG4wrdIO_DOMAIN https://api.msg4wrd.io Live (production) API base URL.
MSG4wrdIO_DEVELOPER https://staging.msg4wrd.io Sandbox / staging API base URL, used when dev_mode=true.
MSG4wrdIO_DEV_MODE false When true, requests go to the sandbox URL; when false, they go to live.
MSG4wrdIO_DEFAULT_COUNTRY PH Default country if $options["country"] is omitted.
MSG4wrdIO_EXPOSE_DEMO_ROUTES false Opt-in to register the unauthenticated /msg4wrd* demo routes.

Changelog

Unreleased — Guzzle 6/7/8 support + cURL fallback + bug fixes

v2026.7.1 — Laravel 13 support

Fixes

Security

Packaging

Upgrading

Upgrading to Laravel 13? Just update the package — no app changes needed:

If you are upgrading from a much earlier version:

  1. Remove the manual KPAPH\MSG4wrdIO\MSG4wrdIOServiceProvider::class entry from config/app.php — auto-discovery handles it now.
  2. If you relied on the /msg4wrd* demo routes, add MSG4wrdIO_EXPOSE_DEMO_ROUTES=true to your .env (recommended: local environments only).
  3. Re-publish the config: php artisan vendor:publish --tag=msg4wrdio-config --force.
  4. If you called MSG4wrd::chechNumberCountryCode(...) directly, rename it to checkNumberCountryCode.

All versions of msg4wrdio with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
guzzlehttp/guzzle Version ^6.3|^7.2|^8.0
illuminate/support Version ^8.0|^9.0|^10.0|^11.0|^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 kpaph/msg4wrdio contains the following files

Loading the files please wait ...