Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Sylius as an Infrastructure

Konrad Alfaro
October 27, 2022
120

Sylius as an Infrastructure

Setting up Sylius is easy. In a few minutes, you can have a shiny new eCommerce ready to accept orders. But… Is it really? You have to get the products from somewhere. And Customers. And maybe export them to some CRM. Adding communication with the WMS would probably be needed as well. And so on... And all of that is fine, as Sylius is meant to be a part of a bigger puzzle! Thanks to its architecture, integrations won’t be a headache. But! There is also a catch. If you want to be always up-to-date with Sylius' new releases and use it as an eCommerce engine in your system, you’d better be as little coupled with it as possible. During my talk, I’ll present my ways of being agnostic to Sylius yet using its full potential, allowing you to focus on feature development instead of framework maintenance.

Konrad Alfaro

October 27, 2022
Tweet

Transcript

  1. Sylius as an
    Infrastructure
    Konrad Alfaro @ SyliusCon 2022
    How to decouple from Sylius
    and still utilise its full potential

    View full-size slide

  2. Who am I? 🤔
    8lines.io
    Over 8 years of backend experience
    🤓
    In love with Sylius
    😍
    Former Sylius Team Member
    🦢
    CEO of 8lines - Software Agency
    👔

    View full-size slide

  3. Sylius is great for small projects!
    8lines.io
    Opinion 😉

    View full-size slide

  4. Sylius is great for small projects!
    8lines.io
    NOT
    Opinion 😉

    View full-size slide

  5. Easy to enter ecosystem
    8lines.io

    View full-size slide

  6. “Symfony way” 🎻
    8lines.io

    View full-size slide

  7. It has some
    fl
    aws
    ❌ Hard to see implemented features
    8lines.io
    ❌ Poor maintainability
    ❌ No Contexts

    View full-size slide

  8. It has some
    fl
    aws
    ❌ Hard to see implemented features
    8lines.io
    ❌ Poor maintainability
    ❌ No Contexts

    View full-size slide

  9. 8lines.io
    🤯

    View full-size slide

  10. It has some
    fl
    aws
    ❌ Hard to see implemented features
    8lines.io
    ❌ Poor maintainability
    ❌ No Contexts

    View full-size slide

  11. It has some
    fl
    aws
    ❌ Hard to see implemented features
    8lines.io
    ❌ Poor maintainability
    ❌ No Contexts

    View full-size slide

  12. DDD?
    8lines.io

    View full-size slide

  13. DDD?
    8lines.io
    Psst, hey you kids.


    Wanna build some Domain
    Aggregates?

    View full-size slide

  14. IT DEPENDS!
    8lines.io

    View full-size slide

  15. How Sylius should be used then?
    8lines.io
    Opinion 😉

    View full-size slide

  16. 8lines.io
    eCommerce
    PIM
    CRM
    CMS
    ERP
    Baselinker
    Sales channels
    Mobile
    Web

    View full-size slide

  17. 8lines.io
    Frontend
    eCommerce
    PIM
    CRM CMS
    ERP

    View full-size slide

  18. 8lines.io
    Frontend
    eCommerce
    PIM
    CRM CMS
    ERP

    View full-size slide

  19. 8lines.io
    Frontend
    eCommerce
    PIM
    CRM CMS
    ERP

    View full-size slide

  20. 8lines.io
    Frontend
    eCommerce
    PIM
    CRM CMS
    ERP

    View full-size slide

  21. Let’s see some example! 👨🔬
    8lines.io

    View full-size slide

  22. Scenario
    ☑ Import products from PIM
    8lines.io
    ☑ Remain
    fl
    exible and compatible with Sylius
    ☑ Change our business logic in the future
    ☑ Have an additional property in Product

    View full-size slide

  23. Scenario
    ☑ Import products from PIM
    8lines.io
    ☑ Remain
    fl

    View full-size slide

  24. 8lines.io
    Frontend
    eCommerce
    PIM
    CRM CMS
    ERP

    View full-size slide

  25. Example ahead 🚧
    8lines.io

    View full-size slide

  26. 8lines.io
    https://github.com/Sylius/Sylius/discussions/13180

    View full-size slide

  27. Scenario
    ✅ Import products from PIM
    8lines.io
    ☑ Remain
    fl

    View full-size slide

  28. 8lines.io
    https://docs.sylius.com/en/1.11/customization/model.html#why-would-you-customize-a-model

    View full-size slide

  29. Product Attributes! 🏷
    8lines.io

    View full-size slide

  30. Is it really a Product Attribute?
    8lines.io

    View full-size slide

  31. Example ahead 🚧
    8lines.io

    View full-size slide

  32. Scenario
    ✅ Import products from PIM
    8lines.io
    ☑ Remain
    fl
    exible and compatible with Sylius
    ☑ Change our business logic in the future
    ✅ Have an additional property in Product

    View full-size slide

  33. Scenario
    ✅ Import products from PIM
    8lines.io
    ✅ Remain
    fl

    View full-size slide

  34. Is Sylius good for small projects?
    8lines.io
    Opinion 😉

    View full-size slide

  35. Thanks! 🙌
    8lines.io

    View full-size slide

  36. Let’s talk 🤙
    8lines.io

    View full-size slide