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
Json Ld Bundle

Json Ld Bundle Laravel Package

secit-pl/json-ld-bundle

A Symfony bundle for generating JSON-LD structured data in your applications. It provides services and Twig helpers to define schema.org objects, embed SEO-friendly rich snippets, and improve search visibility with minimal configuration and flexible integration.

View on GitHub
Deep Wiki
Context7

Secit JSON-LD Bundle integrates JSON-LD structured data into Symfony applications, making it straightforward to describe pages, products, organizations, and other entities with Schema.org vocabularies. It provides Symfony-friendly services and Twig helpers for building and rendering valid JSON-LD graphs, helping search engines understand content and improve rich-result eligibility.

  • Native Symfony bundle configuration and service wiring
  • Build Schema.org objects and nested JSON-LD graphs
  • Render ready-to-use <script type="application/ld+json"> blocks
  • Twig integration for clean templates
  • Extensible types for custom structured-data models
Frequently asked questions about Json Ld Bundle
What does secit-pl/json-ld-bundle actually do?
It is a Symfony bundle that generates Schema.org JSON-LD structured data for your pages. It exposes services and Twig helpers so you can build markup objects and render them as a script tag, which helps search engines understand page content and can enable rich results in search listings. It is a markup generator, not a full SEO suite.
Can I use secit-pl/json-ld-bundle in a Laravel application?
Not out of the box. It is a Symfony bundle registered through Symfony's bundle/kernel mechanism, so there is no Laravel service provider, no extra.laravel.providers auto-discovery, and no Blade directives. You would have to instantiate its classes manually in the container and write your own rendering layer, which is usually more work than it saves. If you are building on Laravel, evaluate a framework-agnostic PHP library instead.
How do I install it with Composer?
Run composer require secit-pl/json-ld-bundle, then register the bundle in your Symfony kernel (AppKernel for 2.8, config/bundles.php for 3.0+). Because release 2.2.1 shipped without a changelog, pin an exact version rather than a caret range and review the composer.lock diff, especially any transitive symfony/* bumps. Confirm the declared PHP and Symfony constraints in its composer.json before you commit.
Which Symfony and PHP versions does it support?
The package description targets Symfony 2.8 and 3.0+, which means the declared support matrix is centred on long end-of-life framework versions. Modern Symfony 6 and 7 support is not stated and should be verified directly against the composer.json constraints and the CI configuration. Treat any use on a current Symfony release as unverified until you have run the package's own test suite.
How do I render the generated JSON-LD in a template?
The bundle provides Twig helpers and services that produce the JSON-LD payload, which you then output inside a script tag with type application/ld+json, typically in the head or at the end of the body. Always emit it with raw output so the JSON is not HTML-escaped. Validate the resulting markup with Google's Rich Results Test before shipping.
What changed in version 2.2.1?
Release 2.2.1 shipped with an empty changelog and no accompanying package metadata, so the contents cannot be verified from the release alone. A patch bump in a 2.x line conventionally carries no public API break, but you cannot distinguish a trivial fix from a silent behavioural change. Ask the maintainers for a diff or commit list before merging it into a production branch.
Is the package actively maintained and safe for production?
This is a single-maintainer package, which is common in the PHP ecosystem but is the dominant long-term risk. Check commit cadence, the open-issue backlog, whether security reports have a disclosed contact, and whether the package's tests run against your framework version. As a pure markup generator it carries little runtime risk, but the lack of release notes is a supply-chain transparency concern worth flagging.
What are the alternatives for generating Schema.org markup?
For framework-agnostic PHP, spatie/schema-org is actively maintained and works in both Laravel and Symfony, with a fluent API and typed Schema.org objects. Laravel teams often pair it with an SEO package or a small Blade component, or simply build the JSON-LD array by hand for a handful of page types. If you only need one or two schema types, hand-written arrays are a legitimate and zero-dependency option.
Does it add database migrations, middleware, or global listeners?
Nothing in the package description suggests it owns database schema; it is a structured-data generator rather than a persistence layer. Do still inspect the bundle's service definitions before enabling it, since Symfony bundles can register Twig extensions, event listeners, or compiler passes that affect the whole application. If anything registers globally, confirm it is safe under config caching and long-running workers.
How should I test and roll this out safely?
Install it pinned to an exact version in a feature branch, then write one integration test that asserts the rendered output is valid JSON and contains the expected @context and @type values. Add a smoke test on the actual page path and run the full suite to catch transitive dependency bumps. Land it behind a feature flag or on a non-critical page first, so rollback is a configuration toggle rather than a revert and redeploy.
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.
pharaonic/laravel-notification-dependencies
beautinow/translug
dev-brainiac/bot-cloaked
octoberrain/html
octoberrain/extension
octoberrain/exception
octoberrain/contracts
frankyso/ipaymu
3mdikram/worldmoneywords
snowsoft/config
itmosoft/laravel-subscriptions
larva/laravel-ai-qwen
adachsoft/api-version-bundle
cgv/localized-resource
noith/settings
kda/laravel-package
kda/filament-dynamic-navigation
bypersoft/signbox
pairus/product-data
fayne/laravel-filament-cms-core