TGMPA / TGM-Plugin-Activation

TGM Plugin Activation is a PHP library that allows you to easily require or recommend plugins for your WordPress themes (and plugins). It allows your users to install, update and even automatically activate plugins in singular or bulk fashion using native WordPress classes, functions and interfaces. You can reference bundled plugins, plugins from the WordPress Plugin Repository or even plugins hosted elsewhere on the internet.
http://tgmpluginactivation.com/
GNU General Public License v2.0
1.76k stars 428 forks source link

Roadmap TGMPA version 3.0 #394

Closed jrfnl closed 7 months ago

jrfnl commented 9 years ago

Main aims:

Tentative indication of OOP direction this list is still liable to change without notice and is in addition to the existing classes:

afragen commented 9 years ago

Submit TGMPA as a plugin to the WP plugin repo

You might have problems with this. Since TGMPA can install plugins from outside of the repo it may not be allowed. You can always use GitHub Updater.

GaryJones commented 9 years ago

Yes, we've already received feedback that it probably won't be accepted, and utilising the code from GitHub Updater was one of the alternatives.

afragen commented 9 years ago

If you plan on using code from GitHub Updater, is there anything I can add to make integration easier?

shivapoudel commented 9 years ago

+1

GaryJones commented 9 years ago

If you plan on using code from GitHub Updater, is there anything I can add to make integration easier?

Ideally, we wouldn't need it, but I guess we just need to be able to install just our plugin (no themes, no other plugins) from a GH tag, so it would only need to be a subset of GU, which is why we may just incorporate the credited code we need instead of the whole GU codebase.

afragen commented 9 years ago

It does come along with install code for GitHub, Bitbucket and soon GitLab.

However works best for you Gary.

rilwis commented 9 years ago

Just saw this from WPTavern. This is a great news! Thanks for the improvements!

By the way, Chip Bennett from WP.org commented on the article at WPTavern that you should suggest this plugin as a Featured Plugin which then can be integrated into WP core. If it's done, it will be a great outcome for all developers.

Hope you consider this.

Thanks for amazing script!

afragen commented 9 years ago

@GaryJones just an FYI. PHP >= 5.3 is required for GHU. You may need/want to consider increasing the PHP requirements for TGMPA 3.0.

jrfnl commented 9 years ago

PHP >= 5.3 is required for GHU. You may need/want to consider increasing the PHP requirements for TGMPA 3.0.

@afragen That's good to know. We don't currently intend to raise the minimum PHP version in favour of staying in line with WP core. If TGMPA's minimum would be upped, it would also mean that all themes and plugins using TGMPA would need to up their minimum PHP version and for now, I think that would be a bridge too far. I'd rather see WP core raise the minimum requirement to PHP 5.5+ first.

If it would turn out that we'd need to go down the GHU road, would you be open to a PR making GHU compatible with PHP 5.2 ?

afragen commented 9 years ago

@jrfnl for TGMPA I will create a branch that is PHP 5.2.x compatible if you would require it. GHU has a built-in branch switcher so if a PHP5.2 compatible branch is made, switching back to master, and PHP 5.3 requirement, should be simple. The same would apply for a switching between a PHP5.3+ compatible version of TGMPA or any branch. Perhaps you could offer both branches as well.

Though I understand wanting to maintain core compatibility, core isn't planning to update the requirements until more and more hosts update their versions. By incrementally requiring more current versions of PHP we can encourage hosting companies to upgrade.

I can understand existing plugins like Yoast or EDD that have a paid ecosystem not wanting to raise their requirements but TGMPA isn't a premium product or is it. The fact that it is widely used by premium products is a bonus for pushing hosting companies to upgrade their PHP versions. Honestly, as GHU is primarily used by and for developers, I really didn't think twice about moving to PHP 5.3 so I could add namespacing and autoloading. I did previously use spl_autoload_register but found namespacing to be important as well.

I actually upped the PHP requirement of my The Events Calendar Category Colors plugin in the .org repo. This plugin has more than 5000+ active installs and over 50,000 downloads and is an add-on for The Events Calendar. After, creating an error message that was more descriptive of why it may not work, only a couple of users reported issues and did get their hosting companies to upgrade.

As TGMPA 3.0 is an entirely new shift, from adding a class to a plugin, it really is the best time to up the requirements. Please reconsider but if not I will make a branch that is PHP 5.2 compatible.

jrfnl commented 9 years ago

@afragen Thanks for your offer. Will let you know if we'll need it. :smiley:

dovy commented 9 years ago

WP.org won't allow "frameworks" in the repo anymore. That ship has sailed I fear.

What about integrating updating as well. ;) IE, check for updates from a repo. :)

jrfnl commented 9 years ago

@dovy Thanks for your input.

WP.org won't allow "frameworks" in the repo anymore. That ship has sailed I fear.

They will if it's proposed as a feature plugin which is the path we are currently exploring ;-)

What about integrating updating as well. ;) IE, check for updates from a repo. :)

Updating bundled plugins and updating from the wp.org repo already works (included in v2.5 which was just released).

Checking for updates from an external repo is a difficult one, but is being considered (#380).

The issue with that is that there is no uniform response format for indicating that there is an update available (unless the external repo spoofs a wp.org type response like the https://github.com/YahnisElsts/wp-update-server/ library in combination with https://github.com/YahnisElsts/plugin-update-checker does).

Remzi1993 commented 5 years ago

@jrfnl It's been 4 years already. Is this being worked on? I'm just curious.

DeoThemes commented 3 years ago

Looks like abandoned

GaryJones commented 3 years ago

There's no active development on this.

drkdw commented 2 years ago

Any alternative that does the same but is up to date?

stefanofattori commented 7 months ago

Any update? Can the authors tell us if the project is dead? Any alternative?

GaryJones commented 7 months ago

No active development, and it's highly unlikely to restart. WP core now contains a similar (though currently less mature) implementation that I suspect will improve over time that developers can start moving towards instead.

stefanofattori commented 7 months ago

No active development, and it's highly unlikely to restart. WP core now contains a similar (though currently less mature) implementation that I suspect will improve over time that developers can start moving towards instead.

Thank you so much

Remzi1993 commented 7 months ago

No active development, and it's highly unlikely to restart. WP core now contains a similar (though currently less mature) implementation that I suspect will improve over time that developers can start moving towards instead.

Please archive this project on GitHub, this will send a signal that the plugin is no longer maintained. Something I also did for a WP plugin I'm no longer maintaining.

theamnesic commented 3 days ago

No active development, and it's highly unlikely to restart. WP core now contains a similar (though currently less mature) implementation that I suspect will improve over time that developers can start moving towards instead.

"Themes that require plugins are not supported by Plugin Dependencies at this time, and theme authors should continue to use the checks and messaging that they have in place."

😕