Download the PHP package erayalakese/envato-update-checker without Composer

On this page you can find all versions of the php package erayalakese/envato-update-checker. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package 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?

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 : http://erayalakese.com/envato-update-checker.json

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

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. Click Register new app button and get your API key. I recommend you to get new API KEYs for your every plugins.

EXAMPLE

<?php
/*
Plugin Name: Test Plugin
Plugin URI: http://eray.rocks
Author: Eray Alakese
Version: 1.0.0
Author URI: http://eray.rocks
*/

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

new erayalakese\Envato_Update_Checker("Test Plugin", "tp", "1.0.0", "http://erayalakese.com/envato-update-checker.json", "XYZ...ABC");

/** Your plugin codes here **/

License

GPL v2 - http://www.gnu.org/licenses/old-licenses/gpl-2.0.html


All versions of envato-update-checker with dependencies

PHP Build Version
Package Version
Requires erayalakese/envato-market-api Version ^1.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package erayalakese/envato-update-checker contains the following files

Loading the files please wait ....