PHPackages                             spitoglou/multi-api - 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. spitoglou/multi-api

ActiveLibrary[API Development](/categories/api)

spitoglou/multi-api
===================

Multiple response formats

0.2(10y ago)035[1 PRs](https://github.com/spitoglou/multi-api/pulls)MITPHPCI passing

Since Apr 10Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/spitoglou/multi-api)[ Packagist](https://packagist.org/packages/spitoglou/multi-api)[ RSS](/packages/spitoglou-multi-api/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (1)Versions (5)Used By (0)

Laravel 5.2 Multi Api Package

[![Build Status](https://camo.githubusercontent.com/d8d5138d878645eea86b304d9d47da6b4e9e48af6c0f19dd0017b9e899cb10fa/68747470733a2f2f7472617669732d63692e6f72672f737069746f676c6f752f6d756c74692d6170692e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/spitoglou/multi-api)[![Latest Stable Version](https://camo.githubusercontent.com/51e32e75dcda323366b0b181a96982633a3e53421d255b0e920117e3ff0a962f/68747470733a2f2f706f7365722e707567782e6f72672f737069746f676c6f752f6d756c74692d6170692f76657273696f6e)](https://packagist.org/packages/spitoglou/multi-api)[![Latest Unstable Version](https://camo.githubusercontent.com/83c2f72be64dd2c96648626496726b60c7ea540883add7aad14a6f1f98986634/68747470733a2f2f706f7365722e707567782e6f72672f737069746f676c6f752f6d756c74692d6170692f762f756e737461626c65)](//packagist.org/packages/spitoglou/multi-api)[![Total Downloads](https://camo.githubusercontent.com/8568467394755c4024da3e9bfc2a71692f401b273d28ed30b6f1ab7554ab2fc7/68747470733a2f2f706f7365722e707567782e6f72672f737069746f676c6f752f6d756c74692d6170692f646f776e6c6f616473)](https://packagist.org/packages/spitoglou/multi-api)[![License](https://camo.githubusercontent.com/0f7cef65f0f34f8c06bc26c30a39bac5af4697275eeb40050d6dcca90cbc5f91/68747470733a2f2f706f7365722e707567782e6f72672f737069746f676c6f752f6d756c74692d6170692f6c6963656e7365)](https://packagist.org/packages/spitoglou/multi-api)

spitoglou/multi-api
===================

[](#spitogloumulti-api)

This package was initially developed for personal (and colleague) use.

It provides the necessary functionality to produce api responses in JSON, XML or HTML (simple table) formats. The api consumer determines the format of the response he/she needs by setting the "Accept" header of the request accordingly ("application/json", "application/custom+xml","application/text" respectively).

Install
-------

[](#install)

Via Composer

```
$ composer require spitoglou/multi-api
```

Usage
-----

[](#usage)

#### Normal Response

[](#normal-response)

```
$array = [["name"=>"Stavros", "surname"=>"Pitoglou],["name"=>"John", "surname"=>"Doe"];
$sender = new Spitoglou\MultiApi\Sender($array);
$sender->finalSend();
```

#### Error

[](#error)

```
$array = ["errorCode"=>"654987", "errorDescription"=>"Some Exotic Error]
$sender = new Spitoglou\MultiApi\Sender($array);
$sender->sendError(500);
```

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Testing
-------

[](#testing)

Have Not Added Tests yet...

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- \[Stavros Pitoglou\]\[link-author\]

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance51

Moderate activity, may be stable

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~0 days

Total

3

Last Release

3733d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/938287?v=4)[Stavros Pitoglou](/maintainers/spitoglou)[@spitoglou](https://github.com/spitoglou)

---

Top Contributors

[![spitoglou](https://avatars.githubusercontent.com/u/938287?v=4)](https://github.com/spitoglou "spitoglou (12 commits)")

### Embed Badge

![Health badge](/badges/spitoglou-multi-api/health.svg)

```
[![Health](https://phpackages.com/badges/spitoglou-multi-api/health.svg)](https://phpackages.com/packages/spitoglou-multi-api)
```

###  Alternatives

[rapidez/core

Rapidez Core

1823.5k70](/packages/rapidez-core)

PHPackages © 2026

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