Hi all,
I was figuring out how to install opencart (and extra modules) via composer, but couldn't find anything.
How are you guys organize versioning with Git and/or Composer? Is it even possible?
Right now the situation is as follows:
Any update of any module/core/custom edit is added in FTP, without any versioning.
What I'm looking for (ideal situation):
- Install open cart core via composer
- Install modules via composer
- Keep up versioning with only custom modules and composer.json/.lock file
Just like versioning in Magento, Laravel, etc.
Thanks
Unlike Laravel, it can be a bit more complicated to manage OC via version control. Modules and extensions are typically run through the OC installer, further there is no migration like you would get from Laravel, etc.
There are some issues with installing 3.0.3.6 on composer you can see my post here how to resolve that - viewtopic.php?f=199&t=219456&hilit=composer#p798009
If you develop your own modules then you can use composer as needed to call in dependencies for your own modules.
One thing to note - When you install OC, it will prompt to move your storage folder. The storage folder also houses the vendor directory, therefore you have to make sure you update the vendor dir in your composer.json in order to use any new packages you add.
-
There are some issues with installing 3.0.3.6 on composer you can see my post here how to resolve that - viewtopic.php?f=199&t=219456&hilit=composer#p798009
If you develop your own modules then you can use composer as needed to call in dependencies for your own modules.
One thing to note - When you install OC, it will prompt to move your storage folder. The storage folder also houses the vendor directory, therefore you have to make sure you update the vendor dir in your composer.json in order to use any new packages you add.
-
Full Stack Web Developer :: Send a PM for Custom Work.
Backup and learn how to recover before you make any changes!
Who is online
Users browsing this forum: ventienda and 8 guests