如何在Joomla中安装PHPSpreadsheet [英] How to Install PHPSpreadsheet in Joomla

查看:101
本文介绍了如何在Joomla中安装PHPSpreadsheet的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道如何最好地将PHPSpreadsheet合并到Joomla中!共享主机上的应用程序.

I'm wondering how to best incorporate PHPSpreadsheet into Joomla! applications, on shared hosting.

使用PHPExcel,您只需上载了库.

With PHPExcel, you just uploaded the library.

PHPSpreadsheet使用的是Composer,这对我来说是新手,但看起来很简单.但是,我看到了Joomla!包括它来管理核心中的依赖项,但不发布composer.json文件,而是提交/vendor子文件夹.

PHPSpreadsheet is using Composer, which is new to me, but looks straightforward enough. However, I see Joomla! includes it to manage dependencies in the core, but does not publish the composer.json file, and commits the /vendor subfolder.

有关安全添加PHPSpreadsheet的最佳方法的任何建议,以供Joomla使用!扩展,而不会弄乱Joomla!核心?

Any advice on the best way to safely add PHPSpreadsheet so its available to Joomla! extensions, without messing up Joomla! core?

推荐答案

使用

JLoader::registerNamespace('PhpOffice', $pathToPhpOffice);

这篇关于如何在Joomla中安装PHPSpreadsheet的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆