{"id":5893,"date":"2023-11-08T15:32:51","date_gmt":"2023-11-08T14:32:51","guid":{"rendered":"https:\/\/www.webhostingsrbija.rs\/?p=5893"},"modified":"2023-11-08T15:33:00","modified_gmt":"2023-11-08T14:33:00","slug":"windows-druga-php-verzija-i-composer","status":"publish","type":"post","link":"https:\/\/www.webhostingsrbija.rs\/en\/windows-druga-php-verzija-i-composer\/","title":{"rendered":"Windows another PHP version and Composer"},"content":{"rendered":"<p class=\"wp-block-paragraph\">In this short but effective article there is a command that will help you use a different php version than the basic one that is installed in windows and composer. <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>C:\\wamp64\\bin\\php\\php8.1.13\\php.exe C:\\ProgramData\\ComposerSetup\\bin\\composer.phar command...<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Here we see that we are using the PHP version from the wamp65 software, if the php version you want to use is in another folder, then adjust the first part. The second part should be the same for you.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The third part where the command is, it can be whatever you want, for example &quot;update&quot; or &quot;create-project&quot; means any further command in the composer itself. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If composer.phar is not there, you can find out through &quot;Environment variables&quot; when you type in start and immediately enter, then you will have the button &quot;Environment variables&quot; in &quot;System Variables&quot; (second column), find PATH written on the left side and go to edit there you will see where your composer folder is and then just add &quot;composer.phar&quot; at the end so that it looks like the command at the beginning. <\/p>","protected":false},"excerpt":{"rendered":"<p>U ovom kratkom ali efikasnom \u010dlanku se nalazi komanda koja \u0107e vam pomo\u0107i da koristite drugu php verziju od osnovne koja je u windowsu instlirana i composer. Ovde vidimo da koristimo PHP verziju iz wamp65 softvera, ukoliko se php verzija koju zelite da koristite nalazi u nekom drugom folderu onda prilagodite prvi deo. Drugi deo [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[18],"tags":[],"class_list":["post-5893","post","type-post","status-publish","format-standard","hentry","category-kako"],"_links":{"self":[{"href":"https:\/\/www.webhostingsrbija.rs\/en\/wp-json\/wp\/v2\/posts\/5893","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.webhostingsrbija.rs\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.webhostingsrbija.rs\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.webhostingsrbija.rs\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webhostingsrbija.rs\/en\/wp-json\/wp\/v2\/comments?post=5893"}],"version-history":[{"count":1,"href":"https:\/\/www.webhostingsrbija.rs\/en\/wp-json\/wp\/v2\/posts\/5893\/revisions"}],"predecessor-version":[{"id":5894,"href":"https:\/\/www.webhostingsrbija.rs\/en\/wp-json\/wp\/v2\/posts\/5893\/revisions\/5894"}],"wp:attachment":[{"href":"https:\/\/www.webhostingsrbija.rs\/en\/wp-json\/wp\/v2\/media?parent=5893"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webhostingsrbija.rs\/en\/wp-json\/wp\/v2\/categories?post=5893"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webhostingsrbija.rs\/en\/wp-json\/wp\/v2\/tags?post=5893"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}