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

Data Laravel Package

psx/data

psx/data provides a lightweight model and data-processing layer for PHP: records, collections, readers and writers that map data from HTTP, SQL, files and arrays into typed objects, with validation, filtering, hydration and transformation built in.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Serialization/transformation layer design: psx/data is a POPO (Plain Old PHP Object) mapping library capable of reading and writing PHP objects across multiple formats (JSON, XML, RSS/Atom, and structured collections). This informs build-vs-buy decisions for any feature that converts between wire formats and domain objects.
  • Data import/export features: Relevant when scoping admin tooling, reporting exports, or ingest pipelines that need to normalize heterogeneous input (XML feeds, JSON APIs, RSS) into typed PHP objects before persisting or displaying.
  • Integration and aggregation roadmap items: If your roadmap includes consuming third-party feeds or producing multi-format output from a single canonical model, this package represents a "transform once, emit many formats" pattern worth evaluating against alternatives.
  • Low-level infrastructure, not a product differentiator: Treat this as plumbing. It does not unlock user-visible capability on its own; it only changes how cheaply engineering can ship data-movement features. Frame roadmap impact accordingly — it's an enabler, not a feature.
  • Ecosystem signal, not a default choice: With 4 stars, 0 dependents, and an opportunity score of 40.67, this is a candidate to benchmark against incumbent serializers (Symfony Serializer, JMS Serializer, Laravel's native casts/resources) rather than a presumptive dependency. The product decision it most clearly supports is "do we standardize on a serializer, and which one?"

When to Consider This Package

Consider it when:

  • You need bidirectional structured-data ↔ PHP object conversion (read and write) across more than one format, and you want a single mapping definition to drive all of them.
  • Your team is already inside the apioo/psx ecosystem and consistency with existing framework conventions has real maintenance value.
  • You have a bounded, internal use case — a feed ingester, a batch export job, a legacy XML bridge — where the blast radius of a dependency swap is small.
  • You are explicitly evaluating serializers and want a comparison point for mapping ergonomics against heavier incumbents.

Look elsewhere when:

  • Dependency risk matters. Single-maintainer project, 0 dependents, minimal community. For anything on a critical path, this is a bus-factor and abandonment risk that will not survive a security or framework-upgrade review.
  • Laravel is the primary stack. Laravel's API Resources, casts, and the Symfony Serializer (already in the dependency graph) cover the vast majority of cases with stronger support and hiring familiarity.
  • You only need JSON. Native json_encode/json_decode plus typed DTOs or spatie/laravel-data will be simpler, faster to onboard, and better documented.
  • You need performance guarantees at scale. No public benchmarks, no adoption evidence — you would be funding the load testing yourself.
  • Compliance or vendor review is required. Apache-2.0 is fine, but a low-activity repository will likely fail internal OSS intake criteria regardless of license.

How to Pitch It (Stakeholders)

To executives: This is a small, low-adoption PHP library for converting data between formats and objects. I do not recommend adopting it for core product work — it carries single-maintainer and abandonment risk with no ecosystem validation. I'm flagging it as a design reference: it shows the "define a model once, emit JSON/XML/RSS" pattern, which is worth having in our architecture, but we should satisfy that need with our existing, better-supported serializer. Net recommendation: no new spend, no dependency; keep the pattern, skip the package.

To engineering: psx/data maps POPOs to and from multiple formats through a shared definition — conceptually the same job as Symfony Serializer or JMS, with a lighter footprint and tighter coupling to the PSX framework. We are not adopting it: 4 stars, 0 dependents, and one maintainer mean we'd own the code in practice. Worth 30 minutes of one engineer's time purely as a comparison point if we're revisiting our serialization standard; otherwise, stay on the Symfony Serializer and native Laravel tooling we already ship and support.

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