Anyone around that knows whether there is ANY package around that implements an FTP server on top of react?

The results of my google foo as well as of a search on packagist are more ... well...

imagine a western, high noon right in front of the bar: and now remove the tumbleweed...

@reactphp that is!!!!

I have to upload files via FTP but would like to not put them into a filesystem but to handle them with a handler/middleware - So reactphp/http but for ftp... Might be too much....

@heiglandreas @reactphp ah gotcha! sounds like WebDAV might also work here
@evert Apart from the fact that the client that needs to use this app only understands FTP (don't ask! ๐Ÿคฆโ€โ™‚๏ธ ) @reactphp
@heiglandreas @evert @reactphp If you find such client, please lets us know because a filesystem adapter for FTP could be useful for others.
@wyri @heiglandreas @reactphp if you got a budget ill happily build something in Node that can forward to a HTTP endpoint =) #jobless
@evert @heiglandreas @reactphp Well I nether have a budget nor use case for FTP to be honest. But maybe @heiglandreas has a budget
@wyri @evert @reactphp I'd rather build something that- aftee going through a middleware-stack - invokes something that can then - amongst other possibilities - also use a filesystem ๐Ÿ˜
@heiglandreas @reactphp have you thought about using some AWS async stuff? It seems a perfect task for S3+SQS+lambda/Bref

@alessandrolai @reactphp I have a client that can only send ftp and I need the file - after a slight modification - as email attachment.

Yes , I might be able to use bref for that but that's similarily complex. And can I use lambdas for something else than HTTP? So far my impression was that that's kinda a requirement....

@heiglandreas @reactphp S3 has an FTP adapter. Then, you can hook a lambda function to a notification of something landing on S3: https://docs.aws.amazon.com/lambda/latest/dg/with-s3-example.html
Tutorial: Using an Amazon S3 trigger to invoke a Lambda function - AWS Lambda

In this tutorial, you use the console to create a Lambda function and configure a trigger for Amazon Simple Storage Service (Amazon S3). The trigger invokes your function every time that you add an object to your Amazon S3 bucket.

@alessandrolai Cool! Thanks. I definitely need to check that! Especialy as latency is not anissue at all!

But it's not @reactphp ...

@alessandrolai @heiglandreas @reactphp this ideia works without reactphp easily, but AWS SFTP for S3 costs about $250/m I think. If you need a staging server and a prod server, you're out $500/m for an SFTP protocol S3 Forwarding. I'd love to have it, but I refuse to pay that outrageous price
@heiglandreas a _server_ on top of react? Seems a bit like an apple and oranges thing?
@evert @heiglandreas Thatโ€™s what React helps you doโ€ฆbuild servers.
@ramsey i forgot there was something else in PHP called react.
@evert @ramsey and it even predates the frontend one!
@alessandrolai @ramsey yeah it would be silly to name something React after ;)
@evert Well.... React listenes on a port. And I'd rather have it listen on 21/22 than 80...
@heiglandreas I think those projects (i.e., #ReactPHP and #AMPHP) are waiting for the community to discover them and build out these solutions. Itโ€™s still very early for them. #PHP
@ramsey And FTP is.... shall we say .... legacy? ๐Ÿ™ˆ
@heiglandreas Youโ€™d have to go for the socket server and implement all the commands yourself.
@heiglandreas I started down this path for NNTP once upon a time, but I never finished.
@ramsey Yeah. I assumed this already! But thought I'd ask.... ๐Ÿ˜
@ramsey OTOH.... That sounds pretty interesting! I suddenly have an idea in my mind.... regarding colobus..... ๐Ÿ˜
@heiglandreas I did get most of the way on an initial implementation. I should post my code somewhere.
@heiglandreas found this one with a bit of searching
https://github.com/zhusaidong/FTPServer
GitHub - zhusaidong/FTPServer: PHP FTP server based on workerman

PHP FTP server based on workerman. Contribute to zhusaidong/FTPServer development by creating an account on GitHub.

GitHub
@heiglandreas I would love to have a PHP implementation of the FTP protocol to run on AWS Lambda forwarding file uploads straight to S3, in case you have it ๐Ÿ™‚