PHPackages                             oteixido/yii2-rest-backend - 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. oteixido/yii2-rest-backend

ActiveYii2-extension

oteixido/yii2-rest-backend
==========================

Components to use a REST backend in Yii2 applications

0.1(7y ago)02GPL-3.0PHP

Since Mar 31Pushed 7y ago2 watchersCompare

[ Source](https://github.com/oteixido/yii2-rest-backend)[ Packagist](https://packagist.org/packages/oteixido/yii2-rest-backend)[ RSS](/packages/oteixido-yii2-rest-backend/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

Yii2 REST backend [![License: GPL v3](https://camo.githubusercontent.com/1b0c7e4911720d0444c16a1ffd145a039f14a1a7305362ab51184f757a4dd6bc/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d47504c25323076332d626c75652e737667)](https://www.gnu.org/licenses/gpl-3.0.html) [![GitHub version](https://camo.githubusercontent.com/717ce72c5f48eaaba4e7e20c838d5e1f9af5e0ea1722ab2d4be605cdc1babd4d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f76657273696f6e2d302e312d7265642e737667)](https://github.com/oteixido/yii2-rest-backend/releases) [![Build Status](https://camo.githubusercontent.com/10234dab794e88f1a4b4289e0244ee2d11a5f0166d2b8f69e14ab28efeda1d51/68747470733a2f2f7472617669732d63692e6f72672f6f7465697869646f2f796969322d726573742d6261636b656e642e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/oteixido/yii2-rest-backend)
===================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#yii2-rest-backend---)

REST backend for Yii2 applications.

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
$ composer require oteixido/yii2-rest-backend "*"
```

or add

```
"oteixido/yii2-rest-backend": "*"

```

to the require section of your `composer.json` file.

Configuration
-------------

[](#configuration)

To use this extension, simply add the following code in your application configuration:

```
return [
    //....
    'components' => [
        'httpClient' => [
            'class' => '\oteixido\rest\http\HttpClient',
            'baseUrl' => 'https://localhost.localdomain/api/v1',
            'username' => 'username',    // Default no username
            'password' => 'password',    // Default no password
            'timeout' => 5,              // Default 10 seconds
            'sslVerify' => false,        // Default true
        ],
    ],
];
```

Testing
-------

[](#testing)

Create docker image *yii2-rest-backend* for testing environment.

```
$ docker build . --tag yii2-rest-backend
$ docker run -it --rm -v "$PWD":/app -w /app yii2-rest-backend composer install
```

Execute tests.

```
$ docker run -it --rm -v "$PWD":/app -w /app yii2-rest-backend ./vendor/bin/codecept run --coverage
```

License
-------

[](#license)

[GNU General Public License v3.0](https://www.gnu.org/licenses/gpl-3.0.html)

###  Health Score

22

—

LowBetter than 25% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

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

Unknown

Total

1

Last Release

2912d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4513c2dfa4ec805dfdd04b100ca4008727d2eaf9fafc957ed5b0018445e3388c?d=identicon)[oteixido](/maintainers/oteixido)

---

Tags

yii2extension

###  Code Quality

TestsCodeception

### Embed Badge

![Health badge](/badges/oteixido-yii2-rest-backend/health.svg)

```
[![Health](https://phpackages.com/badges/oteixido-yii2-rest-backend/health.svg)](https://phpackages.com/packages/oteixido-yii2-rest-backend)
```

###  Alternatives

[richardfan1126/yii2-js-register

Yii2 widget to register JS into view

1356.4k7](/packages/richardfan1126-yii2-js-register)

PHPackages © 2026

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