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

Provide dokuwiki as composer package #1757

Open
smichaelsen opened this issue Nov 15, 2016 · 8 comments
Open

Provide dokuwiki as composer package #1757

smichaelsen opened this issue Nov 15, 2016 · 8 comments

Comments

@smichaelsen
Copy link

dokuwiki already has a composer.json but is not installable via composer. That should be possible.

@splitbrain
Copy link
Collaborator

Could you explain the advantage?

@gmponos
Copy link
Contributor

gmponos commented Jan 2, 2017

see this

https://getcomposer.org/doc/03-cli.md#create-project

You could make dokuwiki a composer package so that everyone could install it with one simple command.
I can help you into that if you wish.

@smichaelsen
Copy link
Author

My wiki setup would be easily manageable via git and deployable via a CI process.

@splitbrain
Copy link
Collaborator

@smichaelsen huh? You already can use git. I still don't get the advantage composer would get you.

Composer is useful where you manage dependencies. But (ab)using it as an installer seems weird.

@smichaelsen
Copy link
Author

I wouldn't say it's weird. See @gmponos example. Composer is well suited for deploying applications. At least it's what we do in the TYPO3 world since a while: Put a composer.json into a repository, add some configuration => get an installable web application

@splitbrain
Copy link
Collaborator

shrug I guess I would accept a pull request

@kelunik
Copy link
Contributor

kelunik commented Sep 25, 2017

@splitbrain It just needs a submission to https://packagist.org/.

@demurgos
Copy link

demurgos commented Feb 1, 2021

I am also interested in being able to install Dokuwiki through composer.
My main issue with Dokuwiki is version management: upgrading Dokuwiki is a pretty bad experience. You have to commit Dokuwiki's files in your repo and upgrades ask you to manually overwrite changed files. Having to paste and replace files when there are existing package managers is a significant downgrade.
Furthermore, I would prefer to install plugins as composer packages instead of using the web interface: the web interface is fine for non-technical users but composer provides better version management (smoother upgrades/tracking/locking/transitive dependencies).

My ideal goal would be to manage my Dokuwiki as a regular composer project. My repo would only contain my custom plugins and any third-party plugin or the core engine would be loaded by composer (and not commited to the repo). This would enable me to also use composer to add regular dependencies to my plugins: it is currently not clear how to consume code from packagist inside my own plugins.

Related issue: #1840

micgro42 added a commit to micgro42/yearbox that referenced this issue Mar 20, 2021
This also adds full test coverage and injects the logger as a PSR-3
interface.

Unfortunately, we have to commit the entire vendor directory as DokuWiki
currently does not allow installing plugins via composer (yet). Maybe it
will come day via implementing dokuwiki/dokuwiki#1757
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

5 participants