prhost / new-opencart

Discussões sobre mudanças e melhorias na plataforma Opencart
6 stars 0 forks source link

Composer installer #10

Open prhost opened 8 years ago

prhost commented 8 years ago

Adoro o composer, acho que foi uma das coisas mais perfeita ja criada no mundo PHP. Uso ele para gerenciar e atualizar todo o projeto em qualquer ambiente, dev, test e production. Existe um projeto do composer chamado Installers https://github.com/composer/installers, nele a galera adiciona "type" que servem para indicar o que deve ser feito com o pacote instalado que tiver especifico o mesmo "type". Deem uma olhada no repositório deles se tiverem dúvidas. Atualmente criei um installers para gerenciar "core", "extensions" e "themes", assim cada um deles fica separado em repositórios, se eu quiser usar um determinado tema, eu simplesmente do um composer require nome-do-tema e ele automaticamente adiciona o tema na pasta themes/. O mesmo acontece com o core que é adicionado na pasta app/ e as extensões na pasta extensions/.

oc_-_composer_installer_1

oc - composer installer 2

Desculpe ocultar algumas coisas, são dados da empresa onde trabalho.

stefanhuber commented 8 years ago

Unfortunately, this is only Portuguese.

I have done two projects in this direction:

Maybe there is some interest in collaboration.

prhost commented 8 years ago

@stefanhuber like many of his projects. I began to develop much of this project but is in beta, not yet divulged. I liked your project related to the composer, my was to use the composer to manage themes and extensions as external packages, easy to add and remove. If you are interested we can do something together.

stefanhuber commented 8 years ago

@prhost Yes I think managing all kind of extensions with composer is the way to go. Many things are possible in this regard. The extension installer i created is working basically. Maybe we can share some thoughts via email, how we could do something. Please send me a mail, because I cannot find your address anywhere...

prhost commented 8 years ago

@stefanhuber i enabled in my profile, see there