PHPackages                             peterbenke/pb-fileinfo - 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. [File &amp; Storage](/categories/file-storage)
4. /
5. peterbenke/pb-fileinfo

ActiveTypo3-cms-extension[File &amp; Storage](/categories/file-storage)

peterbenke/pb-fileinfo
======================

Adds infos to linked files in your website (filetype and -size).

13.4.1(2mo ago)0218↓100%3[2 PRs](https://github.com/peterbenke/pb_fileinfo/pulls)GPL-2.0-or-laterPHP

Since Oct 30Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/peterbenke/pb_fileinfo)[ Packagist](https://packagist.org/packages/peterbenke/pb-fileinfo)[ Docs](https://www.typomotor.de)[ RSS](/packages/peterbenke-pb-fileinfo/feed)WikiDiscussions master Synced 1mo ago

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

TYPO3 Extension `pb_fileinfo`
=============================

[](#typo3-extension-pb_fileinfo)

Introduction
------------

[](#introduction)

This extension adds infos to linked files in your website (filetype and -size). For example: document.pdf (Pdf-file, 2.1 MB)

Administration
--------------

[](#administration)

### Installation

[](#installation)

Install this extension via composer

```
composer req peterbenke/pb-fileinfo

=> Then include the static Typoscript in your template

```

### Configuration

[](#configuration)

You can change the following values by the Constant-Editor:

- Wrap
- Write the fileinfo outside or within the a-tag

By default, the following file-extensions are considered:

- pdf
- doc
- xls
- zip
- mp3
- mp4

You can expand this list by typoscript. Here you see the whole typoscript, which comes from the extension:

```
tx_pb_fileinfo {

    enable = 1
    wrap = {$tx_pb_fileinfo.wrap}
    # inner: within the a-tag
    # outer: outside the a-tag
    mode = {$tx_pb_fileinfo.mode}
    fileInfos{
        # on the left-side: file-extension
        # %s is the placeholder for the filesize
        pdf = (Pdf-file, %s)
        doc = (Word-file, %s)
        xls = (Excel-file, %s)
        zip = (Zip-file, %s)
        mp3 = (MP3-file, %s)
        mp4 = (MP4-file, %s)
    }

}
[globalVar = GP:L=0]
    tx_pb_fileinfo {

        fileInfos{
            pdf = (Pdf-Datei, %s)
            doc = (Word-Datei, %s)
            xls = (Excel-Datei, %s)
            zip = (Zip-Datei, %s)
            mp3 = (MP3-Datei, %s)
            mp4 = (MP4-Datei, %s)
        }

    }
[global]
[globalVar = GP:L=1]
    tx_pb_fileinfo {

        fileInfos{
            pdf = (Pdf-file, %s)
            doc = (Word-file, %s)
            xls = (Excel-file, %s)
            zip = (Zip-file, %s)
            mp3 = (MP3-file, %s)
            mp4 = (MP4-file, %s)
        }

    }
[global]

```

%s is the placeholder for the calculated filesize.

Note: This is not the most beautiful way to distinguish between the languages, but there is more flexibility to add new file-extensions. You just have to adjust your ids from your sys-language-records.

###  Health Score

50

—

FairBetter than 95% of packages

Maintenance92

Actively maintained with recent releases

Popularity14

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity72

Established project with proven stability

 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 ~217 days

Recently: every ~271 days

Total

15

Last Release

73d ago

Major Versions

2.0.6 → v3.0.02019-11-25

v3.0.0 → 10.4.02021-09-18

10.4.0 → 11.5.02023-03-06

11.5.3 → 12.4.02024-10-30

12.4.0 → 13.4.02026-02-05

PHP version history (3 changes)v3.0.0PHP &gt;=7.2.0

11.5.0PHP &gt;=7.4.0

12.4.0PHP &gt;=8.1.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/7ece266539bdd77d1e59b382f97b16ceaaba4a7b9784cc8913d9afe267ad040f?d=identicon)[peterbenke](/maintainers/peterbenke)

---

Top Contributors

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

---

Tags

extensionfrontendtypo3fileinfofilesize

### Embed Badge

![Health badge](/badges/peterbenke-pb-fileinfo/health.svg)

```
[![Health](https://phpackages.com/badges/peterbenke-pb-fileinfo/health.svg)](https://phpackages.com/packages/peterbenke-pb-fileinfo)
```

###  Alternatives

[ichhabrecht/filefill

Find and fetch missing local files from different remotes

671.4M1](/packages/ichhabrecht-filefill)[hmmh/solr-file-indexer

Solr file indexer for Typo3

13217.4k3](/packages/hmmh-solr-file-indexer)

PHPackages © 2026

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