nuwber / rabbitevents

Nuwber's RabbitEvents provides a simple observer implementation, allowing you to publishing and handling for various events that occur in your applications. For example, if you need to react to some event occurred in another API.
MIT License
121 stars 36 forks source link

Can't install this package #49

Closed ThanhSonITNIC closed 4 years ago

ThanhSonITNIC commented 4 years ago

Run

composer require nuwber/rabbitevents

Then got error:

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for nuwber/rabbitevents ^4.3 -> satisfiable by nuwber/rabbitevents[v4.3].
    - nuwber/rabbitevents v4.3 requires ext-pcntl * -> the requested PHP extension pcntl is missing from your system.

  To enable extensions, verify that they are enabled in your .ini files:
    - C:\xampp\php\php.ini
  You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.

Installation failed, reverting ./composer.json to its original content.
masterjus commented 4 years ago

The package requires php-pcntl extension. https://www.php.net/manual/en/book.pcntl.php

If you're using Ubuntu you can just install it by command : sudo apt install php-pcntl