apie/common-value-objects
Common value objects for the Apie ecosystem: ready-to-use PHP enums (e.g., Gender) and identifier base classes (e.g., UUID v4) for entities, fields, or composite value objects. Designed to be extended and used as examples in your own domain.
Gender, DateTimeRange, Slug), reducing boilerplate code.StrongPasswordField to enforce security policies (e.g., password strength) without custom logic.Address as a composite of Street, City, PostalCode).IdentifierInterface.For Executives: "This package lets us standardize how we handle critical data types (like IDs, names, and passwords) across our PHP services, reducing bugs and speeding up development. For example, instead of writing custom UUID validation or slug generators, we’ll use pre-built, secure components—saving time and ensuring consistency. It’s a low-risk investment (MIT license) that aligns with modern software design practices, and it’s easy to adopt incrementally. The long-term payoff is cleaner code, fewer edge-case errors, and easier maintenance."
For Engineers:
*"This gives us a set of ready-to-use value objects (e.g., UuidV4, DateTimeRange, StrongPasswordField) that enforce type safety and validation at the object level. Key benefits:
UserIdentifier extends UuidV4) to fit our needs.Tradeoff: It’s a new dependency (0 stars, but MIT-licensed and actively maintained in the monorepo). Let’s prototype it in one service first to validate the ROI."*
How can I help you explore Laravel packages today?