2017 © Pedro Peláez
 

library signature

Sign and verify stuff

image

roave/signature

Sign and verify stuff

  • Wednesday, April 18, 2018
  • by Ocramius
  • Repository
  • 9 Watchers
  • 7 Stars
  • 56,405 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 3 Forks
  • 1 Open issues
  • 4 Versions
  • 44 % Grown

The README.md

:black_nib: Roave\Signature

Sign and validate signed files made easy., (*1)

Note: this is not a cryptographic signing library., (*2)

Installation

The suggested installation method is via composer:, (*3)

$ composer require roave/signature

Usage examples

Signing a file

// Creating a signer
$signer = new \Roave\Signature\FileContentSigner(
    new \Roave\Signature\Encoder\Sha1SumEncoder()
);

// It'll give you a signature to the provided code content
$signature = $signer->sign(file_get_contents('/var/tmp/file.php'));

Validating a signed file

// Creating a signer checker
$signer = new \Roave\Signature\FileContentChecker(
    new \Roave\Signature\Encoder\Sha1SumEncoder()
);

// It'll validate the signature on file content
$signer->check(file_get_contents('/var/tmp/signed-file.php'));

The Versions

18/04 2018

dev-master

9999999-dev

Sign and verify stuff

  Sources   Download

MIT

The Requires

  • php ^7.1 || ^7.2

 

The Development Requires

14/02 2018

dev-enhancement/enable-phpcs

dev-enhancement/enable-phpcs

Sign and verify stuff

  Sources   Download

MIT

The Requires

  • php ^7.1 || ^7.2

 

The Development Requires

09/02 2018

dev-enhancement/add-infection

dev-enhancement/add-infection

Sign and verify stuff

  Sources   Download

MIT

The Requires

  • php ^7.1 || ^7.2

 

The Development Requires

17/02 2017

1.0.0

1.0.0.0

Sign and verify stuff

  Sources   Download

MIT

The Requires

  • php ^7.0|^7.1

 

The Development Requires