Looking to add a library

Permalink
How would I go about adding a library ( This one http://phpimageworkshop.com/ ) to Concrete 5?

File structure looks like this

C5/
libraries/
3rdparty/
PHPImageWorkshop/
Core/
Exception/
ImageWorkshop.php

Plus im not sure how to pull it in. I tried using C5 loader like this but i get nothing.
$ImageWorkshop = Loader::library('3rdparty/PHPImageWorkshop/ImageWorkshop');

jasongroulx
 
jbx replied on at Permalink Best Answer Reply
jbx
What you've done there is almost right - but you need to instantiate the class and use it:

Loader::library('3rdparty/PHPImageWorkshop/ImageWorkshop');
$imageWorkshop = new ImageWorkshop();


Make sense?

Jon
jasongroulx replied on at Permalink Reply
jasongroulx
Thanks for the reply. I had to change a line in the lib. I was not using namespaces, so I removed the line where is said namespace PHPImageWorkshop and it worked