PHPackages                             roaresearch/yii2-roa - 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. [Framework](/categories/framework)
4. /
5. roaresearch/yii2-roa

ActiveYii2-extension[Framework](/categories/framework)

roaresearch/yii2-roa
====================

Yii 2 ROA Library

4.1.0(3y ago)01.5k2[1 PRs](https://github.com/ROAResearch/yii2-roa/pulls)2BSD-3-ClausePHPPHP &gt;=8.1CI failing

Since Aug 29Pushed 1y ago2 watchersCompare

[ Source](https://github.com/ROAResearch/yii2-roa)[ Packagist](https://packagist.org/packages/roaresearch/yii2-roa)[ RSS](/packages/roaresearch-yii2-roa/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (7)Dependencies (12)Versions (10)Used By (2)

Yii2 ROA Library
================

[](#yii2-roa-library)

This library contains the modules and controllers to build a ROA application using the Yii2 framework.

[![Latest Stable Version](https://camo.githubusercontent.com/89476f7f35fe1981b601fda716b307cc0b8e97bd201e8410d136c0c0a192da2d/68747470733a2f2f706f7365722e707567782e6f72672f726f6172657365617263682f796969322d726f612f762f737461626c65)](https://packagist.org/packages/roaresearch/yii2-roa)[![Total Downloads](https://camo.githubusercontent.com/c42f00c95576b7fc4b2dfee927762799911a4d5bb94477be3e4f120ca94a5d00/68747470733a2f2f706f7365722e707567782e6f72672f726f6172657365617263682f796969322d726f612f646f776e6c6f616473)](https://packagist.org/packages/roaresearch/yii2-roa)[![Code Coverage](https://camo.githubusercontent.com/29750e838a7356255f688d1d8387727f76d81caba7f00fa16d93dd85e3568464/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f726f6172657365617263682f796969322d726f612f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/roaresearch/yii2-roa/?branch=master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/82564a63fe1cc802e7d0db4075ebbb8d4a5051a5db3e4d08b9e8b52747ac2062/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f726f6172657365617263682f796969322d726f612f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/roaresearch/yii2-roa/?branch=master)

Scrutinizer [![Build Status Scrutinizer](https://camo.githubusercontent.com/71143bbfe6a23fca5dc34d6ef5dab90f1f9724f2acce235846cffad2e1feef52/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f726f6172657365617263682f796969322d726f612f6261646765732f6275696c642e706e673f623d6d6173746572267374796c653d666c6174)](https://scrutinizer-ci.com/g/roaresearch/yii2-roa/build-status/master)

### Prerequisites

[](#prerequisites)

- Install PHP 8.1 or higher
- [Composer Installed](https://getcomposer.org/doc/00-intro.md)
- Run command `composer check-platform-reqs` to check all requirements.

### Installation

[](#installation)

---

Install on a Yii2 App Advanced Project

[Create new project](https://github.com/ROAResearch/yii2-app-roa/blob/master/docs/guide/start-installation.md)

Running the tests
-----------------

[](#running-the-tests)

This section is to run the tests on this library, to run the tests on your application check [Yii2 App Roa Tests](https://github.com/ROAResearch/yii2-app-roa/blob/master/docs/guide/start-testing.md)

### Configure tests

[](#configure-tests)

The tests come preconfigured except for the database credentials, to configure your database credentials create a file `tests/_app/config/db.local.php` with the Yii2 configuration for `Yii::$app->db` component. Example:

```
return [
    'dsn' => ...,
    'username' => ...,
    'password' => ...,
];
```

Make sure to create a database to load the migrations, by default the name is `yii2_roa_test`

### Deploy tests

[](#deploy-tests)

This library includes a composer script to deploy the tests.

`composer deploy-tests`

### Run tests

[](#run-tests)

This library also includes 2 composer scripts to run the tests easily.

- `composer run-tests` run all codeception tests.
- `composer run-coverage` run all codeception tests and generate coverage report

### Write Tests

[](#write-tests)

You can write new tests on the `tests/` folder following [codeception documentation](https://codeception.com/docs/)

Examples
--------

[](#examples)

### Yii2 ROA Live Demo

[](#yii2-roa-live-demo)

You can run a live demo on a freshly installed project to help you run testing or understand the responses returned by the server.

`composer yii -- serve [yii2Options]`

See

Then on your browser access the route `http://localhost:8080/index.php/api`

### Other Libraries

[](#other-libraries)

You can clone the following repositories and use the live demo they provide

- [yii2-formgenerator](https://github.com/ROAResearch/yii2-formgenerator)
- [yii2-workflow](https://github.com/ROAResearch/yii2-workflow)

Use Cases
---------

[](#use-cases)

TO DO

Built With
----------

[](#built-with)

- Yii 2: The Fast, Secure and Professional PHP Framework

Code of Conduct
---------------

[](#code-of-conduct)

Please read [CODE\_OF\_CONDUCT.md](https://github.com/ROAResearch/yii2-roa/blob/master/CODE_OF_CONDUCT.md) for details on our code of conduct.

Contributing
------------

[](#contributing)

Please read [CONTRIBUTING.md](https://github.com/ROAResearch/yii2-roa/blob/master/CONTRIBUTING.md) for details on the process for submitting pull requests to us.

Versioning
----------

[](#versioning)

We use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/ROAResearch/yii2-roa/tags).

*Considering [SemVer](http://semver.org/) for versioning rules 9, 10 and 11 talk about pre-releases, they will not be used within the ROAResearch.*

Authors
-------

[](#authors)

- [**Angel Guevara**](https://github.com/Faryshta) - Initial work
- [**Carlos Llamosas**](https://github.com/neverabe) - Initial work

See also the list of [contributors](https://github.com/ROAResearch/yii2-roa/graphs/contributors) who participated in this project.

License
-------

[](#license)

This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance33

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community23

Small or concentrated contributor base

Maturity78

Established project with proven stability

 Bus Factor1

Top contributor holds 71.3% 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 ~181 days

Recently: every ~134 days

Total

7

Last Release

1266d ago

Major Versions

2.0.3 → 3.0.02022-11-02

3.0.0 → 4.0.02022-11-02

PHP version history (4 changes)2.0.0PHP &gt;=7.1

3.0.0PHP ~8.0

4.0.0PHP ~8.1

4.1.0PHP &gt;=8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/3d5f64412ef020f8c137ff5c7f5e4a0866271f2f9ba9584e5a24aa48467f958d?d=identicon)[Faryshta](/maintainers/Faryshta)

![](https://www.gravatar.com/avatar/2341d88f3cdea0c2474cfbf59e5cf6dab5dd6a026d7846fabf219f2a93be1641?d=identicon)[neverabe](/maintainers/neverabe)

---

Top Contributors

[![Faryshta](https://avatars.githubusercontent.com/u/2029247?v=4)](https://github.com/Faryshta "Faryshta (169 commits)")[![neverabe](https://avatars.githubusercontent.com/u/1173807?v=4)](https://github.com/neverabe "neverabe (35 commits)")[![josejesusguzman](https://avatars.githubusercontent.com/u/8755301?v=4)](https://github.com/josejesusguzman "josejesusguzman (10 commits)")[![roaresearch-creator](https://avatars.githubusercontent.com/u/57551213?v=4)](https://github.com/roaresearch-creator "roaresearch-creator (8 commits)")[![Seether69](https://avatars.githubusercontent.com/u/12069787?v=4)](https://github.com/Seether69 "Seether69 (5 commits)")[![agSoftDUCK](https://avatars.githubusercontent.com/u/59100098?v=4)](https://github.com/agSoftDUCK "agSoftDUCK (4 commits)")[![BerkantC](https://avatars.githubusercontent.com/u/7061013?v=4)](https://github.com/BerkantC "BerkantC (3 commits)")[![miguelbeatles21](https://avatars.githubusercontent.com/u/132947532?v=4)](https://github.com/miguelbeatles21 "miguelbeatles21 (1 commits)")[![onca-vega](https://avatars.githubusercontent.com/u/23646723?v=4)](https://github.com/onca-vega "onca-vega (1 commits)")[![ayrozjlc](https://avatars.githubusercontent.com/u/10901620?v=4)](https://github.com/ayrozjlc "ayrozjlc (1 commits)")

---

Tags

frameworkrestarchitectureyii2advancedsoaroa

###  Code Quality

TestsCodeception

### Embed Badge

![Health badge](/badges/roaresearch-yii2-roa/health.svg)

```
[![Health](https://phpackages.com/badges/roaresearch-yii2-roa/health.svg)](https://phpackages.com/packages/roaresearch-yii2-roa)
```

###  Alternatives

[funson86/yii2-adminlte

Yii 2 Advanced Application Template with Adminlte Theme

1492.2k](/packages/funson86-yii2-adminlte)[izyue/yii2-app-advanced

Yii 2 Advanced Project Template

1281.9k](/packages/izyue-yii2-app-advanced)[tecnocen/yii2-formgenerator

Yii 2 Library to configure form generator

145.7k](/packages/tecnocen-yii2-formgenerator)

PHPackages © 2026

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