/fs-php

A minimal http api to upload/download/delete/list files.

Primary LanguagePHP

fs-php

A simple one-file PHP endpoint for pushing and pulling files via HTTP. It supports 4 basic operations:

  • Query for files with a certain prefix (like S3)
  • Upload a file by name
  • Fetch a file by name
  • Delete a file by name

The idea is similar to S3 - do not manage folders but just objects(files).

Features:

  • Very simple JSON-API
  • configurable authentication via HTBasic or JWT tokens
  • configurable authorization model similar Amazons IAM
    • Allow/Deny policies
    • Resource/Permission/User based matching
    • Complex Conditions based on per-request variables
  • Prometheus text-metrics support
  • No database needed - everything written to disk

This Repo