accelasearch/google-merchant-validator 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

accelasearch/google-merchant-validator

最新稳定版本:0.3

Composer 安装命令:

composer create-project accelasearch/google-merchant-validator

包简介

Command-line validator for Google Merchant product feed

README 文档

README

Command-line validator for Google Merchant product feed.

Installation

Recommended installation is through Composer:

composer require accelasearch/google-merchant-validator

Manual installation is possible by cloning this repository:

git clone https://github.com/accelasearch/google-merchant-validator.git
cd google-merchant-validator
composer update

or by downloading it:

wget https://github.com/accelasearch/google-merchant-validator/archive/refs/heads/main.zip
unsip main.zip
cd google-merchant-validator
composer update

Usage

To check whether an XML file is a valid Google Merchant product feed run:

php bin/feed-validator.php <path-to-xml-feed.xml>

You will get an output similar to the one shown below, with additional information about items which are not valid:

Normalizing XML file at /home/marco/Scrivania/google-shopping-feed.xml... done in 0.037 seconds.
Validating content of file /home/marco/Scrivania/google-shopping-feed.xml... done in 0.069 seconds.
Found 547 items (invalid: 0).

By default report is shown only for invalid items. It is possible to force report for every item by running:

php bin/feed-validator.php path-to-xml-feed.xm
Normalizing XML file at /home/marco/Scrivania/google-shopping-feed.xml... done in 0.037 seconds.
Validating content of file /home/marco/Scrivania/google-shopping-feed.xml... done in 0.069 seconds.
Found 547 items (invalid: 0).
               1: valid
               2: valid
               ...

Generating a PHAR File

It is possible to generate a PHAR archive by running:

php bin/compile-phar.php

which will produce a file named bin/google-merchant-validator.phar that can be distributed.

Note: when using a PHAR file path to the XML file must be provided as an absolute path:

php google-merchant-validator.phar /absolute/path/to/xml-feed.xml

统计信息

  • 总下载量: 1.25k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 2
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-01-26

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固