czproject/pdf-rotate

Rotation of PDF pages.

Maintainers

Package info

github.com/czproject/pdf-rotate

pkg:composer/czproject/pdf-rotate

Fund package maintenance!

Other

Statistics

Installs: 52 383

Dependents: 0

Suggesters: 0

Stars: 4

Open Issues: 0

v2.1.0 2025-06-10 18:55 UTC

This package is auto-updated.

Last update: 2026-03-10 20:30:14 UTC


README

Build Status Downloads this Month Latest Stable Version License

Rotate PDF documents from PHP.

Donate

Installation

Download a latest package or use Composer:

composer require czproject/pdf-rotate

CzProject\PdfRotate requires PHP 8.0 or later.

Usage

use CzProject\PdfRotate\PdfRotate;

$pdf = new PdfRotate;
$sourceFile = '/path/to/source.pdf';
$outputFile = '/path/to/output.pdf';

$pdf->rotatePdf($sourceFile, $outputFile, $pdf::DEGREES_90);

License: New BSD License
Author: Jan Pecha, https://www.janpecha.cz/