CodeIgniter Forums
Third party libraries - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: External Resources (https://forum.codeigniter.com/forumdisplay.php?fid=7)
+--- Forum: Addins (https://forum.codeigniter.com/forumdisplay.php?fid=13)
+--- Thread: Third party libraries (/showthread.php?tid=63464)



Third party libraries - Vitaly - 11-02-2015

Hi.
I use CI for many years, but have never used third party packages feature.
Can anyone explain to me the meaning of this feature.

For example, I want to add TCPDF to my project. I used to added it to applications/libraries.
Is this correct or should I used it from third_party forder?
Actually TCPDF is not a library - it's a package.

I searched for such examles, but again and again got arlicles like this: https://github.com/bcit-ci/CodeIgniter/wiki/TCPDF-Integration.

Has anyone used third party packages and how do you include them?


RE: Third party libraries - ciadmin - 11-02-2015

See http://www.codeigniter.com/user_guide/general/creating_libraries.html and perhaps http://www.codeigniter.com/user_guide/libraries/loader.html#application-packages


RE: Third party libraries - cartalot - 11-02-2015

related -- i have used the ci dompdf library for years and its awesome
https://github.com/iamfiscus/Codeigniter-DOMPDF

he has the dompdf folder in the third party folder - but thats up to you, just make certain the paths are pointing to the right place
if you look here, this is how he hooks up the dompdf library to codeigniter
https://github.com/iamfiscus/Codeigniter-DOMPDF/blob/master/libraries/dompdf_gen.php


RE: Third party libraries - Vitaly - 11-02-2015

(11-02-2015, 01:50 PM)ciadmin Wrote: See http://www.codeigniter.com/user_guide/general/creating_libraries.html and perhaps http://www.codeigniter.com/user_guide/libraries/loader.html#application-packages

Oh, I understood. Packages are CI projects rarther then library.


RE: Third party libraries - Vitaly - 11-02-2015

(11-02-2015, 03:29 PM)cartalot Wrote: related -- i have used the ci dompdf library for years and its awesome
https://github.com/iamfiscus/Codeigniter-DOMPDF

he has the dompdf folder in the third party folder - but thats up to you, just make certain the paths are pointing to the right place
if you look here, this is how he hooks up the dompdf library to codeigniter
https://github.com/iamfiscus/Codeigniter-DOMPDF/blob/master/libraries/dompdf_gen.php

As I see, you used the same way as I did - created a wrapper for the external library.

Thanks a lot for everyone.