Download the PHP package visualappeal/php-auto-update without Composer

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

PHPUnit

With this library your users can automatically update their instance of your application to the newest version. I created it as a proof of concept and don't know if it is used somewhere. So please use this library with caution because it can potentially make your users software nonfunctional if something goes wrong.

Installation

Important: Please notice that PHP needs write permissions to update the files on the webserver

Example

You can start an example docker container via docker-compose up and see the example by visiting http://127.0.0.1:8080/example/client/

Client

Caching

The library supports the desarrolla2/cache component, and you should use it! Otherwise, the client will download the update ini/json file on every request.

Server

Your server needs at least one file which will be downloaded from the client to check for updates. This can be a json or an ini file. See example/server/ for examples. The ini section key respectively the json key is the version. This library uses semantic versioning to compare the versions. See semver.org for details. The ini/json value is the absolute url to the update zip file. Since the library supports incremental updates, the zip file only need to contain the changes since the last version. The zip files do not need to be placed on the same server, they can be uploaded to S3 or another cloud storage, too.

Documentation

For the documentation see the comments in src/AutoUpdate.php or the example in the example directory.


All versions of php-auto-update with dependencies

PHP Build Version
Package Version
Requires ext-json Version *
ext-curl Version *
ext-zip Version *
php Version >=7.2.0
desarrolla2/cache Version ^3.0
monolog/monolog Version ^2.1
composer/semver Version ^3.0
psr/log Version 1.1.4
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 visualappeal/php-auto-update contains the following files

Loading the files please wait ....