Download the PHP package trinityrank/laravel-schema-org-builder without Composer
On this page you can find all versions of the php package trinityrank/laravel-schema-org-builder. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download trinityrank/laravel-schema-org-builder
More information about trinityrank/laravel-schema-org-builder
Files in trinityrank/laravel-schema-org-builder
Package laravel-schema-org-builder
Short Description Schema.org builder. Creating multiple nodes and makes relations between them.
License MIT
Homepage https://github.com/trinity-rank/laravel-schema-org-builder
Informations about the package laravel-schema-org-builder
Schema.org builder and JSON-LD generator
This package is used for building schema according to rules given on Schema.org in JSON-LD format. User can pass node properties for which schema should be created. Relation between nodes will also be created.
Installation
You can install the package via composer:
Usage
Use Trinityrank\LaravelSchemaOrgBuilder\SchemaOrgBuilder
. For ease of use, in each class you should initialize it inside __construct()
:
To build the schema, you need to call getSchemaOrg(...)
function which accepts next parameters:
Some of the data is being retrieved from config files.
From main.php
:
Add FOUNDING_DATE=
(FOUNDING_DATE=2019-11-29) in .env
. If not added default value is 01.01.2020
From package's config file schema-org-builder.php
, that you should publish using php artisan vendor:publish --tag="schema-org-builder"
:
Changelog
Please see CHANGELOG for more information on what has changed recently.
License
The MIT License (MIT). Please see License File for more information.