Download the PHP package corollarium/modelarium without Composer
On this page you can find all versions of the php package corollarium/modelarium. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download corollarium/modelarium
More information about corollarium/modelarium
Files in corollarium/modelarium
Package modelarium
Short Description Generates scaffolding for frontend and backend from schemas
License MIT
Informations about the package modelarium
Modelarium - Modern Code Scaffolding for PHP and JS
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.
- 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
See the full documentation for Modelarium.
See a sample project.
Sponsors
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.
Here's a sample Post
Model, with custom data types for validation and data generation:
Contributing
Any contributions are welcome. Please send a PR.
All versions of modelarium with dependencies
doctrine/inflector Version ^2.0
illuminate/console Version ^8.0
illuminate/support Version ^8.0
composer/composer Version ^1.10
webonyx/graphql-php Version ^14.5
thecodingmachine/safe Version ^1.1
corollarium/formularium Version ^0.10.2
nette/php-generator Version ^3.4
haydenpierce/class-finder Version ^0.4.2
nuwave/lighthouse Version ^5.23
zordius/lightncandy Version ^1.2