PHPackages                             undefinedor/smart-rest - 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. undefinedor/smart-rest

ActiveLibrary

undefinedor/smart-rest
======================

A smart rest function for yii2

0.0.1(6y ago)711MITPHPPHP &gt;=5.4.0

Since Jul 1Pushed 6y agoCompare

[ Source](https://github.com/undefinedor/SmartRest)[ Packagist](https://packagist.org/packages/undefinedor/smart-rest)[ RSS](/packages/undefinedor-smart-rest/feed)WikiDiscussions master Synced 4w ago

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

SmartRest
=========

[](#smartrest)

Purpose
-------

[](#purpose)

The `controller` of `yii\rest\urlRule` must be set. So you have to set this property when you add a controller. This project sloved it.

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

[](#installation)

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

```
composer require undefinedor/smart-rest

```

Usage
-----

[](#usage)

```
 'urlManager' => [
            'enablePrettyUrl' => true,
            'showScriptName' => false,
            'enableStrictParsing' => true,
            'rules' => [
                ['class' => 'SmartRest\UrlRule'],
            ],
        ],
```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity45

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

Unknown

Total

1

Last Release

2505d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f577e715431f4a07a9848e0bc6dc1a8e5d097a455d0fd5671d5ac42d8bf96f80?d=identicon)[wh1012023498](/maintainers/wh1012023498)

---

Top Contributors

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

---

Tags

yii2yii2-extension

### Embed Badge

![Health badge](/badges/undefinedor-smart-rest/health.svg)

```
[![Health](https://phpackages.com/badges/undefinedor-smart-rest/health.svg)](https://phpackages.com/packages/undefinedor-smart-rest)
```

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M2.6k](/packages/craftcms-cms)

PHPackages © 2026

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