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
Building an UI #4429
Comments
What kind of UI? Like, ncurses, for CLI? Or a web based UI? Assuming web based; while it sounds appealing to less tech-savvy users, it is not really a great idea. Composer works on a filesystem level, which is not something you really want to expose to the web. The permissions involved are too risky. I would definitely not recommend this on a production environment, ever. And for development, well, honestly I just don't really see any additional value here. Maybe if you could elaborate a bit more on the use-case you have in mind, we might be able to provide more concrete feedback though? |
@alcohol, thanks for your reply! I'll explain my thoughts. I've been working with the php framework CakePHP. For that I am working on an admin-panel (plugin). From there you can manage your website (like crud stuff, settings, etc). While realizing this, I would like to work on a tool that is allowed for all web based applications at first... I really see your point about security... And it should be mainly used at production level, so that will be risky... I would like to hear from you how you think about it ;) If anything isn't clear, feel free to ask! |
Well first of all, I think it's smart asking for feedback rather than just diving in blind, so kudos for that. I think often people, when trying to build implementations similar to what you are suggesting, they end up extending Composer. While initially this might seem like the best idea, I personally disagree. The internal API, while documented and somewhat stable, is not set in stone. Nor is it something you really want to depend on I think. I personally believe it would be much safer to simply run Composer as a binary in the background, much like how other similar applications, such as cPanel, run Linux tooling. As a process. Wrap it using |
Thank you very much! I think github / open source is meant for talks like these. I see your point of executing a command instead of extending composer itself. However, in case we will execute commands including variables, we have to secure that as well. What will we do? I can set up a project to try to achieve a basic code which can add dependencies, and from there we can look further? You know, I think a feature like this could give a great pulse to composer and it's use. I agree it should be used mainly as development tool (so use it command-line), but I think this would be very useful to extend the use of it... |
@alcohol I've put something on GitHub to test with processes, and using dependencies. What do you think about this? https://github.com/bobmulder/composer-ui It just works, but I haven't done anything regarding to security, docs or tests, so don't blame me for this ;). I would like to get some feedback or directions, and I'll continue this prototyping. The idea is that I'll start working on the helper, so the main actions (like I'm looking forward to your feedback! |
Closing as this isn't really an issue, but feel free to continue discussing if needed. |
Hi guys,
First of all, thank you for all this stuff ;).
I would love to build an UI which is able to require dependencies, and update composer. I've done some research but can't find out how to do that... Can you inform me about:
Kind regards,
Bob
The text was updated successfully, but these errors were encountered: