phpuri icon indicating copy to clipboard operation
phpuri copied to clipboard

Publish on Packagist

Open tzi opened this issue 10 years ago • 10 comments

Hi!

Thanks for writing this library and sharing it :)

The current composer name is "pguardiario/phpuri". Could you update the composer file to be the same of the user? Could you share it on Packagist? Could you tag a version?

Thanks! Thomas.

tzi avatar Jan 07 '15 15:01 tzi

Could you tag a version?

rukbat avatar Jul 01 '16 09:07 rukbat

Sorry, what's the issue exactly? How about making a pull request?

monkeysuffrage avatar Jul 01 '16 09:07 monkeysuffrage

Without a stable release I have to change the minimum-stability flag from stable to dev-master in the composer.json file in my projects.

A pull request does not include tags. :(

rukbat avatar Jul 01 '16 10:07 rukbat

Ok, I don't use composer so I'd rather let someone handle this unless you can talk me through it easily.

monkeysuffrage avatar Jul 01 '16 21:07 monkeysuffrage

Just create a tag with a version number (github likes semantic versioning) and then create a release based on your tag, possibly including a .zip file containing your code at that tag (you can create the .zip file with git-archive I think).

That should be enough for packagist to figure out your code has been released with a specific version number people can then add to a composer.json file.

agnul avatar Jul 01 '16 23:07 agnul

Angelo, would you like to take over this project? It sounds like you know what you're doing.

On Sat, Jul 2, 2016 at 7:12 AM, Angelo [email protected] wrote:

Just create a tag with a version number (github likes semantic versioning http://semver.org/) and then create a release https://help.github.com/articles/creating-releases/ based on your tag, possibly including a .zip file containing your code at that tag (you can create the .zip file with git-archive https://git-scm.com/docs/git-archive I think).

That should be enough for packagist to figure out your code has been released with a specific version number people can then add to a composer.json file.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/monkeysuffrage/phpuri/issues/5#issuecomment-230066131, or mute the thread https://github.com/notifications/unsubscribe/AA1afD_LcT2zBv57nijrztooIxm9KCW5ks5qRZ7zgaJpZM4DPZt5 .

monkeysuffrage avatar Jul 02 '16 00:07 monkeysuffrage

@monkeysuffrage The answer of @agnul is very precise and may make you fear.

Your repository is already available on packagist: https://packagist.org/packages/pguardiario/phpuri To add a new version to packagist, you just need a tag on github's repository. And you only need 2 commands to fo that!

Here is the commands to add a tag that will create a 1.0.0 version:

# This will create a local tag with the current state of the branch you are on
git tag 1.0.0
# You need to explicitly say that you want to push your tags when you are pushing to your remote repository
git push origin --tags

That's it :confetti_ball:

As @agnul said, it could be great to follow a semantic versionning and to maintain a CHANGELOG on your repository, but it's actually sugar here :wink:

Do not hesitate to ask if I can help!

Cheers, Thomas.

tzi avatar Jul 02 '16 15:07 tzi

I have no idea what I'm doing :-)

Just trying to use your code and have composer stop complaining about no stable releases or downloading the whole repository, .git folder and all, into my project.

agnul avatar Jul 02 '16 17:07 agnul

@Thomas, Ok, I just did that, should be all set now. Thanks!

On Sun, Jul 3, 2016 at 1:24 AM, Angelo [email protected] wrote:

I have no idea what I'm doing :-)

Just trying to use your code and have composer stop complaining about no stable releases or downloading the whole repository, .git folder and all, into my project.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/monkeysuffrage/phpuri/issues/5#issuecomment-230112835, or mute the thread https://github.com/notifications/unsubscribe/AA1afGCDOc1jO3L4MyTVgu23JLt7RX87ks5qRp7hgaJpZM4DPZt5 .

monkeysuffrage avatar Jul 02 '16 21:07 monkeysuffrage

Yes! Well done! You created a tag and a release on Github :confetti_ball:

It seems the packagist isn't configured to discover automatically new release in this project. Are you pguardiario? Can you go on packagist, sign in (probably with your Github acount) and click on the "Update" button?

Cheers, Thomas.

tzi avatar Jul 03 '16 08:07 tzi