PHPackages                             jasta-fly/phpdfer - 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. jasta-fly/phpdfer

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

jasta-fly/phpdfer
=================

Library for work with PDF files

1.0.0(2y ago)0501[1 PRs](https://github.com/JastaFly/PHPdfer/pulls)MITPHP

Since Apr 16Pushed 2y ago2 watchersCompare

[ Source](https://github.com/JastaFly/PHPdfer)[ Packagist](https://packagist.org/packages/jasta-fly/phpdfer)[ RSS](/packages/jasta-fly-phpdfer/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

Phpdfer
=======

[](#phpdfer)

**Phpdfer** - this library on PHP, for modify metadata in PFD files.

For start work with this library You must create instance of class `PHPdfer`, and use method `changeMetadata()` for modify metadata in PDF files. This method accepts three arguments:

1. `$pdf` - path to PDF file in which You need change metadata;
2. `$arMetadata` - array with metadata in which need include in PDF file;
3. `$logMode` - enables the mode in which the output of the CLI command is saved to a log file.

`$arMetadata` can contained next elements:

- `TITLE` - title PDF file;
- `AUTHOR` - author of the PDF file;
- `SUBJECT` - short description content PDF file;
- `KEYWORDS` - keywords describing content PDF file;
- `MOD_DATE` - date modification PDF file;
- `CREATION_DATE` - date creation PDF file;
- `CREATOR` - creator PDF file.

After end work library will create new PDF file with prefix `phpdfer_`, when into it will change metadata specified in `$arMetadata`.

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

[](#installation)

```
composer require jasta-fly/phpdfer

```

Warning!
--------

[](#warning)

For work this library need install `Ghostscript` in You operating system. You can check is this program installed, running this command in CLI:

```
gs -v

```

if in response You get version installed `Ghostscrip` version:

```
GPL Ghostscript 9.55.0 (2021-09-27)
Copyright (C) 2021 Artifex Software, Inc.  All rights reserved.

```

this means that the program necessary for the library to work is installed, and You may continue use it. If you get next output:

```
gs: not found
```

this means that You must install `Ghostscrip` in Your operating system, before continue work.

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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

761d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

pdfpdf-metadata

### Embed Badge

![Health badge](/badges/jasta-fly-phpdfer/health.svg)

```
[![Health](https://phpackages.com/badges/jasta-fly-phpdfer/health.svg)](https://phpackages.com/packages/jasta-fly-phpdfer)
```

###  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)
