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

Xsd2Php Laravel Package

goetas/xsd2php

goetas/xsd2php converts XML Schema and WSDL definitions into PHP classes, generating typed models and serialization mappings so you can work with SOAP/XML services in PHP without hand-writing boilerplate. It integrates with JMS Serializer and supports common XSD constructs.

Deep Wiki
Context7

Product Decisions This Supports

  • Build vs. buy/leverage for XML/SOAP integrations: Use goetas/xsd2php to generate PHP DTOs from XSD contracts and serialize/deserialize XML, reducing hand-written mapping code for partner APIs, SOAP services, B2B feeds, or legacy system interfaces.
  • Roadmap acceleration for schema-driven features: Supports delivery of import/export, e-invoicing, UBL/ISO 20022-style payloads, or other XML-based data exchange where an XSD is the contract.
  • Feature scoping: Helps decide whether to support strict schema validation and typed payloads versus looser array/JSON handling. The package is most useful when XML structure is complex and contract-driven.
  • Laravel integration strategy: Since this is not a Laravel-native package, the PM decision is whether to wrap it behind an internal adapter/service layer, vendor/fork it, or avoid making it a strategic dependency. Generated classes can live in the domain/integration layer, but glue code and lifecycle ownership must be planned.
  • Risk acceptance: The package is archived and last released in 2016, so it should be treated as a tactical accelerator, not a long-term platform bet. Any roadmap dependency on it needs an exit plan.
  • Use cases: Stable XSD contracts, bounded integration surfaces, internal tooling, migration projects, and proofs of concept where time-to-market matters more than package maintenance.

When to Consider This Package

  • Consider it when: You have well-defined XSD files; need PHP classes plus XML serialization/deserialization; are integrating with SOAP/XML partners; have a stable schema and limited scope; and can accept the cost of vendoring, pinning, testing, and possibly forking.
  • Consider it for a time-boxed pilot: Especially where manually writing DTOs and XML mappers would take significant effort and the integration is not expected to evolve rapidly.
  • Look elsewhere when: You need active maintenance, PHP 8.x compatibility guarantees, security patch cadence, or vendor support; the integration is strategic and long-lived; the schema changes frequently; or the team cannot own a fork.
  • Look elsewhere for modern JSON-first APIs: If the system is JSON/REST, this package adds unnecessary XML/schema complexity.
  • Look elsewhere for full SOAP/WSDL needs: Evaluate maintained SOAP clients such as phpro/soap-client or WSDL-based generators rather than treating this as a complete SOAP solution.
  • Look elsewhere for large/streaming XML: If payloads are very large or require streaming, assess XMLReader/streaming approaches rather than in-memory serialization.
  • Due diligence required: Check PHP version compatibility, dependency constraints, license, test coverage, fork health, and whether a maintained successor/fork exists. Archived status is a material adoption risk.

How to Pitch It (Stakeholders)

  • Executives: “This can shorten delivery for XML/schema-based partner integrations by generating typed PHP models and serialization code instead of hand-building mappers. However, it is archived and unmaintained since 2016, so I recommend a bounded pilot with an exit plan, not a strategic platform commitment.”
  • Engineering: “It gives us schema-first DTO generation and XML (de)serialization, reducing boilerplate and mapping defects. We should wrap it behind an internal adapter, pin/vendor the dependency, add contract tests, and be prepared to fork or replace it. It is not Laravel-native and should not leak throughout the codebase.”
  • Product/Stakeholders: “Use it where the XSD is stable and the integration scope is contained. Avoid it where the roadmap depends on long-term XML standardization, frequent schema changes, or vendor-supported maintenance. The opportunity is real, but the maintenance risk must be explicitly owned.”
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