PHPackages                             czproject/pdf-rotate - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [PDF &amp; Document Generation](/categories/documents)
4. /
5. czproject/pdf-rotate

ActiveLibrary[PDF &amp; Document Generation](/categories/documents)

czproject/pdf-rotate
====================

Rotation of PDF pages.

v2.1.0(11mo ago)453.4k↑41%3BSD-3-ClausePHPPHP 8.0 - 8.4CI passing

Since Oct 24Pushed 11mo ago2 watchersCompare

[ Source](https://github.com/czproject/pdf-rotate)[ Packagist](https://packagist.org/packages/czproject/pdf-rotate)[ Fund](https://www.janpecha.cz/donate/)[ RSS](/packages/czproject-pdf-rotate/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (2)Versions (5)Used By (0)

PdfRotate
=========

[](#pdfrotate)

[![Build Status](https://github.com/czproject/pdf-rotate/workflows/Build/badge.svg)](https://github.com/czproject/pdf-rotate/actions)[![Downloads this Month](https://camo.githubusercontent.com/9ecac5aecc361abf2702a8e47820feae33aea87401d287cb3a1a0e3b20cbd3d5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f637a70726f6a6563742f7064662d726f746174652e737667)](https://packagist.org/packages/czproject/pdf-rotate)[![Latest Stable Version](https://camo.githubusercontent.com/bb4cf8c8c0d99f44183c16fe3105c53339bb4dd1eb23abc6b366d8f1aab16a36/68747470733a2f2f706f7365722e707567782e6f72672f637a70726f6a6563742f7064662d726f746174652f762f737461626c65)](https://github.com/czproject/pdf-rotate/releases)[![License](https://camo.githubusercontent.com/fa7d5fcf2c84b580327af52da95dd751703af65f079dc3c5a0081beac0789718/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4e65772532304253442d626c75652e737667)](https://github.com/czproject/pdf-rotate/blob/master/license.md)

Rotate PDF documents from PHP.

[![Donate](https://camo.githubusercontent.com/101b981194f1dafbf9c42e19c3034fe2d724e75be972cef0f4477074997834db/68747470733a2f2f6275796d65636f666665652e696e746d2e6f72672f696d672f646f6e6174652d62616e6e65722e76312e737667)](https://www.janpecha.cz/donate/)

Installation
------------

[](#installation)

[Download a latest package](https://github.com/czproject/pdf-rotate/releases) or use [Composer](http://getcomposer.org/):

```
composer require czproject/pdf-rotate

```

`CzProject\PdfRotate` requires PHP 8.0 or later.

Usage
-----

[](#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](license.md)
Author: Jan Pecha,

###  Health Score

50

—

FairBetter than 96% of packages

Maintenance51

Moderate activity, may be stable

Popularity35

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity84

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~1050 days

Total

4

Last Release

342d ago

Major Versions

v1.0.0 → v2.0.02018-06-24

PHP version history (2 changes)v1.0.0PHP &gt;=5.3.0

v2.1.0PHP 8.0 - 8.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/5c980b1511b4a0350442dc23d89c99d4d9a2411b7e765d52c133ccacf616968b?d=identicon)[janpecha](/maintainers/janpecha)

---

Top Contributors

[![janpecha](https://avatars.githubusercontent.com/u/637719?v=4)](https://github.com/janpecha "janpecha (20 commits)")

---

Tags

pdf-manipulationphp

### Embed Badge

![Health badge](/badges/czproject-pdf-rotate/health.svg)

```
[![Health](https://phpackages.com/badges/czproject-pdf-rotate/health.svg)](https://phpackages.com/packages/czproject-pdf-rotate)
```

###  Alternatives

[mpdf/mpdf

PHP library generating PDF files from UTF-8 encoded HTML

4.7k77.1M493](/packages/mpdf-mpdf)[webklex/laravel-pdfmerger

Generic PDF merger for Laravel

1422.6M2](/packages/webklex-laravel-pdfmerger)[jurosh/pdf-merge

PHP PDF Merger

1522.2M5](/packages/jurosh-pdf-merge)[creagia/laravel-sign-pad

Laravel package for of E-Signature with Signature Pad and Digital Certified Sign with TCPDF

54097.2k](/packages/creagia-laravel-sign-pad)[setasign/fpdi-protection

A FPDI compatible version of the FPDF\_Protection script.

324.3M2](/packages/setasign-fpdi-protection)[binarystash/pdf-watermarker

Watermark or stamp PDF documents

8260.6k](/packages/binarystash-pdf-watermarker)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
