PHPackages                             vivek-mistry/laravel-code-transformer - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. vivek-mistry/laravel-code-transformer

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

vivek-mistry/laravel-code-transformer
=====================================

Modifies your existing controller code for any model with one command.

1.0.1(8mo ago)421MITPHPPHP ^8.2||^8.3||^8.4

Since Oct 28Pushed 6mo agoCompare

[ Source](https://github.com/vivek-mistry/laravel-code-transformer)[ Packagist](https://packagist.org/packages/vivek-mistry/laravel-code-transformer)[ Docs](https://github.com/vivek-mistry/laravel-code-transformenr)[ Fund](https://www.paypal.com/paypalme/vicky18294)[ GitHub Sponsors](https://github.com/vivek-mistry)[ RSS](/packages/vivek-mistry-laravel-code-transformer/feed)WikiDiscussions main Synced today

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

 [![Laravel Code Transformer](docs/images/code_transformer.png)](docs/images/code_transformer.png)

Laravel Code Transformer
------------------------

[](#laravel-code-transformer)

A developer-friendly Artisan command that allows you to quickly clone and transform any CRUD controller in your Laravel project — without using external packages.

It copies an existing controller (e.g., BasicController, CategoryController) and automatically replaces all class names, variable names, and related references with your new model name (e.g., Service, Product).

🛠️ Installation
---------------

[](#️-installation)

Install the package via Composer:

```
composer require vivek-mistry/laravel-code-transformer
```

Execute via
-----------

[](#execute-via)

```
php artisan make:transform-code
```

OptionDescriptionDefault`--from=`Source controller name (without `Controller` suffix)`Basic``--to=`Destination controller name (without `Controller` suffix)*(required)*🧰 Notes

- Ideal for repetitive CRUD scaffolding in Laravel projects.
- Works for any existing controller in app/Http/Controllers/.
- Prompts before overwriting existing files.
- Fully local — no external package required.

Credits
-------

[](#credits)

- [Vivek Mistry](https://github.com/vivek-mistry) - Project creator and maintainer

License
-------

[](#license)

MIT License. See [LICENSE](https://github.com/vivek-mistry/laravel-code-transformer/blob/DEV/LICENSE) for details.

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance64

Regular maintenance activity

Popularity10

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity54

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

Every ~0 days

Total

2

Last Release

249d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/32848578?v=4)[Vivek Mistry](/maintainers/vivek-mistry)[@vivek-mistry](https://github.com/vivek-mistry)

---

Top Contributors

[![vivek-mistry](https://avatars.githubusercontent.com/u/32848578?v=4)](https://github.com/vivek-mistry "vivek-mistry (10 commits)")

---

Tags

phplaravelcode-transformerlaravel-code-transformercopy-controllercode-transformlaravel-code-transform

###  Code Quality

TestsPest

Static AnalysisPHPStan

### Embed Badge

![Health badge](/badges/vivek-mistry-laravel-code-transformer/health.svg)

```
[![Health](https://phpackages.com/badges/vivek-mistry-laravel-code-transformer/health.svg)](https://phpackages.com/packages/vivek-mistry-laravel-code-transformer)
```

###  Alternatives

[amranidev/laracombee

Recommendation system for laravel

11538.8k1](/packages/amranidev-laracombee)[yieldstudio/tailwind-merge-php

Merge Tailwind CSS classes without style conflicts

4975.4k1](/packages/yieldstudio-tailwind-merge-php)[salmanzafar/laravel-geocode

A Laravel Library to find Lat and Long of a given Specific Address

154.4k](/packages/salmanzafar-laravel-geocode)[wujunze/money-wrapper

MoneyPHP Wrapper

103.8k](/packages/wujunze-money-wrapper)

PHPackages © 2026

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