A demo site using kgilden/php-digidoc
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
css
js
templates
.gitignore
.htaccess
README.md
app.php
bootstrap.php
composer.json
services.php

README.md

DigiDoc demo site

This is a small Silex-based site to demonstrate the workings of php-digidoc.

Setup

  1. Install dependencies using Composer

    # skip this, if you already have composer
    $ curl -sS https://getcomposer.org/installer | php
    
    $ php composer.phar install
    
  2. Start the PHP built-in server

    $ php -S localhost:8080
    
  3. Start up stunnel (signing won't work without TLS enabled)

     $ stunnel -d 4443 -f -r 8080 -p /path/to/pemfile.pem -P /tmp/stunnel.pid
    
  4. Navigate to https://localhost:443/app.php

You can obviously skip steps 2 and 3 in favor of an actual web server.