Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

xtrasmal/integrity

Repository files navigation

Code Integrity

code integrity

This repository holds a CLI program which can be used to check the integrity of deployed code.

About

Features:

  • Build a PHAR in order to check different environments.
  • Build a ZIP of the project and create checksum
  • Validate the hash of the zipped project to the created checksum
  • Setup integrity

Upcoming features:

  • WIP: Check expected path of a file
  • WIP: Check expected file count
  • WIP: Code signing

Commands:

Below are all available commands.

Setting up

Creates an empty zip and checksum file.

php integrity setup

Build Phar

Builds Integrity as deployable phar.

php integrity build:phar

Build Zip

Builds a zip for the clients project and creates a checksum file.

php integrity build:zip

Validate

Validates the checksum

php integrity validate

Show all commands

php integrity or php integrity help

Preconditions & such

πŸ’‘ Practicalities

  • To build integrity.phar you need to edit your php.ini and add phar.readonly = Off
  • Add single files that should be excluded in excluded.php

About

integrity

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

Languages

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /