PHPackages                             justcoded/sample-file - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. justcoded/sample-file

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

justcoded/sample-file
=====================

Simple class to get sample file path of some real file for testing

v1.0.0(2y ago)010.8k↓35.7%PHPPHP &gt;=8.1.0

Since Nov 9Pushed 2y agoCompare

[ Source](https://github.com/justcoded/sample-file)[ Packagist](https://packagist.org/packages/justcoded/sample-file)[ Docs](https://justcoded.com/)[ RSS](/packages/justcoded-sample-file/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

Sample File
===========

[](#sample-file)

Simple classes to get real file sample for test purposes. May be used in phpunit tests for example.

Files were taken from public resources over internet.

Usage
-----

[](#usage)

```
use JustCoded\SampleFile\Image;
use JustCoded\SampleFile\Document;
use JustCoded\SampleFile\Sheet;

$imagePath = Image::make()
    ->png() // or jpg()
    ->medium()
    ->path();

$docPath = Document::make()
    ->docx()
    ->path();

$sheetPath = Sheet::make()
    ->xlsx()
    ->path();
```

Your IDE will help you with available methods and options :).

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community6

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

921d ago

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/justcoded-sample-file/health.svg)

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

###  Alternatives

[alexwenzel/nova-dependency-container

A Laravel Nova 4 form container for grouping fields that depend on other field values.

461.0M2](/packages/alexwenzel-nova-dependency-container)[micropackage/dochooks

DocHooks - annotated WordPress hooks

3762.4k3](/packages/micropackage-dochooks)[schmeits/filament-pan-analytics-widget

A widget for pan (lightweight and privacy-focused PHP product analytics library)

221.9k](/packages/schmeits-filament-pan-analytics-widget)

PHPackages © 2026

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