Documentation / Install guides

Install PHP

A pure-PHP binding over FFI: no compiled extension to match.

1. Get the package

The download is public and needs no key — unlicensed output carries an evaluation watermark and nothing else is restricted. The package file is php.zip.

Download php

2. Check your platform

Two separate facts per platform: whether a licence key for this package covers it, and whether the download ships an engine binary for it.

Platform Licence covers it Binary in the download
win-x64 Yes Yes
linux-x86 Yes Yes
linux-x64 Yes Yes
linux-arm32 Yes Yes
linux-arm64 Yes Yes
macos Yes Yes

3. Install

shell
unzip php.zip        # engines are in bin/<platform>/
php -d ffi.enable=true hello.php
# or: composer require lumaspdf/lumaspdf, with LUMASPDF_LIB_DIR
#     pointing at a bin/<platform>/ folder from php.zip

4. Licence it

A licence is one key string, set once at startup. Buying one and installing it is covered by how licensing works; until then the engine runs fully functional with an evaluation watermark.

5. Your first PDF

The smallest complete program: create, write, close.

php
<?php
require 'LumasPdfOO.php';

$pdf = new LumasPdfOO();
$pdf->CreateNewPDF('hello.pdf');
$pdf->Append();
$pdf->SetFont('Helvetica', LumasPdfOO::fsNone, 24.0, true, LumasPdfOO::cp1252);
$pdf->WriteFText(LumasPdfOO::taCenter, 'Hello from LumasPDF');
$pdf->EndPage();
$pdf->CloseFile();

Where next