PHPackages                             padosoft/laravel-google-structured-data-testing-tool - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. padosoft/laravel-google-structured-data-testing-tool

ActiveLibrary[API Development](/categories/api)

padosoft/laravel-google-structured-data-testing-tool
====================================================

Laravel Laravel Package for testing Schema.org markup or other structured data formats with google structured data testing tool undocumented API.

1.1.1(7y ago)4021112[2 PRs](https://github.com/padosoft/laravel-google-structured-data-testing-tool/pulls)MITPHPPHP &gt;=7.0.0

Since Nov 1Pushed 10mo ago3 watchersCompare

[ Source](https://github.com/padosoft/laravel-google-structured-data-testing-tool)[ Packagist](https://packagist.org/packages/padosoft/laravel-google-structured-data-testing-tool)[ Docs](https://github.com/padosoft/laravel-google-structured-data-testing-tool)[ RSS](/packages/padosoft-laravel-google-structured-data-testing-tool/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (4)Dependencies (9)Versions (6)Used By (0)

Laravel Package for testing Schema.org markup or other structured data formats with google structured data testing tool undocumented API.
=========================================================================================================================================

[](#laravel-package-for-testing-schemaorg-markup-or-other-structured-data-formats-with-google-structured-data-testing-tool-undocumented-api)

[![Latest Version on Packagist](https://camo.githubusercontent.com/96e9f8b3e6604e100a6802570ac57e15cab5f91d95caf10c331b713edff29b66/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7061646f736f66742f6c61726176656c2d676f6f676c652d737472756374757265642d646174612d74657374696e672d746f6f6c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/padosoft/laravel-google-structured-data-testing-tool)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/6c8340b9b61bb3dbf4800016ee14f849e116d22337bcd055fbe7f7daf94c8202/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f7061646f736f66742f6c61726176656c2d676f6f676c652d737472756374757265642d646174612d74657374696e672d746f6f6c2f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/padosoft/laravel-google-structured-data-testing-tool)[![Quality Score](https://camo.githubusercontent.com/ca23842cd290a57d9a99995d926b48851d9a3f2ce5afedbc889c87be2e131147/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f7061646f736f66742f6c61726176656c2d676f6f676c652d737472756374757265642d646174612d74657374696e672d746f6f6c2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/padosoft/laravel-google-structured-data-testing-tool)[![Total Downloads](https://camo.githubusercontent.com/b19c31589142d6b6995598fef4372696678099f15cdc14ce57ed9f87febb77ac/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7061646f736f66742f6c61726176656c2d676f6f676c652d737472756374757265642d646174612d74657374696e672d746f6f6c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/padosoft/laravel-google-structured-data-testing-tool)[![SensioLabsInsight](https://camo.githubusercontent.com/60b5efdc42b2c97362d8e1d0464376048c2c9a5a050a687c41fcc3babea83c58/68747470733a2f2f696d672e736869656c64732e696f2f73656e73696f6c6162732f692f33613339646131332d366635662d343034312d393730302d3831653863316632653338372e7376673f7374796c653d666c61742d737175617265)](https://insight.sensiolabs.com/projects/3a39da13-6f5f-4041-9700-81e8c1f2e387)

This package provides a series of commands to automate and bulk check of Schema.org markup or other structured data formats with google structured data testing tool undocumented API that I found. Google already provides a good tool for testing markup data using the Search Console in Webmaster Tools. But how can I test markup data if you want to programmatically test your web site urls or a bulk set of urls? You can't do this with google wmt. This package try to resolve these problems.

WARNING
-------

[](#warning)

Note: This is an undocumented Google API. I found it when I interacted with Google’s Structured Data Testing Tool and Google Chrome debug console, thus there is no warranty that the API remains public or that the API changes make the package unusable.

Table of Contents
=================

[](#table-of-contents)

- [Laravel Package for testing Schema.org markup or other structured data formats with google structured data testing tool undocumented API.](#laravel-package-for-testing-schemaorg-markup-or-other-structured-data-formats-with-google-structured-data-testing-tool-undocumented-api)
    - [WARNING](#warning)
    - [Requires](#requires)
    - [Installation](#installation)
    - [USAGE](#usage)
        - [EXAMPLE:](#example)
    - [SCHEDULE COMMAND](#schedule-command)
    - [SCREENSHOOTS](#screenshoots)
    - [Change log](#change-log)
    - [Testing](#testing)
    - [Contributing](#contributing)
    - [Security](#security)
    - [Credits](#credits)
    - [About Padosoft](#about-padosoft)
    - [License](#license)

Requires
--------

[](#requires)

- php: &gt;=7.0.0
- illuminate/support: ^5.0
- illuminate/http: ^5.0
- padosoft/support": ^1.9

Installation
------------

[](#installation)

You can install the package via composer:

```
$ composer require padosoft/laravel-google-structured-data-testing-tool
```

You must install this service provider.

```
// config/app.php
'provider' => [
    ...
    Padosoft\Laravel\Google\StructuredDataTestingTool\GoogleStructuredDataTestToolServiceProvider::class,
    ...
];
```

You don't need to register the command in app/Console/Kernel.php, because it provides by GoogleStructuredDataTestToolServiceProvider register() method.

You can publish the config file of this package with this command:

```
php artisan vendor:publish --provider="Padosoft\Laravel\Google\StructuredDataTestingTool\GoogleStructuredDataTestToolServiceProvider"
```

The following config file will be published in `config/laravel-google-structured-data-testing-tool.php`

```
return array(
    'mailSubjectSuccess' => env(
        'STRUCTURED_DATA_TESTING_TOOL_SUBJECT_SUCCESS',
        '[google-structured-data-testing-tool]: Ok - markup data is ok.'
    ),
    'mailSubjetcAlarm' => env(
        'STRUCTURED_DATA_TESTING_TOOL_SUBJECT_ALARM',
        '[google-structured-data-testing-tool]: Alarm - markup data error detected.'
    ),
    'mailFrom' => env('STRUCTURED_DATA_TESTING_TOOL_MESSAGE_FROM', 'info@example.com'),
    'mailFromName' => env('STRUCTURED_DATA_TESTING_TOOL_MESSAGE_FROM_NAME', 'Info Example'),
    'mailViewName' => env('STRUCTURED_DATA_TESTING_TOOL_MAIL_VIEW_NAME', 'laravel-google-structured-data-testing-tool::mail'),
    'logFilePath' => env('STRUCTURED_DATA_TESTING_TOOL_LOG_FILE_PATH', storage_path() . '/logs/laravel-google-structured-data-testing-tool.log')
);
```

In your app config folder you can copy from src/config/.env.example the settings for yours .env file used in laravel-google-structured-data-testing-tool.php. If you use mathiasgrimm/laravel-env-validator in src/config folder you'll find an example for validate the env settings.

USAGE
-----

[](#usage)

When the installation is done you can easily run command to print help:

```
php artisan google-markup:test https://www.padosoft.com
```

The `google-markup:test` command check the structured data and schema.org markup in the given site

You can also pass the path of url txt (a file with one url per line) as an argument: `php google-markup:test /path/to/my/url.txt`so you can check multiple site/url (bulk) in one command!

By default, the command displays the result in console, but you can also send an html email by using the `--mail`option:

```
php google-markup:test https://www.padosoft.com --mail=mymail@mydomain.me
```

### EXAMPLE:

[](#example)

Here is a basic example to check composer.lock into these dir:

```
php artisan google-markup:test https://www.padosoft.com
```

Here is an example to send output report to mail:

```
php artisan google-markup:test https://www.padosoft.com --mail=mymail@mydomain
```

Here is an example to ignore two urls for markup error (if command found any markup error into these dir, write it into output but the email subject isn't set to ALERT):

```
php artisan google-markup:test /path/to/my/url.txt --mail=mymail@mydomain --whitelist="https://www.padosoft.com,https://blog.padosoft.it"
```

SCHEDULE COMMAND
----------------

[](#schedule-command)

You can schedule a daily (or weekly etc..) report easly, by adding this line into `schedule` method in `app/Console/Kernel.php` :

```
// app/console/Kernel.php

protected function schedule(Schedule $schedule)
{
    ...
	$schedule->command('google-markup:test "/path/to/my/url.txt" --mail=mymail@mydomain')
            ->daily()
            ->withoutOverlapping()
            ->sendOutputTo(Config::get('laravel-google-structured-data-testing-tool.logFilePath'));
}
```

SCREENSHOOTS
------------

[](#screenshoots)

OUTPUT CONSOLE WITH ONE URL TEST: [![screenshoot](https://raw.githubusercontent.com/padosoft/laravel-google-structured-data-testing-tool/master/resources/img/url-ok.png)](https://raw.githubusercontent.com/padosoft/laravel-google-structured-data-testing-tool/master/resources/img/url-ok.png)

OUTPUT CONSOLE BULK CHECK OK: [![screenshoot](https://raw.githubusercontent.com/padosoft/laravel-google-structured-data-testing-tool/master/resources/img/bulk-ok.png)](https://raw.githubusercontent.com/padosoft/laravel-google-structured-data-testing-tool/master/resources/img/bulk-ok.png)

OUTPUT CONSOLE BULK CHECK WITH ERRORS: [![screenshoot](https://raw.githubusercontent.com/padosoft/laravel-google-structured-data-testing-tool/master/resources/img/bulk-with-errors.png)](https://raw.githubusercontent.com/padosoft/laravel-google-structured-data-testing-tool/master/resources/img/bulk-with-errors.png)

EMAIL VIEW: [![screenshoot](https://raw.githubusercontent.com/padosoft/laravel-google-structured-data-testing-tool/master/resources/img/email-ok.png)](https://raw.githubusercontent.com/padosoft/laravel-google-structured-data-testing-tool/master/resources/img/email-ok.png)

EMAIL VIEW WITH ERRORS: [![screenshoot](https://raw.githubusercontent.com/padosoft/laravel-google-structured-data-testing-tool/master/resources/img/email-with-error.png)](https://raw.githubusercontent.com/padosoft/laravel-google-structured-data-testing-tool/master/resources/img/email-with-error.png)

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Testing
-------

[](#testing)

```
$ composer test
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email instead of using the issue tracker.

Credits
-------

[](#credits)

- [Lorenzo Padovani](https://github.com/lopadova)
- [All Contributors](../../contributors)

About Padosoft
--------------

[](#about-padosoft)

Padosoft () is a software house based in Florence, Italy. Specialized in E-commerce and web sites.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance39

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 94.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~213 days

Total

4

Last Release

2882d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/10467699?v=4)[Lorenzo](/maintainers/lopadova)[@lopadova](https://github.com/lopadova)

---

Top Contributors

[![lopadova](https://avatars.githubusercontent.com/u/10467699?v=4)](https://github.com/lopadova "lopadova (18 commits)")[![ImgBotApp](https://avatars.githubusercontent.com/u/31427850?v=4)](https://github.com/ImgBotApp "ImgBotApp (1 commits)")

---

Tags

laravellaravel-commandlaravel-packageschema-orgseoseo-metaseotoolsapigooglemarkupstructured-dataschema.orgpadosoftlaravel-google-structured-data-testing-toolGoogle Structured Data Testing Tool

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/padosoft-laravel-google-structured-data-testing-tool/health.svg)

```
[![Health](https://phpackages.com/badges/padosoft-laravel-google-structured-data-testing-tool/health.svg)](https://phpackages.com/packages/padosoft-laravel-google-structured-data-testing-tool)
```

###  Alternatives

[laravel/ai

The official AI SDK for Laravel.

9782.1M161](/packages/laravel-ai)[saloonphp/laravel-plugin

The official Laravel plugin for Saloon

806.6M187](/packages/saloonphp-laravel-plugin)[tallstackui/tallstackui

TallStackUI is a powerful suite of Blade components that elevate your workflow of Livewire applications.

721160.4k12](/packages/tallstackui-tallstackui)[ovac/idoc

Generate beautiful API documentation from your Laravel application

185482.1k2](/packages/ovac-idoc)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
