sylapi / feed-seznam
Merchant feeds
v1.0.0
2026-03-16 20:32 UTC
Requires
- php: >=8.0.0
- sylapi/feeds: ^1.0.0
Requires (Dev)
- phpstan/phpstan: ^1.8
- phpunit/phpunit: ^9.5
This package is auto-updated.
Last update: 2026-03-16 20:33:43 UTC
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.