sylapi/feed-seznam
Composer 安装命令:
composer require sylapi/feed-seznam
包简介
Merchant feeds
README 文档
README
PHP library for generating XML product feeds for Seznam.cz merchant integration.
Installation
Install the package via Composer:
composer require sylapi/feed-seznam
Requirements
- PHP 8.0 or higher
- sylapi/feeds ^1.0.0
Usage
$feedGenerator = new Sylapi\Feeds\FeedGenerator(); $feedGenerator->setFeed(new Sylapi\Feeds\Seznam\Feed( Sylapi\Feeds\Parameters::create([]) )); $product = new \Sylapi\Feeds\Models\Product(); //... $feedGenerator->appendProduct($product); $feedGenerator->appendProduct($product); //... $feedGenerator->appendProduct($product); //... $feedGenerator->save(); echo $feedGenerator->filePath();
Features
- Generate XML feeds compatible with Seznam.cz
- Support for product catalogs and merchant feeds
- Built on top of the Sylapi Feeds framework
- Full PHPUnit test coverage
- Static analysis with PHPStan level 5
Development
| COMMAND | DESCRIPTION |
|---|---|
| composer tests | Testy |
| composer phpstan | PHPStan |
| composer coverage | PHPUnit Coverage |
| composer coverage-html | PHPUnit Coverage HTML (DIR: ./coverage/) |
Running Tests
# Run all tests composer tests # Generate coverage report composer coverage # Generate HTML coverage report composer coverage-html
Code Quality
# Run PHPStan static analysis
composer phpstan
Contributing
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Make your changes
- Run tests and static analysis
- Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
License
This library is licensed under the MIT License. See LICENSE file for details.
Support
For issues and questions, please use the GitHub Issues page.
统计信息
- 总下载量: 6.16k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-07-16