<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
<div name="messageBodySection">
<div dir="auto">Hi,<br /></div>
<ol type="1">
<li>When creating composer.json you’re inserting all the dependencies and you can lock versions of the libraries you are importing. Also look at PSR 4 for namespaces: in the same composer.json you define the namespace for your app.</li>
<li>Yup, I’d leave it upon admin the decision to update. Vtiger can advise and don’t proceed with update with dependencies aren’t met.</li>
<li>If core depends on something that you need to import/install how can you proceed with installation/update? In other projects when you install through composer it handles dependencies and proceeds to install. May be also vtiger should create it’s composer install?</li>
<li>Composer doesn’t needs to be installed globally, if the user who downloads composer has RWX access he can launch composer and download the dependencies, which are PHP code and binary files. These may require some components that are missing in the standard php installation (ie. ioncube), so this is upon the single user.</li>
</ol>
<div dir="auto"><br />
Since we are talking about composer, what exactly do you want to do?<br />
<br />
You mentioned npm, are you guy’s touching frontend and migrating/integrating vue or some other library?</div>
</div>
<div name="messageSignatureSection"><br />
<div class="matchFont"><font color="#C6C6C6"><b><span style="">Sukhdev Mohan</span></b></font><span style=""></span><br />
<font color="#999999"><b><span style="">Developer</span></b></font><br /></div>
</div>
<div name="messageReplySection">On 23 Jul 2021, 16:39 +0200, Prasad <prasad@vtiger.com>, wrote:<br />
<blockquote type="cite" style="border-left-color: grey; border-left-width: thin; border-left-style: solid; margin: 5px 5px;padding-left: 10px;">
<div dir="ltr">
<div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Team,</div>
<div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br /></div>
<div class="gmail_default" style="font-family:arial,helvetica,sans-serif">I know I'm too late on this thread - did some homework using composer</div>
<div class="gmail_default" style="font-family:arial,helvetica,sans-serif">and npm packages got some questions that need assistance:</div>
<div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br /></div>
<div class="gmail_default" style="font-family:arial,helvetica,sans-serif">1. With composer  - we are not expected to package the dependencies?</div>
<div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Would admin expected to (composer install) command-line and then launch the install.php?</div>
<div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br /></div>
<div class="gmail_default" style="font-family:arial,helvetica,sans-serif">2. When a package need update in subsequent version of Vtiger</div>
<div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Would admin be expected to (composer update) command-line and then launch the migration.php?</div>
<div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br /></div>
<div class="gmail_default" style="font-family:arial,helvetica,sans-serif">
<div class="gmail_default">3. What if composer fails with unmet / unavailable packages - should install.php or </div>
<div class="gmail_default">migration.php check if all dependencies was installed?</div>
<div class="gmail_default"><br /></div>
<div class="gmail_default">4. How would composer work on hosting providers (who provide Cpanel or FTP) based site management?</div>
<div class="gmail_default"><br /></div>
<div class="gmail_default">Regards,<br />
Prasad</div>
</div>
<div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br /></div>
</div>
<br />
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Tue, Aug 13, 2013 at 2:47 AM Adam Heinz <<a href="mailto:amh@metricwise.net">amh@metricwise.net</a>> wrote:<br /></div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr">
<div>Has anyone on the vtiger team looked into the use of Composer to supply dependencies?  It would certainly make things a little more flexible, reduce the size of the download, and discourage the light hacking that tends to go on when you have the code checked into the main development branch.</div>
<div><br /></div>
<a href="http://getcomposer.org/" target="_blank">http://getcomposer.org/</a><br />
<div><br /></div>
<div>I recently wired our systems up to use it to pull in the Sauce Labs "sausage" Selenium web driver for our automated tests.  Doing a bit more research, it seems to be the <i>de facto</i> replacement for PEAR these days.</div>
</div>
_______________________________________________<br />
<a href="http://www.vtiger.com/" rel="noreferrer" target="_blank">http://www.vtiger.com/</a></blockquote>
</div>
_______________________________________________<br />
http://www.vtiger.com/<br /></blockquote>
</div>
</body>
</html>