This repository holds a CLI program which can be used to check the integrity of deployed code.
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
Below are all available commands.
Creates an empty zip and checksum file.
php integrity setup
Builds Integrity as deployable phar.
php integrity build:phar
Builds a zip for the clients project and creates a checksum file.
php integrity build:zip
Validates the checksum
php integrity validate
php integrity
or php integrity help
- To build
integrity.phar
you need to edit yourphp.ini
and addphar.readonly = Off
- Add single files that should be excluded in
excluded.php