PHPackages                             erayalakese/envato-update-checker - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. erayalakese/envato-update-checker

AbandonedArchivedLibrary[Utility &amp; Helpers](/categories/utility)

erayalakese/envato-update-checker
=================================

Checks Envato WordPress plugins' updates and download its if any update available

v1.3.2(10y ago)82891[1 issues](https://github.com/erayalakese/envato-update-checker/issues)GPL v2PHP

Since Aug 19Pushed 10y ago2 watchersCompare

[ Source](https://github.com/erayalakese/envato-update-checker)[ Packagist](https://packagist.org/packages/erayalakese/envato-update-checker)[ RSS](/packages/erayalakese-envato-update-checker/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (7)Used By (0)

Envato Update Checker
---------------------

[](#envato-update-checker)

**Envato Update Checker** is a library for WordPress theme and plugin developers. When you use this library, it downloads when plugin or theme update is available.

HOW IT WORKS?
=============

[](#how-it-works)

It's just a PHP class and asking for some informations about your plugin while creating an instance.

First of all you need to create a JSON file. This file will contain latest version string of your plugin. Let's say your plugin's name is **Hello World** and **hewo** is slug. Your remote JSON file will be like this:

```
{
	"hewo":"1.1.2"
}

```

This will tell to library, latest version of the *hewo* plugin is 1.1.2 . Library will compare it with your installed plugin's version and warns users if any updates available.

Check out my remote file :

INSTALLATION
============

[](#installation)

You can use Composer to install it. **Composer**If you are using Composer to manage dependencies of your WordPress plugins / themes. You can install **Envato Update Checker** via Composer.

```
 composer require erayalakese/envato-update-checker
 composer update

```

USAGE
=====

[](#usage)

If you don't have any autoloader for your Composer vendors, you should put this to your plugin's **index.php** file or theme's **functions.php** file.

```
 require_once(__DIR__.'/vendor/autoload.php');

```

Now just creating an instance of **Envato\_Update\_Checker** class is enough. Class constructor will do the rest. Constructor needs 5 arguments as parameter.

```
new \erayalakese\Envato_Update_Checker(PLUGINNAME, PLUGINSLUG, PLUGINVERSION, REMOTEFILE, APIKEY);

```

**PLUGINNAME** - Name of your plugin. **PLUGINSLUG** - alphanumerical slug of your plugin. This will used in your remote file. You can use initials of your plugin name, like *vcb*, *dmw*, ... **PLUGINVERSION** - Installed version of your plugin. This version number will compared with your remote file. **REMOTEFILE** - URL of your remote JSON file. **APIKEY** - Envato API Key to verify purchases and download files from Envato. Get your APIKEY from [here](https://build.envato.com/my-apps/). Click **Register new app** button and get your API key. I recommend you to get new API KEYs for your every plugins.

EXAMPLE
=======

[](#example)

```
