PHPackages                             corollarium/modelarium - 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. corollarium/modelarium

ActiveLibrary[API Development](/categories/api)

corollarium/modelarium
======================

Generates scaffolding for frontend and backend from schemas

v0.5.2(4y ago)240[15 issues](https://github.com/Corollarium/modelarium/issues)1MITPHPPHP &gt;=7.3.0

Since Jul 8Pushed 4y ago1 watchersCompare

[ Source](https://github.com/Corollarium/modelarium)[ Packagist](https://packagist.org/packages/corollarium/modelarium)[ RSS](/packages/corollarium-modelarium/feed)WikiDiscussions master Synced 6d ago

READMEChangelog (10)Dependencies (15)Versions (18)Used By (1)

Modelarium - Modern Code Scaffolding for PHP and JS
===================================================

[](#modelarium---modern-code-scaffolding-for-php-and-js)

[![License: MIT](https://camo.githubusercontent.com/fdf2982b9f5d7489dcf44570e714e3a15fce6253e0cc6b5aa61a075aac2ff71b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d79656c6c6f772e737667)](https://opensource.org/licenses/MIT)[![Build Status](https://github.com/Corollarium/modelarium/workflows/build/badge.svg)](https://github.com/Corollarium/modelarium/actions?query=workflow%3Abuild)[![Code Coverage](https://camo.githubusercontent.com/8d2ca1c2866f20af58cb9acd3c37af66247f4b6a938ca4a4cc7977e2ac8bebeb/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f436f726f6c6c617269756d2f6d6f64656c617269756d2f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/Corollarium/modelarium/?branch=master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/f9ef28cf12e950335bd1449ef0ae7e7e1e540d929355525dfeccdca5129db0a1/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f436f726f6c6c617269756d2f6d6f64656c617269756d2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/Corollarium/modelarium/?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/27e16338e519ad2a955278a5b41064423380b6aa3a657397751eba52bcc60868/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f636f726f6c6c617269756d2f6d6f64656c617269756d2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/corollarium/modelarium)[![Total Downloads](https://camo.githubusercontent.com/4c48ccbce0dcab2233b27328650cda7454f976ce0b24947b07edacc52f3efafe/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636f726f6c6c617269756d2f6d6f64656c617269756d2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/corollarium/modelarium)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/f9ef28cf12e950335bd1449ef0ae7e7e1e540d929355525dfeccdca5129db0a1/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f436f726f6c6c617269756d2f6d6f64656c617269756d2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/Corollarium/modelarium/?branch=master)

---

Modelarium generates scaffolding for your project based on a GraphQL description of your API. It can create the entire backend and frontend files, leaving only the logic and design for you.

- **generates backend scaffolding for you**: model, database migration, seed, factory, events, policies. Everything from your graphql descriptions. No more tedious creation of files and repeated code.
- **datatypes**: your data is more than strings. You have models for your structures, so have datatypes for your fields. Create the correct database fields without thinking about it. Uses [Formularium for datatypes](https://corollarium.github.io/Formularium/).
- **validation**: transparent data validation made automatically based on your datatypes. Your data is always safely validated.
- **no performance penalty**: other than data validation all data is generate at development time. It's just automatic scaffolding, everything is just as fast as before.
- **no new standards**: code is generated following existing standards for existing tools. Generate code and use it freely. Nothing is tied down.
- **frontend generation**: get HTML forms, cards, lists and views generated for you automatically with your favorite CSS framework: Bootstrap, Bulma, Materialize, Buefy with simple declarations and a standard description. You can tweak details afterwards -- it's just code.
- **reactive frameworks**: Get Vue and React components like cards, forms, lists and tables, ready to use with their Graphql calls.
- **integration with Laravel and Lighthouse**. Get GraphQL endpoints automatically.

What it doesn't do:

- magic. you still have to write your code logic to process requests in the backend, like in mutations or special conditions in your models. You also get only a basic design, so pretty CSS is up to you.
- REST endpoints generation. At this point only GraphQL is supported through Laravel and Lighthouse. REST endpoints might come later.
- other backend frameworks. Currently only Laravel is supported.

Documentation
-------------

[](#documentation)

See [the full documentation for Modelarium](https://corollarium.github.io/modelarium/).

See [a hello world project](https://github.com/Corollarium/modelarium-helloworld).

See [a sample project](https://github.com/Corollarium/modelarium-example).

Sponsors
--------

[](#sponsors)

[![Corollarium](https://camo.githubusercontent.com/4e7626b7c7d8d11b8e225bb74e005a48d99e663b4163c56f262f65d60cf23cf7/68747470733a2f2f636f726f6c6c617269756d2e6769746875622e636f6d2f6d6f64656c617269756d2f6c6f676f2d686f72697a6f6e74616c2d34303070782e706e67)](https://corollarium.com)

Quick overview
--------------

[](#quick-overview)

This a Graphql file that reproduces Laravel's default `User` model. Notice the `Email` datatype, as well as the `@migration` directives for the database creation.

```
type User
  @migrationRememberToken
  @migrationSoftDeletes
  @migrationTimestamps
  @modelExtends(class: "Illuminate\\Foundation\\Auth\\User")
  @modelNotifiable {
  id: ID!
  name: String!
    @modelFillable
    @renderable(label: "Name", comment: "Please fill with your fullname")
  password: String! @modelHidden @modelFillable
  email_verified_at: Timestamp @casts(type: "datetime")
  email: Email! @migrationUniqueIndex @modelFillable
}
```

Here's a sample `Post` Model, with custom data types for validation and data generation:

```
type Post @migrationTimestamps {
  id: ID!
  title: Title!
  description: Text!
  user: User! @belongsTo @foreign(onDelete: "cascade", onUpdate: "cascade")
}
```

Contributing [![contributions welcome](https://camo.githubusercontent.com/9e93e892d0685e1bf7a1d0bd7c8410d6ecf2086a0a7b48dd58a6b96fa556ea2a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f6e747269627574696f6e732d77656c636f6d652d627269676874677265656e2e7376673f7374796c653d666c6174)](https://github.com/Corollarium/modelarium/issues)
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

[](#contributing-)

Any contributions are welcome. Please send a PR.

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity48

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 ~27 days

Recently: every ~3 days

Total

17

Last Release

1691d ago

PHP version history (2 changes)0.1.0PHP &gt;=7.2.0

v0.5.0PHP &gt;=7.3.0

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

frameworkfrontendlaravelmodelphpscaffoldingweblaravelgraphqlmodel

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StyleECS

Type Coverage Yes

### Embed Badge

![Health badge](/badges/corollarium-modelarium/health.svg)

```
[![Health](https://phpackages.com/badges/corollarium-modelarium/health.svg)](https://phpackages.com/packages/corollarium-modelarium)
```

###  Alternatives

[nuwave/lighthouse

A framework for serving GraphQL from Laravel

3.5k10.7M93](/packages/nuwave-lighthouse)[rebing/graphql-laravel

Laravel wrapper for PHP GraphQL

2.2k7.1M26](/packages/rebing-graphql-laravel)[mll-lab/laravel-graphiql

Easily integrate GraphiQL into your Laravel project

683.2M9](/packages/mll-lab-laravel-graphiql)[andreaselia/laravel-api-to-postman

Generate a Postman collection automatically from your Laravel API

1.0k586.2k3](/packages/andreaselia-laravel-api-to-postman)[yakovenko/laravel-lighthouse-graphql-multi-schema

A Laravel package that provides multi-schema support for Lighthouse GraphQL.

1562.5k](/packages/yakovenko-laravel-lighthouse-graphql-multi-schema)[scrnhq/laravel-bakery

An on-the-fly GraphQL Schema generator from Eloquent models for Laravel.

10418.2k](/packages/scrnhq-laravel-bakery)

PHPackages © 2026

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