Fetching latest commit…
Cannot retrieve the latest commit at this time.
..
Failed to load latest commit information.
build
cert
src
tmp
verified
.gitignore
README
local.php
remote.php

README

Example on how to use certificate generation, phar building
and PharUtil_RemotePharVerifier class.

Make sure you have installed the PharUtil PEAR package!
$ sudo pear install PharUtil-x.y.z.tgz

1. Go to cert/ subdirectory
   $ cd cert
2. Generate public & private keys, run
   $ phar-generate-cert
   This will generate priv.pem and pub.pem in cert/
3. Go back to example root directory
   $ cd ..
4. Build your Phar archive in build/test.phar:
   $ phar-build --phar ./build/test.phar
5. Test both local and remote inclusions:
   $ php local.php
   $ php remote.php