Download the PHP package lilianbellini/sylius-google-merchant-center without Composer

On this page you can find all versions of the php package lilianbellini/sylius-google-merchant-center. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package sylius-google-merchant-center

Sylius Google Merchant Center Plugin Description This is a Sylius plugin designed to generate a Google Merchant Center XML feed, allowing you to easily integrate your Sylius online store's products into Google Shopping.

The plugin extracts product data, variants, images, prices, and availability, fully complying with Google Merchant Center specifications.

Features Automatic generation of an XML feed formatted for Google Merchant Center. Integration of product and variant details, including: Unique identifier (g:id) Title (g:title) and description (g:description) Product page link (link) Main image (g:image_link) Price (g:price) and currency Availability (g:availability) Brand (g:brand) Condition (g:condition) Shipping (g:shipping) Preorder support with an availability date (g:availability_date). Item group identification with a group ID (g:item_group_id). Installation Install the plugin via Composer:

Run the following command:

bash Copier le code composer require systemin-dev/sylius-google-merchant-center Add the service configuration:

Add the feed generator service in your services.yaml file:

yaml Copier le code services: Systemin\SyliusGoogleMerchantCenter\Generator\ProductFeedGenerator: arguments: $productRepository: '@sylius.repository.product' $router: '@router' Configure the route:

Add a route to access the XML feed:

yaml Copier le code sylius_google_merchant_feed: path: /google-merchant-feed controller: Systemin\SyliusGoogleMerchantCenter\Controller\ProductFeedController::generateFeed Usage Access the configured URL (e.g., /google-merchant-feed) to generate and retrieve the XML feed. This URL will return an XML file compatible with Google Merchant Center.

Sample Generated Feed xml Copier le code

Ma Pépinière https://www.ma-pepiniere.fr Discover our collection of plants and accessories. 1 Ficus Elastica A perfect plant for bright interiors. https://www.ma-pepiniere.fr/product/ficus-elastica https://www.ma-pepiniere.fr/media/image/ficus.jpg in stock 49.99 EUR Ma Pépinière new FR 14.00 EUR

Customization Modify Feed Information Feed title, link, and description: Edit the default values in the generateFeed() method of the ProductFeedGenerator class:

php Copier le code $channel->addChild('title', 'Your Store Title'); $channel->addChild('link', 'https://www.yourstore.com'); $channel->addChild('description', 'Your custom description.'); Shipping price: Adjust the shipping price according to your rules:

php Copier le code $shipping->addChild('g:price', '10.00 EUR', 'http://base.google.com/ns/1.0'); Testing Verify that the products and variants are displayed correctly in the generated feed. Upload the feed to Google Merchant Center to validate compliance. Contribution Contributions are welcome! Follow these steps to contribute:

Fork the repository. Create a branch: git checkout -b feature/your-feature. Make your changes and test them. Submit a pull request. License This project is licensed under the MIT License.


All versions of sylius-google-merchant-center with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
sylius/sylius Version ~1.13.0
symfony/webpack-encore-bundle Version ^1.15
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package lilianbellini/sylius-google-merchant-center contains the following files

Loading the files please wait ....