Hello, friends! I have plugin and PHP library named RedBeanPHP (redbeanphp.com). I need to connect this library to my plugin class, but BaseClassLoader don't find the class R (see on the screenshots). Can you help me? P.S Sorry for my english, i'm from Germany.
you need to shade the lib namespaces into (basenamespace)/(original namespace) the R class is not found thus the error also try not to use forks, most people here dont like it
Refactor the library such that the classes declared by the library are you going n your plugin namespace, as stated in PQRS v1.1 section 1. If it's too inconvenient for you, fork and convert the library into a virion. If you insist to include the file directly, use an absolute path: PHP: require_once $plugin->getFile() . "/src/rb.php";
There is no direct "convert" button. You may consult the Virion Documentation at https://poggit.pmmp.io/virion for reference on how to develop a virion.