PHPackages                             amkdev/server-files - 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. amkdev/server-files

ActiveCraft-plugin

amkdev/server-files
===================

Craft CMS plugin to retrieve a list of files based on a specified webroot path and extracts file information.

1.0.0.0(4y ago)18MITPHP

Since Jun 10Pushed 4y ago1 watchersCompare

[ Source](https://github.com/amkdev/server-files)[ Packagist](https://packagist.org/packages/amkdev/server-files)[ RSS](/packages/amkdev-server-files/feed)WikiDiscussions main Synced 1w ago

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

[![Plugin Icon: A folder with a list and character i.](./src/icon.svg)](./src/icon.svg)

Server Files for Craft CMS 3.x
==============================

[](#server-files-for-craft-cms-3x)

Retrieve a list of files based on a specified folder path and extracts file information (optionally, currently onyl Exif image data)

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

[](#installation)

To install the plugin, follow these instructions.

1. Open your terminal and go to your Craft project:

```
cd /path/to/project

```

2. Then tell Composer to load the plugin:

```
composer require amkdev/server-files

```

3. In the Control Panel, go to Settings → Plugins and click the “Install” button for Server Files.

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

[](#introduction)

This little plugin retrieves a list of files based on a specified folder path.

This might be useful to you if

- You're running Craft 3.1 or above
- You need to retrieve files plus file information, not managed by Craft CMS, from a folder on your web server and return the output in Twig

Examples
--------

[](#examples)

### Output the jpg files of a directory and the Exif data title and caption

[](#output-the-jpg-files-of-a-directory-and-the-exif-data-title-and-caption)

Inside /uploads/images there are 3 image files:

```
22 Apr 22:54 image01.jpg
22 Apr 22:54 image02.jpg
22 Apr 22:54 icon.gif

```

In our Twig templates we set variables and give the server files a folder path for the search (required) and define (optionally) the information we need and regex pattern:

```
{% set settings =
    {
        path: 'uploads/images',
        pattern: '*.jpg',
        info: 'exif[title,caption]'
    }
%}
{% set images = craft.serverfiles.config(settings) %}

{% for image in images %}

{% endfor %}

```

Additionally you can use "full" {{ image.full }} to get the absolute path of a file.

This example Twig code would output:

```

```

If none of the configured Exif information is present, an empty string is returned for the data.

Disclaimer
----------

[](#disclaimer)

This plugin is distributed free of charge under the MIT License. The author is not responsible for any data loss or issues resulting from use of the plugin.

Special Thanks
--------------

[](#special-thanks)

This plugin is based on [GetFiles](https://github.com/amkdev/craft-getfiles) by You &amp; Me Digital. Thanks for the simple and easy starting base.

Additionally this plugin uses [PHPExif](https://github.com/PHPExif) by Tom Van Herreweghe.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

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

1803d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5300389?v=4)[Alexander M. Korn](/maintainers/amkdev)[@amkdev](https://github.com/amkdev)

---

Top Contributors

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

---

Tags

fileslistcmsCraftcraftcmscraft-plugin

### Embed Badge

![Health badge](/badges/amkdev-server-files/health.svg)

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

###  Alternatives

[nystudio107/craft-seomatic

SEOmatic facilitates modern SEO best practices &amp; implementation for Craft CMS 5. It is a turnkey SEO system that is comprehensive, powerful, and flexible.

1741.4M46](/packages/nystudio107-craft-seomatic)[verbb/image-resizer

Resize assets when they are uploaded.

127269.1k7](/packages/verbb-image-resizer)[topshelfcraft/supersort

...a super-duper sorting function for your Craft templates.

4287.1k1](/packages/topshelfcraft-supersort)[verbb/tablemaker

Create customizable and user-defined table fields.

40168.8k1](/packages/verbb-tablemaker)[verbb/hyper

A user-friendly links field for Craft.

24130.9k9](/packages/verbb-hyper)[verbb/social-poster

Automatically post entries to social media.

918.5k](/packages/verbb-social-poster)

PHPackages © 2026

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