PHPackages                             ors/orsapi - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. ors/orsapi

ActiveLibrary[API Development](/categories/api)

ors/orsapi
==========

ORS API Laravel Wrapper

v0.1.12(9y ago)0121MITPHPPHP &gt;=5.4.0

Since Dec 13Pushed 9y agoCompare

[ Source](https://github.com/flajsg/ors-orsapi)[ Packagist](https://packagist.org/packages/ors/orsapi)[ RSS](/packages/ors-orsapi/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (8)Dependencies (2)Versions (15)Used By (0)

ors-orsapi
==========

[](#ors-orsapi)

ORS Tehnologije d.o.o.

This is a wrapper for **Laravel 4.2** using ORS API.

Installation
------------

[](#installation)

To install the package you must run `composer require ors/orsapi` and set service provider and alias in your app.php file.

To include service provider add this line in 'providers' array:

```
'Ors\Orsapi\OrsapiServiceProvider',

```

And make sure you've added aliases in 'aliases' array:

```
'ConnConfig'		=> 'Ors\Orsapi\Facades\ConnConfigApi',
'PassengerApi'		=> 'Ors\Orsapi\Facades\PassengerApi',
'OrmApi'			=> 'Ors\Orsapi\Facades\OrmApi',
'ReservationsApi'	=> 'Ors\Orsapi\Facades\ReservationsApi',
'SearchApi'			=> 'Ors\Orsapi\Facades\SearchApi',
'TypHotelApi'		=> 'Ors\Orsapi\Facades\TypHotelApi',
'TypDhotelApi'		=> 'Ors\Orsapi\Facades\TypDhotelApi',
'TypPauschalApi'	=> 'Ors\Orsapi\Facades\TypPauschalApi',
'TypTripsApi'		=> 'Ors\Orsapi\Facades\TypTripsApi',
'ObjectInfoApi'		=> 'Ors\Orsapi\Facades\ObjectInfoApi',
'FlightInfoApi'		=> 'Ors\Orsapi\Facades\FlightInfoApi',

```

**Publishing migrations and configuration:**

You will need some custom configurations so make sure you have published config files:

```
php artisan config:publish ors/orsapi:dev-master

```

Basic Usage
-----------

[](#basic-usage)

Set API authorisation:

```
$handler = TypHotelApi::setLogin($agid, $ibeid, $usr, $pass);

```

A list of available ORS API connections:

```
$connections = ConnConfig::listConnections()

```

A list of agency passengers:

```
$passengers = PassengerApi::all()

```

A list of hotel-only destinations (stay 3 nights, 2 adults, 3 months in advance):

```
$params = array(
	'epc' => 2,
	'vnd' => date('Y-m-d'),
	'bsd' => date("Y-m-d", strtotime("+3 months")),
	'tdc' => '3-3',
	'uniqid' => '123456789',
	'ibeid' => 'xxx',
);

$regions = TypHotelApi::regions($params);

```

Object info (description, images, characteristics, weather, ratings):

```
$params = array(
	'gid' => 6715,
	'toc' => 'FTI',
);

$info = ObjectInfoApi::infoToc($params);

```

Set API authorisation:

```
$auth = new \Ors\Orsapi\Oam\OAMAuth(array(
	'agid' => XXXX,
	'usr' => 'api-username',
	'pass' => 'api-password'
));

$regions = TypHotelApi::setAuthLogin($auth)->regions($params);

```

Search for reservations by booking id:

```
$filters = array([
	'@attributes' => ['op' => 'AND'],
		'fields' => [
			array('@attributes' => array('name' => 'book_id', 'op' => 'is', 'value' => 3342))
	]
]);

$bookings = ReservationsApi::search(array('ibeid' => 62), $filters);

```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 95.8% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~7 days

Total

13

Last Release

3403d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/23451383?v=4)[Gregor Flajs](/maintainers/flajsg)[@flajsg](https://github.com/flajsg)

---

Top Contributors

[![gregorf-ors](https://avatars.githubusercontent.com/u/265362559?v=4)](https://github.com/gregorf-ors "gregorf-ors (113 commits)")[![flajsg](https://avatars.githubusercontent.com/u/23451383?v=4)](https://github.com/flajsg "flajsg (5 commits)")

---

Tags

laravel

### Embed Badge

![Health badge](/badges/ors-orsapi/health.svg)

```
[![Health](https://phpackages.com/badges/ors-orsapi/health.svg)](https://phpackages.com/packages/ors-orsapi)
```

###  Alternatives

[defstudio/telegraph

A laravel facade to interact with Telegram Bots

815320.5k3](/packages/defstudio-telegraph)[riclep/laravel-storyblok

A Laravel wrapper around the Storyblok API to provide a familiar experience for Laravel devs

6277.0k5](/packages/riclep-laravel-storyblok)[simplestats-io/laravel-client

Analytics for Laravel. Track visitors, registrations, and payments. Discover which channels actually drive revenue, not just traffic. Server-side, GDPR compliant, ad-blocker proof.

5019.3k](/packages/simplestats-io-laravel-client)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
