Download the PHP package oxik/one-api-bundle without Composer

On this page you can find all versions of the php package oxik/one-api-bundle. 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 one-api-bundle

OneApiBundle for Symfony2 0.0.1

What is OneApiBundle?

It's a small symfony bundle that acts like a bridge between infobip OneApi and your symfony project.

Simple wrap the OneApi objects into your services or controllers.

The next documentation is ported from OneApi and adapted to the use in your symfony 2 project.

Installation

Add this to your composer.json file.

And to AppKernel.php

Add your username and password to `config.yml' file.

Use of static::functions

You still can use the static functions of OneApi, load infobin/class namespace manually.

Basic messaging example

First include the OneApiBundle Wrapper service into your code and retrieve a new instance of SmsClient.

The first argument is the class to initialize from OneApi, the second one are the arguments of the class (if true then username and password will be passed to the function, insert an array instead to set your own custom arguments).

An exception will be thrown if your username and/or password are incorrect.

Prepare the message:

Send the message:

Later you can query for the delivery status of the message:

Possible statuses are: DeliveredToTerminal, DeliveryUncertain, DeliveryImpossible, MessageWaiting and DeliveredToNetwork.

Messaging with notification push example

Same as with the standard messaging example, but when preparing your message:

When the delivery notification is pushed to your server as a HTTP POST request, you must process the body of the message with the following code:

Sending message with special characters example

If you want to send message with special characters, this is how you prepare your message:

Currently supported languages (with their language codes) are: Spanish - "SP", Portuguese - "PT", Turkish - "TR".

Number Context example

Initialize and login the data connection client:

Retrieve the roaming status (Number Context):

Retrieve inbound messages example

With the existing sms client (see the basic messaging example to see how to start it):

Social invites sms example

If you have Social Invites application registered and configured (tutorial), you can send invitations.

First initialize the social invites client using your username and password:

Prepare the social invitation:

Send the message:

Later you can query for the delivery status of the social invite message:

License

This library (and OneApi PHP) is licensed under the Apache License, Version 2.0


All versions of one-api-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.2
symfony/framework-bundle Version ~2.3
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 oxik/one-api-bundle contains the following files

Loading the files please wait ....