Hi,
I am kind of new to fuel, trying to migrate our website to fuel.
We use a bunch of php library that don't use object oriented methodology (no classes defined).
What is the recommended way to add those to fuel?
Where should i put the php files?
I'd prefer to avoid putting them in the /public folder if possible (that worked). I've tried using packages, but so far it forced me to refactor the code to wrap functions with a classe and add namespace which i can't afford to do for 3rd party libraries (maybe i did something wrong).
some guidance would be appreciated (that doesn't require changing the library code).
thanks
If they are files that just contain procedural functions, you will have to install them in the global namespace to avoid the namespace issues. Which means somewhere in APPPATH.
To load them the best option would probably be a require() in your app bootstrap.php. We do the same in the framework with the few supporting functions in fuel/core/base.php, which is loading in the fuel/core/bootstrap.php.