On line guide/help
You are on page 3 of the online help. Navigate sequentially through the guide pages or search for a topic of interest to you.
Index Prev. NextTest installation
Quick check
To verify that the library is working, you can create a test page with a basic PHP code that will display a simple message. If you use a framework like Laravel or Symfony you must add the test code in a controller and set the route that call it.
Open a command prompt and inside the project folder, type the following command to install the library:
composer require alienproject/pdfreport
Inside the project folder, create an "index.php" file and copy the following code into it.
File : index.php
Create an xml file in the root folder with the following code:
File : hello.xml
Run the test project
Now start your local PHP server and development database server (e.g. XAMPP or Laragon). Launch your browser (e.g., Chrome) and type the address of the home page of your newly created web app. It should look something like: http://localhost/my-report-app/index.php. If all goes well, a PDF report appear on the screen.