Download the PHP package jolicode/structured-data without Composer

On this page you can find all versions of the php package jolicode/structured-data. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package structured-data

Structured Data Toolkit
Structured Data Toolkit
JSON-LD and schema.org for PHP

[![CI](https://github.com/jolicode/structured-data/actions/workflows/ci.yml/badge.svg)](https://github.com/jolicode/structured-data/actions/workflows/ci.yml) [![W3C JSON-LD 1.1 test suites](https://img.shields.io/badge/W3C_JSON--LD_1.1-test_suites_passing-brightgreen)](docs/json-ld.md#conformance) [![PHPStan level 9](https://img.shields.io/badge/PHPStan-level_9-brightgreen)](phpstan.neon) [![PHP Version Require](http://poser.pugx.org/jolicode/structured-data/require/php)](https://packagist.org/packages/jolicode/structured-data) [![License](http://poser.pugx.org/jolicode/structured-data/license)](LICENSE)

Validate and process structured data in PHP: check that your schema.org markup is valid and eligible for Google Rich Results, from JSON-LD, microdata or RDFa, without leaving your process. It also ships an implementation of the W3C JSON-LD 1.1 algorithms that passes the official test suites. The W3C implementation report lists no other PHP processor.

Try it in your browser, or see it at work in redirection.io, which audits the structured data of every page it crawls with it.

Why this library

How it compares

Tool What it does Difference
Rich Results Test Google eligibility check Browser only, no API
Schema Markup Validator schema.org vocabulary check Browser only, no Google rules
spatie/schema-org Writes JSON-LD No validation: use this library to check its output
brick/schema, crwlrsoft/schema-org Read structured data into PHP objects Accept whatever they find, no validation
ml/json-ld, digitalbazaar/php-json-ld JSON-LD 1.0 processors 1.0 only, load remote contexts by default

Installation

Requires PHP 8.4 or later, with the dom, json and libxml extensions.

Usage

Validate a page or a JSON-LD document

A few options:

More in the validator documentation: filtering diagnostics, merged nodes, the parsed tree, and the CLI.

Use the JSON-LD algorithms

Expansion, compaction, flattening and framing are available as Expander, Compactor, Flattener and Framer:

See the JSON-LD documentation for the options and the conformance report.

Remote contexts

https://schema.org contexts are resolved from bundled files. Any other remote @context is refused by default. To allow some hosts, install symfony/http-client and pass an allow-list:

Read Loading remote contexts before widening the policy.

Contributing

See CONTRIBUTING.md for the setup, the QA commands and the vocabulary upgrade procedures.

License

This library is released under the MIT License. See the bundled LICENSE file for details.



JoliCode is sponsoring this project

All versions of structured-data with dependencies

PHP Build Version
Package Version
Requires php Version ^8.4
ext-dom Version *
ext-json Version *
ext-libxml Version *
league/uri Version ^7.8
psr/log Version ^1|^2|^3
salsify/json-streaming-parser Version ^8.3
symfony/http-client-contracts Version ^3.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package jolicode/structured-data contains the following files

Loading the files please wait ...