Download the PHP package infobip-community/infobip-api-php-sdk without Composer
On this page you can find all versions of the php package infobip-community/infobip-api-php-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download infobip-community/infobip-api-php-sdk
More information about infobip-community/infobip-api-php-sdk
Files in infobip-community/infobip-api-php-sdk
Package infobip-api-php-sdk
Short Description PHP SDK package for Infobip API
License MIT
Homepage https://github.com/infobip-community/infobip-api-php-sdk
Informations about the package infobip-api-php-sdk
Infobip API PHP SDK
This is a PHP SDK for Infobip API and you can use it as a dependency to add Infobip APIs to your application. To use this, you'll need an Infobip account. If you do not own one, you can create a free account here.
Table of contents:
- General Info
- License
- Compatibility Chart
- Installation
- Basic usage
- Example
- Exceptions
- Laravel
- Symfony
- Documentation
- Development
General Info
For infobip-api-php-sdk
versioning we use Semantic Versioning scheme.
License
Published under MIT License.
Compatibility Chart
Infobip API PHP SDK | PHP |
---|---|
1.* | 7.2.5+ / 8+ |
Installation
To start using the infobip-api-php-sdk
library add it as dependency to your composer.json
project dependency:
Or you can add it manually to composer.json
file:
And then simply run composer install
to download dependencies.
Basic usage
Example on how to create the InfobipClient
instance. You can also define it in your DI Container and get configuration data from the env()
or configuration file.
Example
A simple example of using the InfobipClient
for calling the :
Exceptions
There is a couple of Infobip exceptions
that you could stumble upon while using the InfobipClient
:
- Bad request (400)
- Unauthorized (401)
- Forbidden (403)
- Not found (404)
- Unprocessable entity (422)
- Too many requests (429)
- Internal server error (500)
Of course, there is a way of handling those:
Laravel
Register the InfobipServiceProvider
in your config/app.php
configuration file:
And then run the following command to copy the Infobip configuration file to your config
directory:
After that, you can start using the Infobip API PHP SDK package in your Laravel project, just inject the InfobipClient
into your codebase:
Symfony
Add and bind InfobipClient
to your config/services.yaml
file:
Documentation
Infobip API Documentation can be found here.
Development
Feel free to participate in this open source project. These are some console commands that could help you with the development like linter, static analysis and coding standards fixer:
For running the PHPunit tests: