Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Mondator Laravel Package

mandango/mondator

Mondator is the code generator for Mandango, a PHP MongoDB ODM. It compiles YAML document definitions into optimized PHP model classes, reducing boilerplate and helping you build structured MongoDB-backed applications faster.

View on GitHub
Deep Wiki
Context7

Mondator is an easy and flexible class generator for PHP.

Frequently asked questions about Mondator
What is Mondator and what does it do?
Mondator is an easy and flexible class generator for PHP. It is the code generator for Mandango, a PHP MongoDB ODM, and compiles YAML document definitions into optimized PHP model classes. It reduces boilerplate for structured MongoDB-backed applications, but it is developer tooling rather than runtime infrastructure.
Is Mondator a Laravel package or can I use it in a Laravel application?
Mondator is not a Laravel package; it is a standalone PHP class generator. You can use it inside a Laravel project as a Composer dev dependency wrapped in an Artisan command or internal script. However, Laravel-native Artisan generators and Eloquent already cover most standard use cases, so adoption needs a clear, measured reason.
How do I install Mondator with Composer?
The Composer name is mandango/mondator, and it should be treated as a dev-time dependency rather than an application runtime dependency. Install it with a command such as composer require --dev mandango/mondator after verifying the authoritative repository and available version constraints. Pin the package version or commit during evaluation.
Which PHP and Laravel versions does Mondator support?
Laravel version support is not declared because Mondator is not a Laravel package. Its PHP constraints and dependency compatibility must be checked in composer.json and validated in a spike against your application's PHP and Laravel runtime. The available context does not confirm specific supported PHP versions.
Does Mondator require Mandango or legacy Symfony components?
The provided context does not confirm exactly which Composer dependencies Mondator pulls in. It is described as the code generator for the Mandango MongoDB ODM, so Mandango-related or older library dependencies are a reasonable concern to verify. Inspect composer.json and run a dependency conflict check before integrating it into a Laravel project.
What are good use cases for Mondator in a Laravel project?
Mondator is best suited to repeatable custom class families, DTOs, value objects, schema-driven scaffolds, and generated model classes placed in a controlled namespace. It should be used as a pre-build or developer-time generator, not as request-time infrastructure. Compare its output with Laravel-native generators before replacing existing conventions.
Can I customize Mondator templates to generate my own classes?
Mondator is described as config and template-driven, so customization is central to its purpose. Template extensibility and generated-code quality are unproven from the available context and should be validated in an isolated branch. Keep templates in version control and review generated diffs before adopting the tool broadly.
Is Mondator safe for production and how should generated code be handled?
Use Mondator only as a dev-time or pre-build generator, and avoid adding it to critical runtime paths. Pin the version or commit, generate into a dedicated namespace, and review output with Pint, PHPStan, and PHPUnit where appropriate. The package has low adoption signals and an unverified repository, so treat generated classes as team-owned source artifacts and add CI drift checks.
How do I integrate Mondator with Laravel Artisan or Composer scripts?
Wrap generation in an internal Artisan command or Composer script and generate classes into a dedicated PSR-4 namespace. Run formatting, static analysis, and tests against the generated output, and enforce regeneration or drift checks in CI. Integration is medium effort if isolated, but high effort if you expect Mondator to replace Laravel conventions.
What are the alternatives to Mondator, and what if it is abandoned?
Alternatives include Laravel Artisan make commands, Eloquent, other PHP code generators, or a small in-house generator tailored to your templates. Mondator has low adoption signals, so the team should expect to own the tool if adopted and be prepared to fork or vendor it. If evaluation gates fail, fall back to Laravel-native generators and document that decision.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
3mdikram/worldmoneywords
snowsoft/config
itmosoft/laravel-subscriptions
larva/laravel-ai-qwen
diephp/sequences
users-au/socialite-provider
twidpay/twid-logger
mrnewport/laravel-plaid
mrnewport/laravel-repo
mrnewport/laravel-docsign
mrnewport/laravel-stow
mrnewport/laravel-flow
mrnewport/laravel-priceable
mrnewport/laravel-nestedterms
fredmeng/laravel-apidoc-generator
itstructure/laravel-multilingual-tools
pdustdar/elasticsearch
markupai/php-sdk
rlacerda83/lumem-microservice-shipment
uni-method/symfony-lib