Download the PHP package ajur-media/json-ld-generator without Composer
On this page you can find all versions of the php package ajur-media/json-ld-generator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ajur-media/json-ld-generator
More information about ajur-media/json-ld-generator
Files in ajur-media/json-ld-generator
Package json-ld-generator
Short Description Extremely simple JSON-LD markup generator (AJUR Media fork)
License BSD-2-Clause
Informations about the package json-ld-generator
JSON-LD Generator
Extremely simple JSON-LD generator.
AJUR Media fork, compatible with PHP7.4 & PHP 8.*
Original code:
Installation
From the command line run
Methods
/Context.php
create($context, array $data = [])
getProperties()
generate($flags)
Context Types
- article
- audiobook
- beach
- blog_posting
- book
- breadcrumb_list
- contact_point
- corporation
- creative_work
- duration
- event
- geo_coordinates
- image_object
- invoice
- list_item
- local_business
- media_object
- music_album
- music_group
- music_playlist
- music_recording
- news_article
- offer
- order
- organization
- person
- place
- postal_address
- price_specification
- product
- rating
- recipe
- review
- sculpture
- search_box
- thing
- video_object
- web_page
- web_site
Examples
Quick Example
Business
News Article
Custom Context Type
The first argument for the create($context, array $data = [])
method also accepts class names. This is helpful for custom context types.
Breadcrumbs
Breadcrumb trails on a page indicate the page's position in the site hierarchy. A user can navigate all the way up in the site hierarchy, one level at a time, by starting from the last breadcrumb in the breadcrumb trail.
Example
Output
Search Box
With Google Sitelinks search box, from search results. Search users sometimes use navigational queries, typing in the brand name or URL of a known site or app, only to do a more detailed search once they reach their destination. For example, users searching for pizza pins on Pinterest would type Pinterest or pinterest.com into Google Search--either from the Google App or from their web browser--then load the site or Android app, and finally search for pizza.
Example
Output
All versions of json-ld-generator with dependencies
ext-json Version *
ext-mbstring Version *