I developed a PHP library for all WordPress plugin and theme authors. With this library you can easily manage your updates and send notification to your customers when update is available. Your customers can download their update from wp-admin panel.
Great start man. It will be very useful once it ready and perfectly working. And compatibility updates needs to be noticed after final release.
And what does it mean by Composer on github page?
Just a quick idea. The plugin version can be available with the get_plugin_data() function. Wouldn’t be better to make it more simple and get the current plugin version number automatically?
Thank you so much for your all comments. I’m using it on my all plugins. As you already figured out, it’s asking for purchase code from user, and then downloading updates from CodeCanyon by using this purchase code.
[Composer][1] is a dependency manager for PHP projects. If you don’t use it , you really should. Because it’s automatically updating your dependencies. For example you set my updater script as dependency to your project, when I release a new version of the script, you just need to execute composer update command instead of download new version from GitHub, removing old version from your project folder and copying new version.
[1]: https://getcomposer.org/[quote=“n_media, post:13, topic:2484, full:true”]
And we need to upload our plugins and themes in our own website in a folder? or some other way…
[/quote]
No. It’s download files from Envato sites by using customer’s purchase code. You don’t need to upload your files to anywhere.
I tried it but it won’t work for themes. Also it will decrease performance to find plugin version.
It’s not possible to install (or update) it automatically. Because zip files which downloaded from CodeCanyon including documentations, license files and more. Not directly plugin files. An example structure:
So we need to unzip it, find real plugin files and upload them.
This script checking for updates and if any update is available, downloads it to customer’s computer directly. So customer can unzip it upload real plugin zip.