congraph/filesystem

There is no license information available for the latest version (v2.0.3) of this package.

Maintainers

Package info

github.com/congraphcms/filesystem

pkg:composer/congraph/filesystem

Statistics

Installs: 189

Dependents: 5

Suggesters: 0

Stars: 0

Open Issues: 0

v2.0.3 2026-04-11 09:08 UTC

This package is auto-updated.

Last update: 2026-04-12 09:54:57 UTC


README

congraph/filesystem stores file metadata and provides file-serving and image-version behavior for Congraph content.

Responsibilities

  • file CRUD commands and validators
  • file metadata persistence
  • file serving
  • image version handlers
  • generated admin image variants

Installation

composer require congraph/filesystem

Laravel package provider:

Image handling

This package now uses maintained Intervention Image v3:

  • intervention/image
  • intervention/image-laravel

Current image handlers use coverDown() instead of the old fit() semantics to avoid upscaling smaller originals.

Typical usage

Use this package to:

  • create file records for uploaded content
  • fetch metadata for assets
  • serve originals and derived versions
  • attach files to EAV entities

Development

Install dependencies

cd /Users/nikolap/git/np/congraph/packages/filesystem
composer update -W

Run tests

composer test
composer test:pgsql

The package includes:

  • command tests
  • validator tests
  • image handler tests
  • integration tests for serving and file behavior

Contribution notes

  • verify behavior on both SQLite and PostgreSQL-backed suites
  • test image behavior explicitly when changing handler logic
  • keep file-serving routes and signed URLs compatible with laravel-api