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

Model Laravel Package

psx/model

PSX\Model is a lightweight PHP model and entity library from the PSX framework. It offers annotated model classes and DTOs, plus schema generation, hydration, and serialization helpers, letting you define typed, self-documenting data structures without a full ORM.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Build vs. buy for spec-driven DTOs. The package ships prebuilt Plain-Old-PHP model classes derived from open data specifications (the kind of typed objects you'd otherwise hand-write or code-generate: API contract models, schema.org-style entities, federation/ActivityPub-style payloads). A PM can use it as a shortcut decision: reuse vetted model shapes for standards-compliant payloads instead of budgeting sprint time to define them.
  • API/interoperability roadmap scoping. If the roadmap includes OpenAPI-first APIs, schema.org markup, or federated/ActivityPub-style interoperability, this gives engineering a reference catalogue of what a "compliant" model looks like — useful for sizing a feature and de-risking the contract design before commitment.
  • Vendor/standard-alignment analysis. Because models are tied to external open specs, this is a cheap input to "do we standardize on this spec or roll our own?" It shows the cost shape of standards adoption without a prototype.
  • Maintenance/ownership budgeting. With ~9 GitHub stars and 0 dependents, the PM signal is that adopting it transfers long-term ownership onto your team. That is a concrete line item in the "total cost of ownership" decision, not a footnote.
  • Ecosystem fit check. It is closely coupled to the PSX/Fusio family. The decision it informs is really "are we committing to the PSX stack?" — which is an architecture decision with product consequences (hiring, support, upgrade cadence), not a library choice.

When to Consider This Package

Adopt (or evaluate) only when most of these are true:

  • You are already running the PSX/Fusio ecosystem (PSX API, PSX Data, PSX Schema) and need the model layer that those components expect.
  • You need ready-made model classes for an open specification and want to avoid generating them yourself for a spike or proof of concept.
  • Your team is comfortable owning an unmaintained-adjacent dependency: Apache-2.0 gives you legal freedom to fork and patch, and you have the PHP capacity to do so.
  • The deliverable is internal or contractually tolerant of ecosystem lock-in (a backend service, not a public SDK with broad compatibility promises).

Look elsewhere when:

  • You are building a conventional Laravel application. spatie/laravel-data (or plain DTOs + symfony/serializer) covers validation, casting, and serialization with an actively maintained community and Laravel-native ergonomics.
  • You need generation from your own OpenAPI/JSON Schema rather than a fixed set of upstream specs — jane-php/json-schema, cebe/php-openapi, or openapi-generator fit that workflow better.
  • Community support, documentation depth, and upgrade guarantees are requirements. Near-zero stars and zero dependents mean no Stack Overflow corpus, no third-party tutorials, and no signal that breaking changes will be announced.
  • You want a stable, versioned contract. Pin-or-fork is the only realistic mitigation.

How to Pitch It (Stakeholders)

To executives: This is a small, permissively licensed (Apache-2.0) PHP library that offers prebuilt data model classes aligned to open web standards. The license means no legal or cost barrier and full freedom to modify. The material risk is not legal — it is support: the project has negligible community adoption (single-digit stars, no downstream dependents) and is tightly bound to one niche PHP framework family. Translation: if we adopt it, we own it. I recommend against it as a strategic dependency; at most, treat it as a reference implementation for a spike.

To engineering: It's a model-layer package in the PSX family — model classes derived from open specifications. It is only worth pulling in if we're already committed to PSX/Fusio components that consume these types, or if we want a fast reference for spec-compliant payload shapes during a short investigation. Otherwise, we get equivalent or better outcomes from spatie/laravel-data for internal DTOs, or from code generation against our own OpenAPI spec. Plan on pinning the version and, if adopted, treating the vendor directory as forkable source, because upstream activity and issue response are unlikely to meet our SLA.

Recommendation: Do not adopt for production. Use only for a time-boxed evaluation spike, and record the finding in the architecture decision log so the same option isn't re-litigated next quarter.

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.
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
tacticmedia/scim-server-bundle
neika-ai/symfony-bundle
mattleads/agent-publishing-bundle
glavweb/framework-bundle