Is there any PHP package that's very similar to the Plugin API?
Drupal 8 Plugin API can be installed as a standalone package like follows:
composer require drupal/core-plugin
To make use of it you will have to develop a bunch of integration code.
Unfortunately there is no much documentation on how to use Drupal components without Drupal core.