Is possible use PhpSpreadsheet inside of Joomla CMS?

458 views
Skip to first unread message

Mario Lacunza

unread,
Sep 7, 2018, 6:56:08 PM9/7/18
to Joomla! General Development
Im creating some new joomla components for a website, all of them need to work exporting data into Excel, so I think PhpSpreadsheet is a good library for that requirement, but how can I install it inside of joomla? in that way all my components can use that library. Like its using Composer for installation I dont know how to manage it inside Joomla or my compoments.

Mario Lacunza

unread,
Sep 11, 2018, 4:32:33 PM9/11/18
to Joomla! General Development
Hi,

any help with this?

Ove Eriksson

unread,
Sep 16, 2018, 11:33:38 PM9/16/18
to Joomla! General Development
You find an example of creating a Joomla library for Excel here: PHPExcel-Joomla-Library
Exchange the php code with this: PHPOffice/PhpSpreadsheet

Ove Eriksson

unread,
Sep 17, 2018, 4:28:33 PM9/17/18
to Joomla! General Development
I should mention that you have to include any required code. I need 3 namespaced libraries and one helper file to export and download a PHPOffice/PHPWord document. You also include the needed autoloaders.

The install creates a new directory in Joomlas library. (not vendor).

To use this in components you require and register the autoloaders in front of your code.

If it's a one time use you can of course skip the install step and use another method. I don't think it's possible to include it in Joomlas composer and autoloader in some way (for now?)

Mario Lacunza

unread,
Sep 20, 2018, 7:04:27 PM9/20/18
to joomla-de...@googlegroups.com
Hello,

Sorry for delay I was out of the city, thanks a lot for your asnswers, I'll check all.

Saludos / Best regards

Mario Lacunza
Email:: mlac...@gmail.com
Personal Website:: http://www.lacunza.biz/
Hosting:: http://mlv-host.com/
Skype: mlacunzav

Lima - Peru


--
You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-gene...@googlegroups.com.
To post to this group, send email to joomla-de...@googlegroups.com.
Visit this group at https://groups.google.com/group/joomla-dev-general.
For more options, visit https://groups.google.com/d/optout.

Ove Eriksson

unread,
Sep 22, 2018, 11:02:42 AM9/22/18
to Joomla! General Development

As it might be of general interest : Joomla & Composer




I would follow nibra's suggestion but then move the library/ies to Joomlas libraries folder. Preferable using a library installation package mentioned above. The big advantage - It's visible in the Joomla extension manager-  for you and anyone involved in the project - now and forever. And is uninstallable in the Extension manager.

joomla_extensions_manager.png




On Saturday, September 8, 2018 at 12:56:08 AM UTC+2, Mario Lacunza wrote:
Reply all
Reply to author
Forward
0 new messages