Skip to content

zemkogabor/php-file-service

Repository files navigation

PHP File Service

HTTP microservice written in PHP for handling files.

Features:

  • Upload files (default and chunk based)
  • Download files
  • Upload (chunk combine) complete webhook
  • API based access control
  • Generate image thumbnails with Imagick

TODO:

  • Failed job list api endpoint
  • Failed job webhook
  • Failed job retry (manual or auto)

Install

Requirements:

  • PHP (>8.1)
  • Nginx (>1.2)
  • PostgreSQL (>14)
  • RabbitMQ (>3)

Docker-compose

docker-compose up -d
docker-compose exec php composer install

Api

Docker

Build and push:

docker buildx build -t <your_registry>/php-file-service:<version> . --platform=linux/arm64,linux/amd64 --push

Useful scripts:

Linter

docker-compose exec php ./vendor/bin/php-cs-fixer fix --diff --dry-run --config .php-cs-fixer.php --verbose

Thank You

  • Special thanks to @dblaci for the technical support.

About

HTTP microservice written in PHP for handling files.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published