Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

This branch is 6 commits ahead of damianb:master

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
Something went wrong with that request. Please try again.