Use Yii2 Modules in 3rd Party Framework

I have a legacy/proprietary PHP Framework that slowly migrating to Yii/Craftcms. I have built a couple of custom modules in Yii2 that are working great. One of them is a calculation module that I am currently using curl to access it from the old framework. Is there a way for me to call this module as a class from within my old framework? I saw earlier posts about creating ActiveRecord objects in Yii from 3rd party systems, but I wasn’t sure if I could call an entire module from my old framework.

Thank you for the help!


You can create a ActiveRecord class on your new system, but you will need access to the database for it to work.