Download the PHP package gsmservice-pl/messaging-sdk-php without Composer

On this page you can find all versions of the php package gsmservice-pl/messaging-sdk-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 messaging-sdk-php

Packagist Version GitHub License Static Badge

GSMService.pl Messaging REST API SDK for PHP

This package includes Messaging SDK for PHP (>8.2) to send SMS & MMS messages directly from your app via https://bramka.gsmservice.pl messaging platform.

Additional documentation:

A documentation of all methods and types is available below in section Available Resources and Operations .

Also you can refer to the REST API documentation for additional details about the basics of this SDK.

Table of Contents

SDK Installation

The SDK relies on Composer to manage its dependencies.

To install the SDK and add it as a dependency to an existing composer.json file:

Requeirements:

Sending single SMS Message

This example demonstrates simple sending SMS message to a single recipient:

Available Resources and Operations

Available methods ### [accounts](docs/sdks/accounts/README.md) * [get](docs/sdks/accounts/README.md#get) - Get account details * [getSubaccount](docs/sdks/accounts/README.md#getsubaccount) - Get subaccount details ### [common](docs/sdks/common/README.md) * [ping](docs/sdks/common/README.md#ping) - Checks API availability and version ### [incoming](docs/sdks/incoming/README.md) * [list](docs/sdks/incoming/README.md#list) - List the received SMS messages * [getByIds](docs/sdks/incoming/README.md#getbyids) - Get the incoming messages by IDs ### [outgoing](docs/sdks/outgoing/README.md) * [getByIds](docs/sdks/outgoing/README.md#getbyids) - Get the messages details and status by IDs * [cancelScheduled](docs/sdks/outgoing/README.md#cancelscheduled) - Cancel a scheduled messages * [list](docs/sdks/outgoing/README.md#list) - Lists the history of sent messages #### [outgoing->sms](docs/sdks/sms/README.md) * [getPrice](docs/sdks/sms/README.md#getprice) - Check the price of SMS Messages * [send](docs/sdks/sms/README.md#send) - Send SMS Messages ### [senders](docs/sdks/senders/README.md) * [list](docs/sdks/senders/README.md#list) - List allowed senders names * [add](docs/sdks/senders/README.md#add) - Add a new sender name * [delete](docs/sdks/senders/README.md#delete) - Delete a sender name * [setDefault](docs/sdks/senders/README.md#setdefault) - Set default sender name

Error Handling

Handling errors in this SDK should largely match your expectations. All operations return a response object or throw an exception.

By default an API error will raise a Errors\SDKException exception, which has the following properties:

Property Type Description
$message string The error message
$statusCode int The HTTP status code
$rawResponse ?\Psr\Http\Message\ResponseInterface The raw HTTP response
$body string The response content

When custom error responses are specified for an operation, the SDK may also throw their associated exception. You can refer to respective Errors tables in SDK docs for more details on possible exception types for each operation. For example, the get method throws the following exceptions:

Error Type Status Code Content Type
Errors\ErrorResponse 401, 403, 4XX, 5XX application/problem+json

Example

Server Selection

Server Selection

Select Server by Name

You can override the default server globally by passing a server name to the server: str optional parameter when initializing the SDK client instance. The selected server will then be used as the default on the operations that use it. This table lists the names associated with the available servers:

Name Server Variables
prod https://api.gsmservice.pl/rest None
sandbox https://api.gsmservice.pl/rest-sandbox None

Override Server URL Per-Client

The default server can also be overridden globally by passing a URL to the server_url: str optional parameter when initializing the SDK client instance. For example:

Development

Maturity

This SDK is in continuous development and there may be breaking changes between a major version update. Therefore, we recommend pinning usage to a specific package version. This way, you can install the same version each time without breaking changes unless you are intentionally looking for the latest version.

Contributions

While we value open-source contributions to this SDK, this library is generated programmatically. Any manual changes added to internal files will be overwritten on the next generation. We look forward to hearing your feedback. Feel free to open a PR or an issue with a proof of concept and we'll do our best to include it in a future release.


All versions of messaging-sdk-php with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
guzzlehttp/guzzle Version ^7.0
speakeasy/serializer Version ^3.40.0
brick/date-time Version ^0.7.0
phpdocumentor/type-resolver Version ^1.8
brick/math Version ^0.12.1
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 gsmservice-pl/messaging-sdk-php contains the following files

Loading the files please wait ....