Download the PHP package smsorange/api-library without Composer

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

Build Status

SMS Orange API package is a framework agnostic PHP library for facilitating communication between a client application and SMS Orange API endpoints.

Note

Work in progress, not for public use..

Installation

In order to install the api package in your application, you will need composer and PHP >= 5.4

If you don't have composer installed, follow these instructions first:

https://getcomposer.org/doc/00-intro.md#globally

After confirming your composer installation, continue with the instructions below.

Put the following line in your composer require array

or, if you do not have the composer initiated in your project, create the composer.json file in the project root and paste these lines:

then, from the project root, run this command in terminal

API Token

In order to use this library, you must have your API Token ready. Contact SmsOrange if you don't have one.

API Parameters

Type Step Method Parameters Data type / format
Cruise Search search cruise_data[from_date]
cruise_data[to_date]
cruise_data[cruises_cruise_line_id]
cruise_data[destination_id]
cruise_data[ship_code]
cruise_data[departure_port_id]
yyyy-mm
yyyy-mm
int
int
int
int
Select select cruise-code
webservice
string
string
GetComponents getComponents fare_code*
cruise-code
guests
string
string
array
GetAvailableCategories getAvailableCategories cruise-code
cruise-guests
string
array
GetCabins getCabins cruise-code
category-code
string
string
HoldCabin holdCabin cruise-code
cabin_number
dining_preference
first_name
last_name
string
int
string
string
string
Book book cruise-code
guest_data**
string
array

** Guest data array for each guest, needs to contain the following keys

Key Type
first_name string
last_name string
localized_name* string
nationality string (use options from the example app)
gender string (Male, Female, NotAvailable)
birth_date string (dd/mm/yyyy)
place_of_birth* string
language_code string (use options from the example app)
home_phone string
mobile_phone* string
email* string
residence_address string
residence_city string
residence_state string
residence_country string (use options from the example app)
document_type string (currently, only Maltese id_card is supported)
document_number string
document_issue_date string (dd/mm/yyyy)
document_expiration_date string (dd/mm/yyyy)
document_issued_in_city string
document_issued_in_country string (use options from the example app)
emergency_info_first_name* string
emergency_info_last_name* string
emergency_info_telephone_number* string

Technical documentation

You can find the technical docs in the 'docs' folder. Just run the index.html in your browser.

License

MIT ©


All versions of api-library with dependencies

PHP Build Version
Package Version
Requires illuminate/config Version 4.1.*
mashape/unirest-php Version 2.*
pimple/pimple Version ~3.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 smsorange/api-library contains the following files

Loading the files please wait ....