Warning!

Please note that the Europass PHP example is based on Europass XML v2.0 which is now deprecated. However, many of the high-level concepts and features demonstrated with this example do not depend on specific versions of the Europass XML, so you still might find it useful even if your application uses the latest Europass XML Schema.

Overview

Similarly to the Java example, Europass has developed a web-based PHP tool to demonstrate how to:

  • Import a Europass PDF+XML into a MySQL database;
  • Upload Europass PDF+XML CV and fill-in HTML form.

The tool depends on:

  • The latest version of the Apache web server available;
  • The latest version of PHP and the "mod_php" Apache module;
  • The MySQL database server as it is the most commonly used database engine in the PHP community.

Features

The functionalities covered by this tool are:

  • Upload a Europass document generated from the online tool in PDF+XML format;
  • Extract the XML from the document;
  • Parse the XML and extract the data;
  • Use the extracted data to fill in a web form and present it to the end user, or, store the data in a custom schema and present a report to the end user.

How to Use

Similarly to the Java sample, the Europass PHP tool is also publicly available on GitHub and is based on the Maven build tool.

You can either download it as a zip directly from GitHub, or clone it locally on your computer typing git clone https://github.com/europass/sample-tools-php.git in a terminal. In the latter case, you will need to have Git installed on your computer.

In either case, a Maven installation is required on your computer in order to run the sample application. Check the Maven for PHP site for details on installation and usage.