Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/yiistack/routing

Yii 3.x annotated routing
https://github.com/yiistack/routing

annotations library routing yii yii3

Last synced: 26 days ago
JSON representation

Yii 3.x annotated routing

Awesome Lists containing this project

README

        





Yii routing



[![Latest Stable Version](https://poser.pugx.org/yiistack/routing/v/stable.png)](https://packagist.org/packages/yiistack/routing)
[![Total Downloads](https://poser.pugx.org/yiistack/routing/downloads.png)](https://packagist.org/packages/yiistack/routing)
[![Build status](https://github.com/yiistack/routing/workflows/build/badge.svg)](https://github.com/yiistack/routing/actions?query=workflow%3Abuild)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/yiistack/routing/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/yiistack/routing/?branch=master)
[![Code Coverage](https://scrutinizer-ci.com/g/yiistack/routing/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/yiistack/routing/?branch=master)
[![Mutation testing badge](https://img.shields.io/endpoint?style=flat&url=https%3A%2F%2Fbadge-api.stryker-mutator.io%2Fgithub.com%2Fyiistack%2Frouting%2Fmaster)](https://dashboard.stryker-mutator.io/reports/github.com/yiistack/routing/master)
[![static analysis](https://github.com/yiistack/routing/workflows/static%20analysis/badge.svg)](https://github.com/yiistack/routing/actions?query=workflow%3A%22static+analysis%22)

The package Routing

## Requirements

- PHP 7.4 or higher.

## Installation

The package could be installed with composer:

```
composer require yiistack/routing --prefer-dist
```

## General usage

### Unit testing

The package is tested with [PHPUnit](https://phpunit.de/). To run tests:

```shell
./vendor/bin/phpunit
```

### Mutation testing

The package tests are checked with [Infection](https://infection.github.io/) mutation framework. To run it:

```shell
./vendor/bin/infection
```

### Static analysis

The code is statically analyzed with [Psalm](https://psalm.dev/). To run static analysis:

```shell
./vendor/bin/psalm
```