What are Sylius plugins and how to use them properly?

What are Sylius plugins and how to use them properly?

As you may already know, Sylius is a great open-source framework for any eCommerce. Its flexibility allows creating almost any solution you could imagine- you have endless possibilities to personalize every aspect of the system and add to the Sylius framework as a plugin.

Here is the key- plugins.

What are Sylius plugins?

If you are familiar with Symfony, Sylius development should not be a problem. Those plugins are nothing more but regular Symfony bundles adding custom behavior to the default Sylius application.

How to use plugins properly?

You don’t have to do all of the customizations on your own. Thanks to open-source oriented plugin development, you can find a solution that someone has already created before. Source code is available on GitHub- everyone can fork it or open an issue. Contributing to open source can be a rewarding way to learn, teach, and build experience in just about any skill you can imagine. There must be at least some life areas where people can learn from someone’s mistakes, right?

You should know that not every customization should be made as a plugin for Sylius. If you have common logic in multiple projects or think that a feature may be useful for the community (and want to share it), you should consider the making of a plugin. In other ways, you can just make regular Sylius customization.

If you decide to create a plugin, you have to know that every plugin has documentation related to installation. Here are some steps you can see in most of them:

We encourage you first to read documentation to avoid making mistakes. Excellent quality is a must-have during Sylius plugins development.

Secondly, it is crucial to provide and follow coding standards. Writing documentation of a bundle/plugin/project is part of the development process. Our team has provided aBitBagBible– document that describes coding standards related to Sylius and Symfony. Remember that in the end, someone else is going to use your code, and he might not know each part of it.

BitBag open-source plugins

Long story short. We want you to take a look at some of our plugins to get familiar with the topic. Some of them you may already know. Below is a list with a short description and link to GitHub.

CMS Plugin– Content management system for eCommerce apps created on the Sylius platform. Built with Sylius code quality, flexibility, BDD

We have been awarded the « Extension Artisan » badge for the huge commitment to the plugin development. In addition, we decided to distinguish the plugin development as another offered service. If you feel we can help you, feel free to reach us on social media by e-mail, this page, or the contact form below.