C
C
c23796752016-05-17 23:11:26
1C-Bitrix
c2379675, 2016-05-17 23:11:26

What is the best way to integrate laravel with Bitrix?

Good afternoon, I want to integrate a store on bitrix cms with laravel, using bitrix as a backend, and laravel as a frontend part of a complex online store. I can’t transfer it completely due to financial restrictions, so I want to do it gradually, step by step.
As a first step, you need to get all the products and categories from Bitrix to Laravel, is there any ready-made adapter for this?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
I
IceJOKER, 2016-05-17
@IceJOKER

bitrix as backend and laravel as frontend? Are you kidding me? O_O
Write a store under laravel, or stop at bitrix, but you shouldn't mix them.
Or at least for the frontend, use the frontend - angular, ember etc.

A
Alexander Borisovich, 2016-05-18
@Alexufo

Ltd. such events need to open blogs. And to conduct an online broadcast, it will be fun ...
Module)) What can't you do? Connect Bitrix to Lavarel and pull the database using its api.
You can even leave it like that, it’s not clear what advantages the framework has for frontend output.

A
Andrey Kornev, 2016-05-19
@webkornevand

If you want to keep the frontend in good shape, then it's better to use a couple of packages from the composer, for example, attach a router and a template engine. Move logic to controllers, and use Bitrix api in controllers.
Laravel is too cumbersome for this - because Bitrix on the backend already does everything, and from Laravel you will only use router and controller templates. If you don’t want to choose packages yourself, then you can look towards microframeworks, for example, lumens.
As a person who has worked exclusively with Bitrix for years, I understand the desire to cross an elephant (clumsy Bitrix but with a bunch, a huge bunch of ready-made functionality, starting from simple lists, ending with a multi-warehouse IM with backjack and courtesans) with a hipard (a fast framework with a bunch of charms, but everything has to do it manually). But it's not worth doing it anyway. Because you will lose a good part of the Bitrix functionality - such as: quick edits, site indexing and sitemap, component approach and help if you get confused in your creation. If you want beautiful component templates, Bitrix supports third-party templating engines, and as for the site template, it’s only php that hurts ... Well, if you want your own components with inheritance, you can also implement it.
On my last project, I wrote about 20 components for the project needed without a bunch of dirt in and lashes that are constantly observed in standard ones.

A
Alexander Filippenko, 2018-07-15
@alexfilus

According to the structure, for the catalog sections, you can take the
Nested set package: https://github.com/etrepat/baum
There is no ready-made adapter, and in general mixing 2 platforms in one project is a very bad idea. I saw once Bitrix mixed with Symfony "for speed". It worked extremely crookedly, and apparently the problem was really not in the load, but in the inability of the previous developer to configure the Bitrix cache.
And it is not clear what you are trying to win with this approach.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question