oldmine/google-merchant-feed-generator
Composer 安装命令:
composer require oldmine/google-merchant-feed-generator
包简介
Simple Google Merchant Feed generator library
README 文档
README
Library to generate valid Google Merchant Feed.
Library check data integrity and format to fit Google Merchant Center requirements.
Data to feed you will take from database, xml, json or other source and set it using library methods.
Getting Started
Dependencies
PHP >= 5.3
Composer (optional)
Install
Choose acceptable installation method to your website
Composer (.json)
{
"require": {
"oldmine/google-merchant-feed-generator": "master"
}
}
Composer (Command Line)
composer require oldmine/google-merchant-feed-generator
Without Composer:
require_once('src/IFeedGenerator.php');
require_once('src/IGenerated.php');
require_once('src/Constants.php');
require_once('src/Item.php');
require_once('src/Channel.php');
require_once('src/Feed.php');
require_once('src/XMLGenerator.php');
Usage examples
See UsageExample.php.
When you have chosen feed generator you can choose method to get result:
$generator->printFeed() // Print feed in current document
$generator->saveFeed($file) // Save feed to $file
$generator->getFeed() // Get feed as string
Tests
To run tests use command:
phpunit tests
Author
- Daniil Zhelninskiy - Oldmine
License
This project is licensed under the Apache License Version 2.0 - see the LICENSE.md file for details
统计信息
- 总下载量: 72
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2018-07-26