PHPackages                             signed-autoupdate/signed-autoupdate - 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. signed-autoupdate/signed-autoupdate

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

signed-autoupdate/signed-autoupdate
===================================

lib for signed autoupdate

461PHP

Since Mar 11Pushed 8y ago3 watchersCompare

[ Source](https://github.com/Cloudfest/signed-autoupdate)[ Packagist](https://packagist.org/packages/signed-autoupdate/signed-autoupdate)[ RSS](/packages/signed-autoupdate-signed-autoupdate/feed)WikiDiscussions master Synced 5d ago

READMEChangelogDependenciesVersions (2)Used By (0)

Signed Autoupdate
=================

[](#signed-autoupdate)

Description
-----------

[](#description)

Project was created on cloudfest hackathon for prototyping a signed transfer of plugin packages from developer to users. The project constists of:

- [CLI](#cli) (Tool for creation of keys and signature)
- [Client Implementation](#client-implementation) (A library to verify a package)
- [WordPress Plugin](#wordpress-plugin) (A Demo plugin having the signature checks and public key management demonstrated)
- [WordPress Test Environment](#wordpress-test-environment) (a docker based setup for developing or showing the plugin)

For testing purposes the WordPress Plugin: simple-cocomments was enhanced with .well-known/\* information needed for the demonstration of signature / public key signed packing.

Libs
----

[](#libs)

### CLI

[](#cli)

The CLI helps you to generate a keypair, to sign a package and to verify you signed package.

#### Commands

[](#commands)

##### `generator:generate`

[](#generatorgenerate)

To generate a new keypair run:

```
$ signer.phar generator:generate []
```

to get the complete list of parameters use:

```
$ signer.phar generator:generate --help
```

##### `signer:sign`

[](#signersign)

To sign a package, navigate to the package folder and run:

```
$ signer.phar signer:sign [options] [--]
```

to get the complete list of parameters use:

```
$ signer.phar signer:sign --help
```

##### `signer:sign`

[](#signersign-1)

To verify a signed package, run:

```
$ signer.phar verifier:verify [] [] []
```

to get the complete list of parameters use:

```
$ signer.phar verifier:verify --help
```

#### Build phar package

[](#build-phar-package)

To build a new `.phar` package, you have to install [box](https://github.com/box-project/box2#as-a-global-composer-install) and run

```
$ box build -v
```

in the root of the `cli` folder.

#### Screens

[](#screens)

[![Package List View](doc/well-known.png)](doc/well-known.png)

### Client Implementation

[](#client-implementation)

Installation via Composer

```
composer require signed-autoupdate/signed-autoupdate
```

Client Implementation is straightforward you need only your download package in zip format as well as your pre-installed Public Key.

Usage example:

```
include_once __DIR__ . '/vendor/autoload.php';

$public_key = hex2bin('');
$update = new Update('https://example.com/update.zip',__DIR__.'/update-deploy',$public_key);
```

If the signature fails, the number of files in the update package is off or the file hashes don't match the update will not be processed and the zip file will be discarded.

### WordPress Plugin

[](#wordpress-plugin)

#### Description

[](#description-1)

Plugin will inject via add\_filter into the download process of a plugin and checks for existence of some files. If signatures existing it will try to verify the files signatures. The plugin also allows deletion and editing of public keys.

So:

- will check for existence of: .well-known/signature.txt, .well-known/publickey.txt, .well-known/list.json
- if existing:
    - and public key is new, stores to trusted store
    - and public key is old, checks against public key the same
    - will block update if not the same keys
    - will verify with signature, public key and the list.json if the package is valid
- the SAU Signatures shows already known signatures for editing / deletion

#### Screens

[](#screens-1)

[![Package List View](doc/package-list-view.png)](doc/package-list-view.png)[![New Key Add During First Install](doc/new-key-found.png)](doc/new-key-found.png)[![Reject Installation on Error](doc/installation-rejected-key-mismatch.png)](doc/installation-rejected-key-mismatch.png)

### WordPress Test Environment

[](#wordpress-test-environment)

#### Description

[](#description-2)

The WordPress Test Environment was the idea for a one liner setup of the whole demonstration. Just execute ./do-it.sh , it will clone latest WordPress github, this repository, setup an apache with php7.2, a mysql container for the database. Uses wp-cli for setting up the wordpress with test123/test123 username on  .

For more info look into webserver/Dockerfile, docker-compose.yml and do-it.sh shell script.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/2e3d56273f319d19d7492f8ba06a01fd64a5724e3553b2d1f2ac0f4e399b2cfa?d=identicon)[pfefferle](/maintainers/pfefferle)

![](https://www.gravatar.com/avatar/d69d9b42dd29f51f9b728c3c34ab48cacbf58ba68bc6ce70eff4438c96afbbf0?d=identicon)[Omegatcu](/maintainers/Omegatcu)

---

Top Contributors

[![pfefferle](https://avatars.githubusercontent.com/u/2373?v=4)](https://github.com/pfefferle "pfefferle (19 commits)")[![ui-pschulz](https://avatars.githubusercontent.com/u/22317019?v=4)](https://github.com/ui-pschulz "ui-pschulz (14 commits)")[![Omegatcu](https://avatars.githubusercontent.com/u/858438?v=4)](https://github.com/Omegatcu "Omegatcu (13 commits)")

---

Tags

autoupdatemodulespluginssignverifywordpress

### Embed Badge

![Health badge](/badges/signed-autoupdate-signed-autoupdate/health.svg)

```
[![Health](https://phpackages.com/badges/signed-autoupdate-signed-autoupdate/health.svg)](https://phpackages.com/packages/signed-autoupdate-signed-autoupdate)
```

###  Alternatives

[ebanx/stream

A library to help working with streams of data in PHP

174.7k](/packages/ebanx-stream)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
