Skip to content

[RFC] keep Revolt as namespace #5

Open

Description

@praswicaksono

Use Revolt as the base namespace instead of EventLoop so end users can reuse existing components (like amphp) that depend on the Revolt PHP ecosystem. End users only need to replace revolt/event-loop with ext-eventloop in their composer.json to make this extension a drop-in replacement.

In end user composer.json end user just need to replace implementation since the requirement already fulfilled with this extension

{
    "require": {
        "php": "^8.1",
        "ext-eventloop": "*"
    },
    "replace": {
        "revolt/event-loop": "*"
    }
}

Activity

  1. axcherednikov commented on Jun 4, 2026

    @axcherednikov
    Owner

    Hello!)

    The implementation can be replaced, but it should be done intentionally and manually.

    This library is not a polyfill like the ones Symfony provides. It is a native implementation that exposes an EventLoop API without relying on PHP userland code for the event loop itself. It is a very low-level implementation, intended to help build asynchronous applications without having to implement the event loop in PHP.

    Because of that, I do not see a reason to use replace here. In Symfony’s case, polyfills are written in PHP to make migration to newer PHP versions easier while waiting for new features to become available.

    Here, the correct approach is simply to migrate to this package directly, without replace.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions