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
Request: Publish to Composer/Packagist #1427
Comments
I don't see why we wouldn't add this 🤔 Do you have any guidelines/examples/help on how we can best approach that, I'm not a PHP developer myself (I don't know if any of the other maintainers are) so I'm not super familiar with Composer/Packagist |
Thanks for being open to this. The required {
"name": "simple-icons/simple-icons",
"description": "SVG icons for popular brands",
"homepage": "https://simpleicons.org/",
"keywords": [
"svg",
"icons"
],
"support": {
"issues": "https://github.com/simple-icons/simple-icons/issues"
},
"license": "CC0-1.0"
} Then a maintainer just needs to submit the package to Packagist. |
Closing as this isn’t moving. For those needing to install via Composer, at the time of writing, you can install via asset-packagist.org. |
I feel like that is something for the people maintaining a repository to decide 🤔 I consider this issue still as a TODO and would therefore like to keep it open. Is the issue being open bugging you as the opener, @joshuabaker?
That is actually a great link, thanks for sharing it! |
That wording might have sounded passive aggressive. It wasn’t meant to. 😅 In my mind, I have as much responsibility to contribute to open source as repo owners (i.e. opening/closing/owning issues and submitting PRs/solutions). If I can’t, as in this case, it just sits as a perpetual to do in my issues. There’s a couple of solutions out there right now that support similar packages (i.e. front-end assets, not PHP packages/libraries) so I saw fit to close. |
I wouldn't say aggressive, I just didn't see why you'd close it 😉But that's just a difference in style of using GitHub.
I appreciate that mindset, what prevents you from contributing? Time or knowledge? If it is just knowledge, ask us questions! You probably have the exact knowledge we are missing to tackle this issue ourselves. I would like to keep this issue open and prefer to not open a clone issue 🤔Does it help your perpetual list of issues if this issue is assigned to someone? |
Only team members can connect the repo to Packagist, so it’s not something I can do solo. |
In that case, if this configuration is truly enough, I will try to get a version published on Packagist. I'll get back to you here when I run into problems 👍 |
@ericcornelissen Give me a shout if you run into any issues. Happy to help, if I can. |
@joshuabaker I have some questions that are currently preventing me from getting the package out there. Would you mind providing us with some insight? First I have a couple of questions after reading the documentation. On About - Managing package versions it says:
That sounds like we need to start using git tags (I'm not necessarily opposed, it's just a change to our current workflow). But then it also says (what I left out above as
Which makes me think it can also be managed in the That would be ideal for us since the releasing commit (i.e. the commit that should be tagged) is created on GitHub, and therefor harder (read "requires more effort") to maintain. Whereas updating And second:
Do you know more about this? This short description doesn't really tell me much... Our repository always has two branches (since everyone, including the maintainers, work from forks): I'm just guessing here and would love some clarification. Two other questions that I couldn't find official docs on: Excluding filesOne is about excluding files from the package. Based on this Stack Overflow answer I think the easiest way to ignore irrelevant files is by adding a
Which we could do with our CI pipeline, but I'm not sure where the files for deployment go 🤔 Do you know? Would that be a separate repository? Multiple ownersThe other is question is with regards to the "owners" of a package on Packagist. Can there be multiple, can all maintainers be assigned as owner (or at least contributor) of the package and is it possible to transfer ownership to others in some way? |
Tagging works with NPM too, if I’m not mistaken. Releases via tags indicate stability and compatibility, help document changes, and allow easier navigation in Github and Git tools. It’s worthwhile considering this approach, in my opinion.
My understanding is that
Why would you need to exclude files? The repo is relatively small so I think it’s fine to download the whole thing. Using laravel/laravel as an example, all the tests etc. get downloaded when installing. From that Stack Overflow answer: “If it is a small library, stop to worry. Be happy.. :)”
You can have multiple maintainers, yeah. Once your package is published there’s an option to add maintainers on the package page. |
NPM primarily looks at the version specified in That said I think we can set up automated tagging (based on the version in Once that works I will start looking into adding the
How can we do that? Or do you mean as a user I can do that?
I think that is a matter of opinion 😉 But if the package manager doesn't support it, then it is beyond us. We can always add the
Alright thanks. |
With the latest release Simple Icons is now available on packagist! |
It’d be great to have this resource available via Packagist.
The text was updated successfully, but these errors were encountered: