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

Document installing alternative packages #5

Closed
weierophinney opened this issue Dec 31, 2019 · 1 comment · Fixed by #35
Closed

Document installing alternative packages #5

weierophinney opened this issue Dec 31, 2019 · 1 comment · Fixed by #35

Comments

@weierophinney
Copy link
Contributor

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.

Originally posted by @geerteltink at zendframework/zend-expressive-skeleton#267

@weierophinney
Copy link
Contributor Author

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


Originally posted by @geerteltink at zendframework/zend-expressive-skeleton#267 (comment)

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

Successfully merging a pull request may close this issue.

1 participant