PHPackages                             mohammad-alavi/apiato-rector - 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. mohammad-alavi/apiato-rector

ActiveLibrary[API Development](/categories/api)

mohammad-alavi/apiato-rector
============================

A collection of Rectors for the Apiato meta-framework.

23.6k↑209.5%PHPCI passing

Since Dec 1Pushed 1y ago1 watchersCompare

[ Source](https://github.com/Mohammad-Alavi/apiato-rector)[ Packagist](https://packagist.org/packages/mohammad-alavi/apiato-rector)[ RSS](/packages/mohammad-alavi-apiato-rector/feed)WikiDiscussions latest Synced 3d ago

READMEChangelogDependenciesVersions (2)Used By (0)

 [ ![tests status](https://camo.githubusercontent.com/4affdcd95810cb975e3c84140de3e6867a142745c915da382508a95119b5ba72/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f4d6f68616d6d61642d416c6176692f61706961746f2d726563746f722f74657374732e79616d6c3f6c6162656c3d7465737473) ](https://github.com/Mohammad-Alavi/apiato-rector/actions/workflows/tests.yaml) [ ![code coverage](https://camo.githubusercontent.com/637a28ddb7c25cc44570b05364d522b213305b0d6d730412141c1489234e1d95/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f4d6f68616d6d61642d416c6176692f61706961746f2d726563746f723f746f6b656e3d63366530623567394748) ](https://codecov.io/gh/Mohammad-Alavi/apiato-rector)

Apiato Rector
=============

[](#apiato-rector)

A set of [Rector](https://getrector.org/) rules to automatically upgrade your Apiato project to the latest version.

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

[](#installation)

```
composer require --dev mohammad-alavi/apiato-rector dev-latest
```

Also ensure you have Rector itself installed:

```
composer require --dev rector/rector
```

Usage
-----

[](#usage)

```
php vendor/bin/rector
```

### v12 to v13 Rules

[](#v12-to-v13-rules)

#### `TransformMethodToResponseFacadeRector`

[](#transformmethodtoresponsefacaderector)

Converts `$this->transform(...)` calls to `Response::create(...)`.

```
use MohammadAlavi\ApiatoRector\Rules\TransformMethodToResponseFacadeRector;
use Rector\Config\RectorConfig;

return RectorConfig::configure()
    ->withPaths([
        __DIR__ . '/app',
        __DIR__ . '/config',
    ])
    ->withImportNames(true, false, false, true)
    ->withRules([
        TransformMethodToResponseFacadeRector::class,
    ]);
```

#### `RefactorHttpExceptionRector`

[](#refactorhttpexceptionrector)

Refactor exception classes to the new HTTP exception signature.

```
use MohammadAlavi\ApiatoRector\Rules\RefactorHttpExceptionRector;
use Rector\Config\RectorConfig;

return RectorConfig::configure()
    ->withPaths([
        __DIR__ . '/app',
        __DIR__ . '/config',
    ])
    ->withImportNames(true, false, false, true)
    ->withConfiguredRule(RefactorHttpExceptionRector::class, [
        'parent_class' => \App\Ship\Parents\Exceptions\HttpException::class,
    ]);
```

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance33

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity19

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/e05ce3549156452319c5fdfc014b5eb441e3a6148f1f4957fb863026ecc6f8a0?d=identicon)[mohammad-alavi](/maintainers/mohammad-alavi)

---

Top Contributors

[![Mohammad-Alavi](https://avatars.githubusercontent.com/u/24431504?v=4)](https://github.com/Mohammad-Alavi "Mohammad-Alavi (40 commits)")

### Embed Badge

![Health badge](/badges/mohammad-alavi-apiato-rector/health.svg)

```
[![Health](https://phpackages.com/badges/mohammad-alavi-apiato-rector/health.svg)](https://phpackages.com/packages/mohammad-alavi-apiato-rector)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k15](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

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