8

Since there is a free edition and the plugin architecture looks relatively simple, I'd like to know if anyone has an idea of how this could work. Are there any plans for it?

5

I'm not 100% sure what you're looking for, but Craft does use Composer to manage its own dependencies.

If you're referring to using Composer in your plugin, it's as simple as creating your composer.json file in your plugin's root folder and running composer update.

6
  • 2
    I'm looking for something like the laravel installation process, e.g. composer create-project craftcms/craftcms your-project-name --prefer-dist – Richard Frank Jul 29 '14 at 16:48
  • Ahh, I see. We'll most likely implement that when we update to Yii 2.0 (since that's how they install as well), which would be on a major release like Craft 3. I'll add it to the list. – Brad Bell Jul 29 '14 at 17:26
  • @BradBell where would you recommend to place the plugins require 'vendor/autoload.php'; – Luke Holder Dec 2 '14 at 4:36
  • above the class MyPlugin extends BasePlugin ? – Luke Holder Dec 2 '14 at 4:37
  • 1
    Your plugin's init() method probably. – Brad Bell Dec 2 '14 at 4:37
3

Better late than never... Craft 3 (released April 2018) is fully Composer compliant!

1
  • was very happy to see that when it was announced! – Richard Frank Aug 28 '18 at 15:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.