Download the PHP package osiomagency/osiosms-php without Composer

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

OsioSMS PHP Package

Description

The OsioSMS API PHP Package is a comprehensive library designed to facilitate interaction with the OsioSMS platform. This package enables developers to seamlessly integrate various OsioSMS services into their PHP applications, including contact management, SMS sending, voice messaging, MMS, WhatsApp messaging, Viber, OTP, and profile management. Whether you're managing contacts, sending messages, or checking your account balance, this package provides a unified and easy-to-use interface for all your OsioSMS API needs.

Table of Contents

Basic Usage

Installation

Install the package via Composer:

Initialization

To start using the Contacts API, initialize the Contacts class by providing your OsioSMS API token:

Here's the ## Contacts section in markdown format:

Contacts

The Contacts class provides methods to manage contacts within the OsioSMS platform. You can create, view, update, delete, and list contacts in specific contact groups.

Create a Contact

To create a new contact within a specific group, use the create method:

View a Contact

To view the details of an existing contact, use the view method:

Update a Contact

To update an existing contact, use the update method:

Delete a Contact

To delete an existing contact, use the delete method:

View All Contacts in a Group

To view all contacts within a specific group, use the viewAll method:

Groups

The Groups class provides methods to manage contact groups within the OsioSMS platform. You can create, view, update, delete, and list contact groups.

Create a Group

To create a new contact group, use the create method:

View a Group

To view the details of an existing contact group, use the view method:

Update a Group

To update the name of an existing contact group, use the update method:

Delete a Group

To delete an existing contact group, use the delete method:

View All Groups

To view all contact groups, use the viewAll method:

MMS

The Mms class provides methods to send and manage MMS messages using the OsioSMS platform. You can send MMS messages, view details of a specific MMS, and list all MMS messages.

Send an MMS

To send an MMS message, use the send method:

View an MMS

To view the details of a specific MMS message, use the view method:

View All MMS Messages

To view all MMS messages, use the viewAll method:

SMS

The Sms class provides methods to send and manage SMS messages using the OsioSMS platform. You can send individual SMS messages, run SMS campaigns, and view details of specific SMS messages or campaigns.

Send an SMS

To send an SMS message, use the send method:

Send an SMS Campaign

To send an SMS campaign to a contact list, use the sendCampaign method:

View an SMS

To view the details of a specific SMS message, use the view method:

View All SMS Messages

To view all SMS messages, use the viewAll method:

View an SMS Campaign

To view the details of a specific SMS campaign, use the viewCampaign method:

Voice

The Voice class provides methods to send and manage voice messages using the OsioSMS platform. You can send voice messages, view details of a specific voice message, and list all voice messages.

Send a Voice Message

To send a voice message, use the send method:

View a Voice Message

To view the details of a specific voice message, use the view method:

View All Voice Messages

To view all voice messages, use the viewAll method:

OTP

The Otp class provides methods to send and manage One-Time Password (OTP) messages using the OsioSMS platform. You can send OTP messages, view details of a specific OTP message, and list all OTP messages.

Send an OTP Message

To send an OTP message, use the send method:

View an OTP Message

To view the details of a specific OTP message, use the view method:

View All OTP Messages

To view all OTP messages, use the viewAll method:

WhatsApp

The Whatsapp class provides methods to send and manage WhatsApp messages using the OsioSMS platform. You can send WhatsApp messages, view details of a specific WhatsApp message, and list all WhatsApp messages.

Send a WhatsApp Message

To send a WhatsApp message, use the send method:

View a WhatsApp Message

To view the details of a specific WhatsApp message, use the view method:

View All WhatsApp Messages

To view all WhatsApp messages, use the viewAll method:

Viber

The ViberApi class provides methods to send and manage Viber messages using the OsioSMS platform. You can send Viber messages, view details of a specific Viber message, and list all Viber messages.

Send a Viber Message

To send a Viber message, use the send method:

View a Viber Message

To view the details of a specific Viber message, use the view method:

View All Viber Messages

To view all Viber messages, use the viewAll method:

Profile

The Profile class provides methods to retrieve account information, including your remaining SMS balance and profile details, using the OsioSMS platform.

View SMS Balance

To check your remaining SMS balance, use the viewBalance method:

View Profile Information

To view your profile details, use the viewProfile method:

Response Handling

All methods return an array with the response data from the OsioSMS API. If the request is successful, the status will be success and data will contain the contact details or relevant information. In case of an error, the status will be error and the message will provide a human-readable description of the error.


All versions of osiosms-php with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
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 osiomagency/osiosms-php contains the following files

Loading the files please wait ....