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

Add composer.json #20

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add composer.json #20

wants to merge 1 commit into from

Conversation

atimmer
Copy link

@atimmer atimmer commented Apr 14, 2015

With this composer.json the package can be used using composer. Preferably you would also add the package to packagist.

License is GPL automatically because WordPress has a GPL license.

@lgladdy
Copy link
Contributor

lgladdy commented Apr 15, 2015

I'll discuss this here with the team - i'm a bit hesitant to add a composer file as it's a wordpress plugin and would require more configuration to work with the wordpress structure than people would usually expect with composer - depending on where you're storing your composer.json.

Is it better to leave this to WordPress packages? http://wpackagist.org

@atimmer
Copy link
Author

atimmer commented Apr 15, 2015

http://wpackagist.org is awesome for WordPress plugins if they are in the official wordpress.org repository. Given this plugin is not in the wordpress.org repository it isn't in the wpackagist repository.

This issue would also be solved if you would deploy to the wordpress.org repository. If you want I can make a pull request using grunt-wp-deploy to deploy to wordpress.org.

I thought because this is a developer focused plugin that adding a composer.json and adding it to packagist would be the correct path.

@asadowski10
Copy link

+1 with the argumentation of @atimmer !
In my projects i use composer and i call external plugins on GITHUB where plugins have a magic composer.json like https://github.com/BeAPI/responsive-cookie-banner/blob/master/composer.json

Thanks,

@jmau111
Copy link

jmau111 commented Aug 31, 2015

+1 me too ! It's just one file composer.json that would be very nice. Thanks.

@daviddarke
Copy link

+1 I just sent in a pull request for the same thing! Closed my duplicate version.

@KoenRijpstra
Copy link

+1

6 similar comments
@tobeycodes
Copy link

+1

@toktor
Copy link

toktor commented Jun 8, 2016

+1

@yumyo
Copy link

yumyo commented Jul 25, 2016

+1

@matgargano
Copy link

+1

@indrek-k
Copy link

+1

@DannyvanHolten
Copy link

+1

@DannyvanHolten
Copy link

DannyvanHolten commented Mar 23, 2017

Is there any chance you will be doing this anytime soon? It's a pain in the ass to have:

{ "type": "package", "package": { "name": "acf-gravityforms", "version": "dev-master", "type": "wordpress-plugin", "dist": { "type": "zip", "url": "https://github.com/stormuk/Gravity-Forms-ACF-Field/archive/master.zip" } } }

as oppossed to:

"wpackagist-plugin\gravityforms-acf-field","*"
or
"stormuk\gravityforms-acf-field","*"

@matgargano
Copy link

matgargano commented Mar 23, 2017 via email

@DannyvanHolten
Copy link

Agreed, but I prefer the proper way and not use my fork. If this is not getting any reactions I feel obliged to as well though.

@yumyo
Copy link

yumyo commented Mar 24, 2017

In most cases, a fork does not really help as you still need to update it manually as opposed to getting updates rolled out by Gravity as soon as they are ready.

@matgargano
Copy link

In most cases, a fork does not really help as you still need to update it manually as opposed to getting updates rolled out by Gravity as soon as they are ready.

Not a problem in this case, considering this repo hasn't been updated in 2 years.

@DannyvanHolten
Copy link

Did so. I also went trough the other pull requests and basically started all over again.
https://github.com/DannyvanHolten/acf-gravityforms-add-on

I also submitted it to the WP plugin directory so everyone can safely use it.
https://wordpress.org/plugins/acf-gravityforms-add-on/

P.S: I did a few changes why it isn't compatible with this version. Basically it's because I renamed the field from acf_field_gravityforms to forms, so you should check your website when changing it..

@barrywoolgar
Copy link

Given that your 'new' plugin is based entirely on this code, I think it would have been better for you to fork this repo, keep the history, and make your changes on top. If you're wanting to take this over, we would happily add a message pointing people to your fork.

What you've done is take this code, and remove the MIT licence it was released under (DannyvanHolten/acf-gravityforms-add-on@eb095b0). Please can you at the very least re-add that, and perhaps even leave in a reference to the original authors, who still deserve credit even if they've since moved onto other projects.

@DannyvanHolten
Copy link

As @atimmer point out releasing this under an MIT License is not allowed. It should be GPL v2+ in the first place as it is a wordpress plug-in.

  • Am i still able to tell github this repo is a fork of this repository? That isn't anything I thought about, but I don't know how to change it.
  • They do deserve credits. Didn't think about that either, built this yesterday night. Haven't got the time to get to all those things. I will add that :)

@barrywoolgar
Copy link

barrywoolgar commented Apr 10, 2017

You can't make your new repo a fork of this one retroactively, you would need to remove it and start again, should you wish to.

To be honest, I'm not familiar with WordPress or the intricacies of licensing for code that runs within it. All I'm saying is that it would be right and proper for you to ensure your code (which is an edit of this code, which was itself based on someone else's code) properly credits those who came before. See the bottom of our README.md for an example.

@DannyvanHolten
Copy link

Thanx, I will :) I will do that somewhere this week.

@DannyvanHolten
Copy link

Have credited you (a while ago, but forgot to mention it here). :)

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

Successfully merging this pull request may close these issues.