Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate Phar file for Analyzer tool, for easier distribution. #130

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dave-newson
Copy link

Add the ability to build the Analyzer command as a phar file: meminfo.phar

The meminfo.phar file can be built using ./bin/build-phar.sh as part of a release.

The build script will;

  • pre-clean the build dir
  • Install the Vendor dependencies,
  • Install "Box" for phar packaging
  • Create meminfo.phar using Box.
  • Create an sha256 hash for meminfo.phar

Supplying a Phar file makes it a lot easier to use the Analyzer tool, instead of having to download and install the repo, as either a global or isolated dependency.

Box version is locked to be compatible with PHP 7.2 as this was the environment I had available.

….phar

The meminfo.phar file can be built using ./bin/build-phar.sh

The build script will;
 - pre-clean the build dir
 - Install the Vendor dependencies,
 - Install "Box" for phar packaging
 - Create meminfo.phar using Box.
 - Create an sha256 hash for meminfo.phar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants