问题描述
我想知道如何最好地将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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!