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

Comments

Projects
None yet
2 participants
@angrybrad
Copy link
Member

commented Jan 31, 2017

Created by: Potherca (potherca@hotmail.com) 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

This comment has been minimized.

Copy link
Member Author

commented Jan 31, 2017

Posted by Timothy Kelty (timkelty@gmail.com) 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

This comment has been minimized.

Copy link
Contributor

commented Feb 1, 2017

Oh happy day. Close it, @takobell!

@angrybrad

This comment has been minimized.

Copy link
Member Author

commented Feb 1, 2017

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

@angrybrad angrybrad closed this Feb 1, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.