CodeIgniter Forums
How to import Graphp in CI4 without composer - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: How to import Graphp in CI4 without composer (/showthread.php?tid=87258)



How to import Graphp in CI4 without composer - Vectorman - 03-31-2023

Dear colleagues!
Sorry for the noob question, I'm still learning.

I need to install the Graphp library in CI4. I can't use composer so I manually downloaded the library files and placed them in the "App/ThirdParty/Graphp" folder.
Inside my controller I wrote directive "use Graphp;"

After which in the code: 
$graph = new Graphp\Graph\Graph();

However, no matter what I do, I get an error: Class "Graphp\Graph\Graph" not found

I feel like I was wrong quite a bit. Please give me wise advice!