You can make a laravel package that wraps the non-laravel package for easy use.
Add outside library package
I am trying to add Cloud Scorm library package to easily use cloud scorm api. I have added it to /app/classes/scorm folder. I then require_once in the config.php file from that folder which will call in a bunch of other files apart of the library. The issue I seem to be running into is the library sets an object named $CFG. Then in a method I will set global $CFG but when I try to call anything from $CFG i get a non object error. If I do a dd on CFG right after the global command it is null.
I have a hack work around where I just do a curl call to scorm folder I put in public but I know that is very bad practice.
I did not post any code as there is a lot in the library package and more in theory question.
What is bet way to include an outside library package and in this case use any objects or functions that package creates.
Thanks
Please or to participate in this conversation.