PHPackages                             filepreviews/filepreviews - 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. filepreviews/filepreviews

ActiveLibrary[File &amp; Storage](/categories/file-storage)

filepreviews/filepreviews
=========================

PHP client library for FilePreviews.io

v1.0.1(10y ago)2036.0k↓46.7%3[1 issues](https://github.com/GetBlimp/filepreviews-php/issues)1MITPHP

Since Nov 10Pushed 9y ago2 watchersCompare

[ Source](https://github.com/GetBlimp/filepreviews-php)[ Packagist](https://packagist.org/packages/filepreviews/filepreviews)[ Docs](http://filepreviews.io)[ RSS](/packages/filepreviews-filepreviews/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (4)Used By (1)

FilePreviews.io
===============

[](#filepreviewsio)

PHP client library for the [FilePreviews.io](http://filepreviews.io) service. Generate image previews and metadata from almost any kind of file.

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

[](#installation)

```
composer require filepreviews/filepreviews

```

### Example code

[](#example-code)

```
$fp = new FilePreviews\FilePreviews([
  'api_key' => 'API_KEY_HERE',
  'api_secret' => 'API_KEY_HERE'
]);

$response = $fp->generate($url);
print_r($response);

$response = $fp->retrieve($response->id);
print_r($response);
```

#### Options

[](#options)

You can optionally send an options associative array.

```
$fp = new FilePreviews\FilePreviews([
  'api_key' => 'API_KEY_HERE',
  'api_secret' => 'API_KEY_HERE'
]);

$options = [
  'size' => [
    'width' => 250,
    'height' => 250
  ],
  'format' => 'jpg',
  'pages' => '1',
  'metadata' => ['exif', 'ocr', 'psd'],
  'data' => ['foo' => 'bar']
];

$response = $fp->generate($url, $options);
print_r($response);
```

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity36

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity65

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

Total

2

Last Release

3836d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/83319?v=4)[José Padilla](/maintainers/jpadilla)[@jpadilla](https://github.com/jpadilla)

---

Top Contributors

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

---

Tags

filepreviewsphpmetadatafileThumbnailsOCRexifpreviews

### Embed Badge

![Health badge](/badges/filepreviews-filepreviews/health.svg)

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

###  Alternatives

[league/flysystem

File storage abstraction for PHP

13.6k639.1M2.2k](/packages/league-flysystem)[league/flysystem-aws-s3-v3

AWS S3 filesystem adapter for Flysystem.

1.6k263.6M790](/packages/league-flysystem-aws-s3-v3)[knplabs/gaufrette

PHP library that provides a filesystem abstraction layer

2.5k39.8M123](/packages/knplabs-gaufrette)[knplabs/knp-gaufrette-bundle

Allows to easily use the Gaufrette library in a Symfony project

72428.6M91](/packages/knplabs-knp-gaufrette-bundle)[league/flysystem-local

Local filesystem adapter for Flysystem.

225231.8M39](/packages/league-flysystem-local)[league/flysystem-memory

In-memory filesystem adapter for Flysystem.

8533.6M194](/packages/league-flysystem-memory)

PHPackages © 2026

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