PHPackages                             dialect-katrineholm/modlify - 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. dialect-katrineholm/modlify

ActiveLibrary

dialect-katrineholm/modlify
===========================

Generate from model

0.7.0(6y ago)02.2kMITPHPPHP ^7.2CI failing

Since Mar 14Pushed 6y ago2 watchersCompare

[ Source](https://github.com/kfvit/modlify)[ Packagist](https://packagist.org/packages/dialect-katrineholm/modlify)[ Docs](https://github.com/dialect-katrineholm/modlify)[ RSS](/packages/dialect-katrineholm-modlify/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (10)Dependencies (3)Versions (14)Used By (0)

Modlify
=======

[](#modlify)

Modlify generates stubs for Laravel-components using existing models. Modlify tries to figure out model-validation and factories based on the migrated table for the model.

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

[](#installation)

Install via composer

```
composer require dialect/modlify

```

It is possible publish the views modlify uses to generate the stubs if custom modification is wanted.

```
php artisan vendor:publish --provider="Dialect\Modlify\ModlifyServiceProvider"

```

Usage
-----

[](#usage)

Modlify can currently generate:

`php artisan modlify:controller` - Generates Controller.

`php artisan modlify:factory` - Generates Factory.

`php artisan modlify:policy` - Generates Policy and adds it to AuthServiceProvider.php

`php artisan modlify:route` - Adds route to web.php

`php artisan modlify:tests` - Generates tests

`php artisan modlify:views` - Generates views

`php artisan modlify:all` Generates all of the components.

You can either specify a model, or use the `--all` parameter to make Modlify find all available models in the app directory. By default Modlify doesn't overwrite existing files, it is possible to force overwrites with the `-force` parameter

Customization
-------------

[](#customization)

All the views has access to the following variables:

`model` - Empty instance of the model

`modelName` - Name of Model, e.g User or ArticleType

`databaseName` - Name of database, e.g Forge

`tableName` - Name of table, e.g users or article\_types

`variableName` - Name of variable e.g $user or $aricleTypes

`collectionName` - Name of variable of collection of models e.g $users or $articleTypes

`resourceName` - Name of resource, e.g users or article-types

`columns` - Array of columns avaiable in table

Some generators has extra varables:

#### Controller

[](#controller)

`validations` - Validation rules

`hasPassword` - Model has password

#### Factory

[](#factory)

`fakers` - List of calls to the faker instance.

#### Policy

[](#policy)

`argumentName`- name of model varaible to avoid collition with $user.

#### Test

[](#test)

`checkColumn`- name of column to use to check if model is seen in view. `hasPassword` - Model has password

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 71.4% 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 ~72 days

Recently: every ~175 days

Total

11

Last Release

2257d ago

PHP version history (2 changes)0.5.0PHP ~5.6|~7.0

0.6.0PHP ^7.2

### Community

Maintainers

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

---

Top Contributors

[![stromgren](https://avatars.githubusercontent.com/u/971993?v=4)](https://github.com/stromgren "stromgren (5 commits)")[![KarlHalonen](https://avatars.githubusercontent.com/u/16744445?v=4)](https://github.com/KarlHalonen "KarlHalonen (1 commits)")[![KristofferTennivaara](https://avatars.githubusercontent.com/u/19315448?v=4)](https://github.com/KristofferTennivaara "KristofferTennivaara (1 commits)")

---

Tags

dialectModlify

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/dialect-katrineholm-modlify/health.svg)

```
[![Health](https://phpackages.com/badges/dialect-katrineholm-modlify/health.svg)](https://phpackages.com/packages/dialect-katrineholm-modlify)
```

###  Alternatives

[fumeapp/modeltyper

Generate TypeScript interfaces from Laravel Models

196277.9k](/packages/fumeapp-modeltyper)

PHPackages © 2026

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