Download the PHP package makeweb/updater without Composer

On this page you can find all versions of the php package makeweb/updater. 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 updater

Updater

Connect your plugin to a server running Easy Digital Downloads - Software Licensing

Installation

Installation can be done via composer with:

composer require makeweb/updater

Usage

Autoload package with composer

Make sure you are autoloading the package's classes by requiring the composer autoloader if you are not already. Your main plugin file is usually the best place to require the composer autoloader. You only need to do this once in your plugin.

// Autoload composer dependencies
require __DIR__.'/vendor/autoload.php';

Boot the updater

To boot the uploader in your main plugin file:

// Boot the plugin update client
(new MakeWeb\Updater\Updater(__FILE__))->boot();

You could implement this in any other file as well, but be sure to pass in the full path of the main plugin file to the Updater constructure in place of __FILE__.

Configuration

The update client pulls all neccessarry configuration from main plugin file, drawing from the header comments of the main plugin file and the filename.

For example, take the following header comment block:

/*
Plugin Name: MyCompany Thingamajiggy
Description: Respiculate your stultiloquence
Version: 1.0.0
Author: MyCompany
Author URI: http://example.org
*/

The package will look for an update server at example.org and will attempt to find updates available based on the given plugin name, and version.

Wordpress Settings Page

The package will automatically create a settings page under the Plugins menu called {MyCompany} Plugin Licenses, where the value of {MyCompany} is drawn from the Author header from the main plugin file. If multiple plugins are installed which use this package, plugins with the same Author name will appear on the same page. Each plugin will have a text input field where a license key can be entered to allow the user to update their plugin with updates from the update server.


All versions of updater with dependencies

PHP Build Version
Package Version
No informations.
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 makeweb/updater contains the following files

Loading the files please wait ....