Download the PHP package lox24eu/lox24_api_client without Composer

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

LOX24 SMS Gateway PHP Client

Documentation

The documentation for the LOX24 API can be found [here][https://doc.lox24.eu].

Versions

lox24-client-php uses Semantic Versioning for all changes. See this document for details.

Supported PHP Versions

This library supports the following PHP implementations:

Installation

Compatible PSR-7 and PSR-17 Libraries

This project is compatible with a range of libraries adhering to the PSR-17 and PSR-18 standards. Below is a list of well-known libraries that provide robust support for these standards, ensuring flexibility and interoperability in your application's HTTP client implementation.

You could use your own or any PSR-17/PSR-18 compatible libraries, e.g.:

Install with Composer

lox24-client-php is available on Packagist as the lox24eu/lox24_api_client package:

Usage example with Guzzle HTTP client

Add Guzzle HTTP client implementation to your project:

Example of the script which sends an SMS using LOX24's REST API and PHP:

Usage examples

For more examples, see the examples directory.

Exception Handling in LOX24 SMS Gateway Client

The LOX24 SMS Gateway Client library defines several exceptions to handle various error scenarios gracefully. All custom exception classes extend the base ApiException class.

Access Exceptions (AccessException)

Thrown when there is a generic access-related error.

Resource Exceptions (ResourceException)

A generic exception for resource-related errors.

Service Exceptions (ServiceException)

Thrown when there is a generic service-related error.

ClientException

This exception is a type of ApiException that represents errors that occur due to problems on the client side. It acts as a base exception for client-related issues. For example, this exception should be thrown when the client's request is malformed or when there is a failure in client-side logic before making a request to the server.

Handling Exceptions

Here's how you might catch and handle these exceptions in your application:

Getting help

If you've instead found a bug in the library or would like new features added, go ahead and open issues or pull requests against this repo!


All versions of lox24_api_client with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
psr/http-client Version 1.x
psr/http-message Version 2.x
psr/http-factory Version 1.x
psr/log Version 3.x
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 lox24eu/lox24_api_client contains the following files

Loading the files please wait ....