Skip to content

Instantly share code, notes, and snippets.

@pmartin
Last active March 14, 2017 23:53
Show Gist options
  • Save pmartin/b34979fb4c33cc37ea8e8dbb6e2a853b to your computer and use it in GitHub Desktop.
Save pmartin/b34979fb4c33cc37ea8e8dbb6e2a853b to your computer and use it in GitHub Desktop.
A quick description of what I need (async PHP lib)

Hi,

I'm looking for a PHP library to write an async script.

Basically, I need to be able to, in async:

  • Do HTTP GET/POST requests
  • Log to files
  • Read from files
  • Log to console
  • Read/Write from/to some database (I haven't decided which yet, it could be MySQL, SQLite, Redis, Mongo...)
  • Do some action (like send an HTTP request + act on the result when it comes back) every X seconds -- it's OK if X is not 100% precise
  • Maybe: run external CLI applications

I was thinking about something like ReactPHP or maybe icicle.io.

Have you used an async PHP library recently?
Which one would you recommend?

Thanks in advance!
Pascal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment