brick/schema
brick/schema is a PHP library to define, validate, and serialize data structures using schemas. Model arrays and objects with clear rules, enforce types and constraints, and convert to/from common formats for safer data exchange and persistence.
final class restriction enforces cleaner, more maintainable codebases.brick/schema and brick/structured-data (v0.2).SchemaTypeList.@jsonld/react-schemaorg).final class restrictions).For Executives:
*"This updated package (brick/schema v0.2.0) automates SEO-critical schema markup—like product details, events, or FAQs—with modern PHP 8.1+ support and stricter code reliability. By integrating it into our Laravel backend, we can:
brick/structured-data (v0.2) managed via package updates.
Cost: ~$0 (MIT license); ROI: Higher CTR and conversions from enhanced search listings.
Note: Requires PHP 8.1+ (aligns with our roadmap for 2024)."*For Engineering Teams:
*"brick/schema v0.2.0 is a batteries-included PHP library for Schema.org with breaking changes (PHP 8.1+, final classes) and new features (iterator template annotations, tighter brick/structured-data integration). It:
Product, BreadcrumbList) with zero boilerplate and stricter type safety.final classes.SchemaTypeList handling.
Trade-offs:final (extend via custom classes if needed, but inheritance is restricted).
Proposal: Pilot with 2–3 high-impact pages (e.g., product catalog, events) to measure SEO impact before full rollout. Deprecation plan: Audit custom schema classes for final compliance by Q3 2024."*For Content/SEO Teams: *"No more copying JSON-LD snippets or debugging markup errors—this tool auto-generates schema based on your content, now with stricter validation and PHP 8.1+ optimizations. For example:
@schema("Product") to a Laravel model, and it’ll output price, availability, and reviews automatically—with fewer edge-case bugs due to immutable core classes.How can I help you explore Laravel packages today?