Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install Craft using Composer #895

Closed
angrybrad opened this issue Jan 31, 2017 · 3 comments
Closed

Install Craft using Composer #895

angrybrad opened this issue Jan 31, 2017 · 3 comments

Comments

@angrybrad
Copy link
Member

Created by: Potherca ([email protected]) on 2015/05/02 21:27:13 +0000
Votes at time of UserVoice import: 15


To enhance the developer experience it would be nice to be able to just run composer create-project craft/craft-standard-edition my_project_name to start working on a new Craft project.

Composer installers aren't that difficult to make and all of the other cool kids have 'm too! http://composer.github.io/installers/

@angrybrad
Copy link
Member Author

Posted by Timothy Kelty ([email protected]) on 2015/04/02 12:33:05 +0000


There already is a craft-plugin Composer installer for plugins: https://github.com/composer/installers

There would be a lot of benefits to installing/updating Craft itself through Composer:

  • Shared autoloading of Craft and dependencies

  • Command line installation/updates of plugins and Craft itself

  • Versioning

  • Enforcement of "platform packages" for php versions, https://getcomposer.org/doc/02-libraries.md#platform-packages

  • If Craft's dependencies were installed as Composer dependencies, a dev could hypothetically swap one out for a different version if needed. E.g. suppose a dev wants to use an updated version of Guzzle in a plugin, which Craft also uses internally. Currently that isn't really possible, but if Guzzle was simply a dependency of the craft composer package, a dev would be able to override the requirement and specify their own.

@timkelty
Copy link
Contributor

timkelty commented Feb 1, 2017

Oh happy day. Close it, @takobell!

@angrybrad
Copy link
Member Author

Possible in the latest Craft 3 beta. Thanks, Tim!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants