Difference between revisions of "Use Composer on our shared"

From EN Ikoula wiki
⧼vector-jumptonavigation⧽ ⧼vector-jumptosearch⧽
 
(22 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 +
<span data-link_translate_en_title="Use Composer on our shared"  data-link_translate_en_url="Use Composer on our shared"></span>[[:en:Use Composer on our shared]][[en:Use Composer on our shared]]
 +
<span data-link_translate_he_title="השתמש מלחין המשותפת שלנו"  data-link_translate_he_url="%D7%94%D7%A9%D7%AA%D7%9E%D7%A9+%D7%9E%D7%9C%D7%97%D7%99%D7%9F+%D7%94%D7%9E%D7%A9%D7%95%D7%AA%D7%A4%D7%AA+%D7%A9%D7%9C%D7%A0%D7%95"></span>[[:he:השתמש מלחין המשותפת שלנו]][[he:השתמש מלחין המשותפת שלנו]]
 +
<span data-link_translate_ro_title="Utilizaţi compozitor pe nostru comun"  data-link_translate_ro_url="Utiliza%C5%A3i+compozitor+pe+nostru+comun"></span>[[:ro:Utilizaţi compozitor pe nostru comun]][[ro:Utilizaţi compozitor pe nostru comun]]
 +
<span data-link_translate_ru_title="Используйте композитор на нашей общей"  data-link_translate_ru_url="%D0%98%D1%81%D0%BF%D0%BE%D0%BB%D1%8C%D0%B7%D1%83%D0%B9%D1%82%D0%B5+%D0%BA%D0%BE%D0%BC%D0%BF%D0%BE%D0%B7%D0%B8%D1%82%D0%BE%D1%80+%D0%BD%D0%B0+%D0%BD%D0%B0%D1%88%D0%B5%D0%B9+%D0%BE%D0%B1%D1%89%D0%B5%D0%B9"></span>[[:ru:Используйте композитор на нашей общей]][[ru:Используйте композитор на нашей общей]]
 +
<span data-link_translate_pl_title="Użyj kompozytor na nasze wspólne"  data-link_translate_pl_url="U%C5%BCyj+kompozytor+na+nasze+wsp%C3%B3lne"></span>[[:pl:Użyj kompozytor na nasze wspólne]][[pl:Użyj kompozytor na nasze wspólne]]
 +
<span data-link_translate_ja_title="我々 が共有の作曲家を使用します。"  data-link_translate_ja_url="%E6%88%91%E3%80%85+%E3%81%8C%E5%85%B1%E6%9C%89%E3%81%AE%E4%BD%9C%E6%9B%B2%E5%AE%B6%E3%82%92%E4%BD%BF%E7%94%A8%E3%81%97%E3%81%BE%E3%81%99%E3%80%82"></span>[[:ja:我々 が共有の作曲家を使用します。]][[ja:我々 が共有の作曲家を使用します。]]
 +
<span data-link_translate_ar_title="استخدم الملحن على جهودنا المشتركة"  data-link_translate_ar_url="%D8%A7%D8%B3%D8%AA%D8%AE%D8%AF%D9%85+%D8%A7%D9%84%D9%85%D9%84%D8%AD%D9%86+%D8%B9%D9%84%D9%89+%D8%AC%D9%87%D9%88%D8%AF%D9%86%D8%A7+%D8%A7%D9%84%D9%85%D8%B4%D8%AA%D8%B1%D9%83%D8%A9"></span>[[:ar:استخدم الملحن على جهودنا المشتركة]][[ar:استخدم الملحن على جهودنا المشتركة]]
 +
<span data-link_translate_zh_title="使用上我们共享的作曲家"  data-link_translate_zh_url="%E4%BD%BF%E7%94%A8%E4%B8%8A%E6%88%91%E4%BB%AC%E5%85%B1%E4%BA%AB%E7%9A%84%E4%BD%9C%E6%9B%B2%E5%AE%B6"></span>[[:zh:使用上我们共享的作曲家]][[zh:使用上我们共享的作曲家]]
 +
<span data-link_translate_de_title="Verwenden Sie Komponist auf unserer gemeinsamen"  data-link_translate_de_url="Verwenden+Sie+Komponist+auf+unserer+gemeinsamen"></span>[[:de:Verwenden Sie Komponist auf unserer gemeinsamen]][[de:Verwenden Sie Komponist auf unserer gemeinsamen]]
 
<span data-link_translate_nl_title="Gebruik onze gedeelde componist"  data-link_translate_nl_url="Gebruik+onze+gedeelde+componist"></span>[[:nl:Gebruik onze gedeelde componist]][[nl:Gebruik onze gedeelde componist]]
 
<span data-link_translate_nl_title="Gebruik onze gedeelde componist"  data-link_translate_nl_url="Gebruik+onze+gedeelde+componist"></span>[[:nl:Gebruik onze gedeelde componist]][[nl:Gebruik onze gedeelde componist]]
 
<span data-link_translate_it_title="Compositore di uso sul nostro comune"  data-link_translate_it_url="Compositore+di+uso+sul+nostro+comune"></span>[[:it:Compositore di uso sul nostro comune]][[it:Compositore di uso sul nostro comune]]
 
<span data-link_translate_it_title="Compositore di uso sul nostro comune"  data-link_translate_it_url="Compositore+di+uso+sul+nostro+comune"></span>[[:it:Compositore di uso sul nostro comune]][[it:Compositore di uso sul nostro comune]]
Line 6: Line 15:
 
<br />
 
<br />
  
This article has been created by an automatic translation software. You can view the article source [[:fr:Utilier Composer sur nos offres mutualisées|here]].<br /><span data-translate="fr"></span>
+
{{#seo:
 +
    |title=Use compose on our shared offers with the JSON
 +
    |titlemode=replace
 +
    |keywords=JSON
 +
    |description=Composer allows you to set up and update the libraries used in your PGP projects with a single JSON format file.
 +
    |og:type=article
 +
    |og:image=https://en-wiki.ikoula.com/resources/assets/logo_ikwiki.png
 +
   
 +
}}
 +
 
 +
==What si JSON ?==
 +
'''JSON''' (JavaScript Object Notation) is a textual data format derived from the notation of JavaScript language objects.JSON allows you to represent structured information as XML allows.
 +
If you stored data in a JavaScript objects, you can convert the object into JSON, and send it to a server, you can also convert any JSON received from the server into JavaScript
 +
JSON can makes it possible to store Javascript as text.
 +
 
 +
==The big strengths of JSON==
 +
* Considering it's a simple character string , JSON works in all environments and languages that can handle text.
 +
* JSON can be learned in 5 minutes, as its syntax is short to know.
 +
* JSON is less verbose, therefore lighter than the XML while remaining readable to humans.
 +
* JSON allows you to transmit all types of data (table, chain, whole, object...)
 +
* Since it is almost universal; it is very simple to dialogue from one language to another via JSON (PHP to Javascript is a common example)
 +
* JSON is lightweight format for storing and transporting data
 +
* JSON is used when data is ent from a server to a web page
 +
* JSON is self-describing and easy to understand
 +
 
  
 
Compose is now integrated with Plesk  (version 12.5 at the time of writing this tutorial, cf  [http://docs.plesk.com/en-US/12.5/administrator-guide/website-management/websites-and-domains/web-applications/managing-php-project-dependencies-with-composer.74969/ page associated with the site of Plesk])
 
Compose is now integrated with Plesk  (version 12.5 at the time of writing this tutorial, cf  [http://docs.plesk.com/en-US/12.5/administrator-guide/website-management/websites-and-domains/web-applications/managing-php-project-dependencies-with-composer.74969/ page associated with the site of Plesk])
Line 17: Line 50:
  
  
Simply put, call allows you to set up and update the libraries used in your PHP projects through a single JSON format file  : ''composer.JSON ''.
+
Simply put, call allows you to set up and update the libraries used in your PHP projects through a single JSON format file  : composer. JSON  
  
  
Line 29: Line 62:
  
  
You will find most of the PHP file composer.JSON  frameworks  (This is also the case for the various expaces projects PHP Github now ).
+
You will find most of the PHP file composer. JSON  frameworks  (This is also the case for the various expaces projects PHP Github now ).
  
  
The composer.JSON  file structure allows easy reading of the file and therefore can know what are the prerequisites necessary for the establishment of a framework or PHP project  (version of PHP, necessary libraries, etc.) :
+
The composer. JSON  file structure allows easy reading of the file and therefore can know what are the prerequisites necessary for the establishment of a framework or PHP project  (version of PHP, necessary libraries, etc.) :
[[File:Composer-01.png]]
+
[[File:Composer-01.png|center|Structur file]]
  
  
  So let's create a file  ''composer.json'' at the root of our service, in the directory  ''httpdocs'' as below  :
+
  So let's create a file  ''composer. json'' at the root of our service, in the directory  ''httpdocs'' as below  :
  
[[File:Composer-02.png]]
+
[[File:Composer-02.png|center|create file]]
  
Note that you can also create and edit file composer.json through your FTP client if you want.
+
Note that you can also create and edit file composer. json through your FTP client if you want.
  
  
 
We now edit the file to inform the prerequisites and the libraries we need for our project  :
 
We now edit the file to inform the prerequisites and the libraries we need for our project  :
  
[[File:Composer-03.png]]
+
[[File:Composer-03.png|center|Edit file Json]]
  
  
We must now ask cope to interpret the JSON file that was created. To do this, we will go to the tab  ''Applications'' and click on the button  ''Scan'' (ou ''Analyze '' Depending on the used language ) so that Plesk search any file  ''composer.json''.
+
We must now ask cope to interpret the JSON file that was created. To do this, we will go to the tab  ''Applications'' and click on the button  ''Scan'' (ou ''Analyze '' Depending on the used language ) so that Plesk search any file  ''composer. json''.
  
[[File:Composer-04.png]]
+
[[File:Composer-04.png|center|Scan file]]
  
  
 
Research being terminated, you should then see the presence of a new application  :
 
Research being terminated, you should then see the presence of a new application  :
  
[[File:Composer-05.png]]
+
[[File:Composer-05.png|center|new app]]
  
  
 
Then click on the name of your application to continue  :
 
Then click on the name of your application to continue  :
  
[[File:Composer-06.png]]
+
[[File:Composer-06.png|center|access app]]
  
  
 
Finally, it you just click on the button  ''Install Dependencies'' so compose repatriates your project dependencies  :
 
Finally, it you just click on the button  ''Install Dependencies'' so compose repatriates your project dependencies  :
  
[[File:Composer-07.png]]
+
[[File:Composer-07.png|center|1]]
  
  
 
Next the necessary dependencies, the establishment may be shorter or longer. You can also consult the progress by clicking on  "View the utility output " in the pop-up in the bottom right of your screen  :
 
Next the necessary dependencies, the establishment may be shorter or longer. You can also consult the progress by clicking on  "View the utility output " in the pop-up in the bottom right of your screen  :
  
[[File:Composer-08.png]]
+
[[File:Composer-08.png|center|2]]
  
  
 
Therefore, you will have something similar like this  :
 
Therefore, you will have something similar like this  :
  
[[File:Composer-09.png]]
+
[[File:Composer-09.png|center|3]]
  
  
 
Once the operation is complete, the file  ''vendor'' containing all the dependencies in your project will be created and complete  (If the operation is performed without a hitch, if applicable, you will be notified through the pop up located at the bottom right of your screen ) :
 
Once the operation is complete, the file  ''vendor'' containing all the dependencies in your project will be created and complete  (If the operation is performed without a hitch, if applicable, you will be notified through the pop up located at the bottom right of your screen ) :
  
[[File:Composer-10.png]]
+
[[File:Composer-10.png|center|4]]
  
  
 
You can then proceed to update dependencies returning in the application of your delivery tab and then click on the Update button dependencies as shown below :
 
You can then proceed to update dependencies returning in the application of your delivery tab and then click on the Update button dependencies as shown below :
  
[[File:Composer-11.png]]
+
[[File:Composer-11.png|center|5]]
  
  
  
[[Category:Shared_hosting]]
+
[[Category:Web Hosting]]
 
[[Category:Plesk]]
 
[[Category:Plesk]]
[[Category:Plesk_12.5]]
+
 
  
 
<br />
 
<br />
 
<comments />
 
<comments />

Latest revision as of 16:29, 23 January 2022

en:Use Composer on our shared he:השתמש מלחין המשותפת שלנו ro:Utilizaţi compozitor pe nostru comun ru:Используйте композитор на нашей общей pl:Użyj kompozytor na nasze wspólne ja:我々 が共有の作曲家を使用します。 ar:استخدم الملحن على جهودنا المشتركة zh:使用上我们共享的作曲家 de:Verwenden Sie Komponist auf unserer gemeinsamen nl:Gebruik onze gedeelde componist it:Compositore di uso sul nostro comune pt:Use o compositor na nossa compartilhada es:Uso Composer en nuestro compartido fr:Utilier Composer sur nos offres mutualisées

What si JSON ?

JSON (JavaScript Object Notation) is a textual data format derived from the notation of JavaScript language objects.JSON allows you to represent structured information as XML allows. If you stored data in a JavaScript objects, you can convert the object into JSON, and send it to a server, you can also convert any JSON received from the server into JavaScript JSON can makes it possible to store Javascript as text.

The big strengths of JSON

  • Considering it's a simple character string , JSON works in all environments and languages that can handle text.
  • JSON can be learned in 5 minutes, as its syntax is short to know.
  • JSON is less verbose, therefore lighter than the XML while remaining readable to humans.
  • JSON allows you to transmit all types of data (table, chain, whole, object...)
  • Since it is almost universal; it is very simple to dialogue from one language to another via JSON (PHP to Javascript is a common example)
  • JSON is lightweight format for storing and transporting data
  • JSON is used when data is ent from a server to a web page
  • JSON is self-describing and easy to understand


Compose is now integrated with Plesk (version 12.5 at the time of writing this tutorial, cf page associated with the site of Plesk)


In fact, it is now quick and easy to install the dependencies to yor r projects.


If you do not know call, you can find more information on the official : https://getcomposer.org/


Simply put, call allows you to set up and update the libraries used in your PHP projects through a single JSON format file : composer. JSON


Relevant libraries are retrieved from the site https://packagist.org/ and the implementation of the dependencies is therefore quick and convenient.


If you use dial to your different developments, you gold-and-already know its operation.


In this tutorial we will see how to use call from Plesk.


You will find most of the PHP file composer. JSON frameworks (This is also the case for the various expaces projects PHP Github now ).


The composer. JSON file structure allows easy reading of the file and therefore can know what are the prerequisites necessary for the establishment of a framework or PHP project (version of PHP, necessary libraries, etc.) :

Structur file


So let's create a file  composer. json at the root of our service, in the directory  httpdocs as below  :
create file

Note that you can also create and edit file composer. json through your FTP client if you want.


We now edit the file to inform the prerequisites and the libraries we need for our project :

Edit file Json


We must now ask cope to interpret the JSON file that was created. To do this, we will go to the tab Applications and click on the button Scan (ou Analyze Depending on the used language ) so that Plesk search any file composer. json.

Scan file


Research being terminated, you should then see the presence of a new application :

new app


Then click on the name of your application to continue :

access app


Finally, it you just click on the button Install Dependencies so compose repatriates your project dependencies :

1


Next the necessary dependencies, the establishment may be shorter or longer. You can also consult the progress by clicking on "View the utility output " in the pop-up in the bottom right of your screen :

2


Therefore, you will have something similar like this :

3


Once the operation is complete, the file vendor containing all the dependencies in your project will be created and complete (If the operation is performed without a hitch, if applicable, you will be notified through the pop up located at the bottom right of your screen ) :

4


You can then proceed to update dependencies returning in the application of your delivery tab and then click on the Update button dependencies as shown below :

5




You are not allowed to post comments.