PHPackages                             celo/ghost-pdf - 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. celo/ghost-pdf

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

celo/ghost-pdf
==============

PDF compression component

v1.0.x-dev(5y ago)1757MITPHPPHP &gt;=7.0

Since Sep 25Pushed 5y ago1 watchersCompare

[ Source](https://github.com/ChristianCelora/GhostPDF)[ Packagist](https://packagist.org/packages/celo/ghost-pdf)[ RSS](/packages/celo-ghost-pdf/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

GhostPDF
========

[](#ghostpdf)

Library for compress PDF file using ghostscript.

Install
-------

[](#install)

Install library through composer:

```
composer require celo/ghost-pdf

```

Usage
-----

[](#usage)

```
use Celo\GhostPDF\GhostPDF;

$gs = new GhostPDF($path);
$path_output_file = $gs->compress();

```

For max compression set first argument of compress function to *true*

Author
------

[](#author)

Christian Celora. Check my github at

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

 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

Unknown

Total

1

Last Release

2016d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b873c63973aff70906ff6bc1cb63aed10fec0a0cc3d50a2672344258df8a67e7?d=identicon)[Celo](/maintainers/Celo)

---

Top Contributors

[![ChristianCelora](https://avatars.githubusercontent.com/u/43580608?v=4)](https://github.com/ChristianCelora "ChristianCelora (21 commits)")

---

Tags

pdfcompress

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/celo-ghost-pdf/health.svg)

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

###  Alternatives

[barryvdh/laravel-dompdf

A DOMPDF Wrapper for Laravel

7.3k87.6M278](/packages/barryvdh-laravel-dompdf)[tecnickcom/tcpdf

TCPDF is a PHP class for generating PDF documents and barcodes.

4.5k101.8M473](/packages/tecnickcom-tcpdf)[mpdf/mpdf

PHP library generating PDF files from UTF-8 encoded HTML

4.7k77.1M493](/packages/mpdf-mpdf)[knplabs/knp-snappy

PHP library allowing thumbnail, snapshot or PDF generation from a url or a html page. Wrapper for wkhtmltopdf/wkhtmltoimage.

4.5k68.3M56](/packages/knplabs-knp-snappy)[spatie/browsershot

Convert a webpage to an image or pdf using headless Chrome

5.2k32.1M102](/packages/spatie-browsershot)[smalot/pdfparser

Pdf parser library. Can read and extract information from pdf file.

2.7k34.5M216](/packages/smalot-pdfparser)

PHPackages © 2026

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