spatie/schema-org provides a fluent builder for all Schema.org types and their properties. The code in src is generated from Schema.org's JSON-LD standards file, so it provides objects and methods for the entire core vocabulary. The classes and methods are also fully documented as a quick reference. We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on our contact page. We publish all received postcards on our virtual postcard wall. If you don't want to break the chain of a large schema object, you can use the if method to conditionally modify the schema. The Graph has a lot of methods and utilities - the type-safe and simplest way is to use the overloaded methods of the Spatie\SchemaOrg\Schema class itself.

Features

  • All types can be instantiated through the Spatie\SchemaOrg\Schema factory class
  • All types also implement the SPL's ArrayAccess for accessing the properties via array notation
  • Types can be converted to an array or rendered to a script
  • Multiple properties can be set at once using the addProperties method
  • The Graph has a lot of methods and utilities
  • Graph Node identifiers

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow A Fluent Builder For Schema.org Types

A Fluent Builder For Schema.org Types Web Site

Other Useful Business Software
Build AI Apps with Gemini 3 on Vertex AI Icon
Build AI Apps with Gemini 3 on Vertex AI

Access Google’s most capable multimodal models. Train, test, and deploy AI with 200+ foundation models on one platform.

Vertex AI gives developers access to Gemini 3—Google’s most advanced reasoning and coding model—plus 200+ foundation models including Claude, Llama, and Gemma. Build generative AI apps with Vertex AI Studio, customize with fine-tuning, and deploy to production with enterprise-grade MLOps. New customers get $300 in free credits.
Try Vertex AI Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of A Fluent Builder For Schema.org Types!

Additional Project Details

Programming Language

PHP

Related Categories

PHP Software Development Software

Registered

2023-02-17