PHPackages                             flarumchina/php-auto-update - 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. flarumchina/php-auto-update

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

flarumchina/php-auto-update
===========================

Autoupdater for PHP

1.0.0(8y ago)016Apache-2.0PHPPHP &gt;= 5.6.4

Since Feb 14Pushed 8y ago1 watchersCompare

[ Source](https://github.com/FlarumChina/PHP-Auto-Update)[ Packagist](https://packagist.org/packages/flarumchina/php-auto-update)[ RSS](/packages/flarumchina-php-auto-update/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (4)Versions (13)Used By (0)

[![Build Status](https://camo.githubusercontent.com/4cbebe3248643e3e75b2d40b823a566ad7b072585ce1a1625c1114283b50becc/68747470733a2f2f7472617669732d63692e6f72672f56697375616c41707065616c2f5048502d4175746f2d5570646174652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/VisualAppeal/PHP-Auto-Update)

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
------------

[](#installation)

- Install the library via composer [visualappeal/php-auto-update](https://packagist.org/packages/visualappeal/php-auto-update)
- Create a update file/method in your application with your update routine (see `example/client/update/index.php`)
- Create a `update.json` or `update.ini` on your server (where the client should get the updates, see `example/server/update.json` or `example/server/update.ini`)

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

Example
-------

[](#example)

### Client

[](#client)

#### update.php/some method

[](#updatephpsome-method)

This file will install the update. For an example see `example/client/update/index.php`

#### Check for new versions

[](#check-for-new-versions)

You can always check for new versions, e.g. in the footer. This can look like this:

```
