I recently put together a basic Constant Contact plugin for a project, and I'd like to clean it up and improve it for a public release. The problem is that it requires a development version of the Constant Contact SDK for compatibility with PHP 7+. I did this by adding a custom repository to the composer.json file pointing to the github repo, and then requiring the development branch.

"repositories": [
    "type": "git",
    "url": "https://github.com/constantcontact/php-sdk.git"
"require": {
  "craftcms/cms": "^3.0.0-RC1",
  "constantcontact/constantcontact": "dev-development"

In order for this to work, I had to change the stability requirements in my main composer.json file:

"minimum-stability": "dev",
"prefer-stable" : true,

It seems to me this would not be ideal for a plugin in the Plugin Store. Is packaging all of the dependencies up into a vendor subfolder within the project a better option?


Currently the Plugin Store requires non-development dependencies in your composer.json file.

  • Great thanks, that clears things up! So I will give the alternate API client a try, since it's on Packagist and looks easy to implement. Nov 2 '18 at 23:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.