Skip to content
This repository has been archived by the owner on Jan 21, 2020. It is now read-only.

Document installing alternative packages #267

Open
geerteltink opened this issue Nov 6, 2018 · 2 comments
Open

Document installing alternative packages #267

geerteltink opened this issue Nov 6, 2018 · 2 comments

Comments

@geerteltink
Copy link
Member

There is a feature to install alternative packages: Instead of entering one of the selection you can actually type the package name and version.

  Which template engine do you want to use?
  [1] Plates
  [2] Twig
  [3] zend-view installs zend-servicemanager
  [n] None of the above
  Make your selection or type a composer package name and version (n): infw/pug:0.1
  - Searching for infw/pug:0.1
  - Adding package infw/pug (0.1)

That feature has been there from the beginning and it allows you to install any alternative package you want. It has its limitations though:

  • You need to enter the alternative package as namespace/package:1.0. It needs the version. I can't remember why I coded it like that, but I think it had to do with the way composer works or my limited composer api knowledge at that time :)
  • Templates are not copied, but you can configure your ConfigProvider in such way that it uses the default templates directly from the package itself.
  • This doesn't work for containers as the container.php file needs to be copied.
@geerteltink
Copy link
Member Author

Also start a list with 3rd party extensions that can be added this way.

@weierophinney
Copy link
Member

This repository has been closed and moved to mezzio/mezzio-skeleton; a new issue has been opened at mezzio/mezzio-skeleton#5.

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

No branches or pull requests

2 participants