Outils pour utilisateurs

Outils du site


informatique:participalibre

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
informatique:participalibre [2020/11/25 13:40] – [Laravel] simoninformatique:participalibre [2020/11/25 14:38] (Version actuelle) – [Lancer le serveur localement] simon
Ligne 7: Ligne 7:
 ==== Composer ==== ==== Composer ====
  
-[[https://getcomposer.org/|Composer]] est le gestionnaire de package de [[PHP]].+[[Composer]] ([[https://getcomposer.org/|site officiel]]est le gestionnaire de package de [[PHP]].
  
-=== Installation ===+L'installation est détaillée sur la [[https://simonlefort.be/informatique:composer#installation|page dédiée]]. 
 + 
 +===== Laravel ===== 
 + 
 +[[Laravel]] ([[https://laravel.com/|site officiel]]) est le framework utilisé pour [[participalibre]].  
 + 
 +L'installation est détaillée sur la [[https://simonlefort.be/informatique:laravel#installation|page dédiée]]. 
 + 
 +===== Installer les dépendances de participalibre ===== 
 + 
 +==== PHP ==== 
 + 
 +Une fois [[composer]] et [[laravel]] installé, la doc propose d'installer les dépendances du projet. 
 + 
 +On clone le dossier de participalibre : 
 <code bash> <code bash>
-php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" +git clone https://framagit.org/participalibre/participalibre.git
-$ php -r "if (hash_file('sha384', 'composer-setup.php') === '756890a4488ce9024fc62c56153228907f1545c228516cbf63f885e036d37e9a59d27d63f46af1d4d07ee0f76181c7d3') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" +
-$ php composer-setup.php +
-$ php -r "unlink('composer-setup.php');"+
 </code> </code>
  
-Il faut copier l'exécutable (''composer.phar'') dans un dossier du $PATH.+On se place dans ce dossier et on lance l'installation des dépendances : 
 <code bash> <code bash>
-sudo mv composer.phar /usr/bin/+cd participalibre 
 +composer install
 </code> </code>
 +<hidden>
 +<code bash>
 +Installing dependencies from lock file (including require-dev)
 +Verifying lock file contents can be installed on current platform.
 +Your lock file does not contain a compatible set of packages. Please run composer update.
 +
 +  Problem 1
 +    - laravel/framework is locked to version v7.14.1 and an update of this package was not requested.
 +    - laravel/framework v7.14.1 requires ext-mbstring * -> it is missing from your system. Install or enable PHP's mbstring extension.
 +  Problem 2
 +    - league/commonmark is locked to version 1.4.3 and an update of this package was not requested.
 +    - league/commonmark 1.4.3 requires ext-mbstring * -> it is missing from your system. Install or enable PHP's mbstring extension.
 +  Problem 3
 +    - tijsverkoyen/css-to-inline-styles is locked to version 2.2.2 and an update of this package was not requested.
 +    - tijsverkoyen/css-to-inline-styles 2.2.2 requires ext-dom * -> it is missing from your system. Install or enable PHP's dom extension.
 +  Problem 4
 +    - facade/ignition is locked to version 2.0.6 and an update of this package was not requested.
 +    - facade/ignition 2.0.6 requires ext-mbstring * -> it is missing from your system. Install or enable PHP's mbstring extension.
 +  Problem 5
 +    - phar-io/manifest is locked to version 1.0.3 and an update of this package was not requested.
 +    - phar-io/manifest 1.0.3 requires ext-dom * -> it is missing from your system. Install or enable PHP's dom extension.
 +  Problem 6
 +    - phpunit/php-code-coverage is locked to version 7.0.10 and an update of this package was not requested.
 +    - phpunit/php-code-coverage 7.0.10 requires ext-dom * -> it is missing from your system. Install or enable PHP's dom extension.
 +  Problem 7
 +    - phpunit/phpunit is locked to version 8.5.5 and an update of this package was not requested.
 +    - phpunit/phpunit 8.5.5 requires ext-dom * -> it is missing from your system. Install or enable PHP's dom extension.
 +  Problem 8
 +    - scrivo/highlight.php is locked to version v9.18.1.1 and an update of this package was not requested.
 +    - scrivo/highlight.php v9.18.1.1 requires ext-mbstring * -> it is missing from your system. Install or enable PHP's mbstring extension.
 +  Problem 9
 +    - theseer/tokenizer is locked to version 1.1.3 and an update of this package was not requested.
 +    - theseer/tokenizer 1.1.3 requires ext-dom * -> it is missing from your system. Install or enable PHP's dom extension.
 +  Problem 10
 +    - laravel/framework v7.14.1 requires ext-mbstring * -> it is missing from your system. Install or enable PHP's mbstring extension.
 +    - facade/flare-client-php 1.3.2 requires illuminate/pipeline ^5.5|^6.0|^7.0 -> satisfiable by laravel/framework[v7.14.1].
 +    - facade/flare-client-php is locked to version 1.3.2 and an update of this package was not requested.
 +
 +To enable extensions, verify that they are enabled in your .ini files:
 +    - /etc/php/7.4/cli/php.ini
 +    - /etc/php/7.4/cli/conf.d/10-opcache.ini
 +    - /etc/php/7.4/cli/conf.d/10-pdo.ini
 +    - /etc/php/7.4/cli/conf.d/20-calendar.ini
 +    - /etc/php/7.4/cli/conf.d/20-ctype.ini
 +    - /etc/php/7.4/cli/conf.d/20-exif.ini
 +    - /etc/php/7.4/cli/conf.d/20-ffi.ini
 +    - /etc/php/7.4/cli/conf.d/20-fileinfo.ini
 +    - /etc/php/7.4/cli/conf.d/20-ftp.ini
 +    - /etc/php/7.4/cli/conf.d/20-gettext.ini
 +    - /etc/php/7.4/cli/conf.d/20-iconv.ini
 +    - /etc/php/7.4/cli/conf.d/20-json.ini
 +    - /etc/php/7.4/cli/conf.d/20-phar.ini
 +    - /etc/php/7.4/cli/conf.d/20-posix.ini
 +    - /etc/php/7.4/cli/conf.d/20-readline.ini
 +    - /etc/php/7.4/cli/conf.d/20-shmop.ini
 +    - /etc/php/7.4/cli/conf.d/20-sockets.ini
 +    - /etc/php/7.4/cli/conf.d/20-sysvmsg.ini
 +    - /etc/php/7.4/cli/conf.d/20-sysvsem.ini
 +    - /etc/php/7.4/cli/conf.d/20-sysvshm.ini
 +    - /etc/php/7.4/cli/conf.d/20-tokenizer.ini
 +You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.
 +</code>
 +</hidden>
  
-J'ai rajouté un alias dans ''~/.bash_aliases'' : +La ligne importante c'est 
 <code bash> <code bash>
-alias composer='composer.phar'+Your lock file does not contain a compatible set of packages. Please run composer update.
 </code> </code>
  
-===== Laravel =====+On lance donc ''composer update'' :  
 +<code bash> 
 +$ composer update 
 +</code> 
 +<hidden> 
 +<code bash> 
 +Loading composer repositories with package information 
 +Updating dependencies 
 +Your requirements could not be resolved to an installable set of packages.
  
-[[https://laravel.com/|Laravel]] est le framework utilisé pour [[participalibre]]. +  Problem 1 
 +    - laravel/framework[v7.0.0, ..., 7.x-dev] require ext-mbstring * -> it is missing from your system. Install or enable PHP's mbstring extension. 
 +    - Root composer.json requires laravel/framework ^7.0 -> satisfiable by laravel/framework[v7.0.0, ..., 7.x-dev].
  
-==== Installation ====+To enable extensions, verify that they are enabled in your .ini files: 
 +    - /etc/php/7.4/cli/php.ini 
 +    - /etc/php/7.4/cli/conf.d/10-opcache.ini 
 +    - /etc/php/7.4/cli/conf.d/10-pdo.ini 
 +    - /etc/php/7.4/cli/conf.d/20-calendar.ini 
 +    - /etc/php/7.4/cli/conf.d/20-ctype.ini 
 +    - /etc/php/7.4/cli/conf.d/20-exif.ini 
 +    - /etc/php/7.4/cli/conf.d/20-ffi.ini 
 +    - /etc/php/7.4/cli/conf.d/20-fileinfo.ini 
 +    - /etc/php/7.4/cli/conf.d/20-ftp.ini 
 +    - /etc/php/7.4/cli/conf.d/20-gettext.ini 
 +    - /etc/php/7.4/cli/conf.d/20-iconv.ini 
 +    - /etc/php/7.4/cli/conf.d/20-json.ini 
 +    - /etc/php/7.4/cli/conf.d/20-phar.ini 
 +    - /etc/php/7.4/cli/conf.d/20-posix.ini 
 +    - /etc/php/7.4/cli/conf.d/20-readline.ini 
 +    - /etc/php/7.4/cli/conf.d/20-shmop.ini 
 +    - /etc/php/7.4/cli/conf.d/20-sockets.ini 
 +    - /etc/php/7.4/cli/conf.d/20-sysvmsg.ini 
 +    - /etc/php/7.4/cli/conf.d/20-sysvsem.ini 
 +    - /etc/php/7.4/cli/conf.d/20-sysvshm.ini 
 +    - /etc/php/7.4/cli/conf.d/20-tokenizer.ini 
 +You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode. 
 +</code> 
 +</hidden>
  
-On installe [[Laravel]] avec [[Composer]] +Il manque manifestement "php-mbstring" 
 <code bash> <code bash>
-composer global require laravel/installer+sudo apt install php-mbstring 
 +</code> 
 + 
 +Il manque d'autres dépendances :  
 +<code bash> 
 +$ sudo apt install php-tijsverkoyen-css-to-inline-styles 
 +$ sudo apt install php-phar-io-manifest  
 +$ sudo apt install php-codecoverage 
 +$ sudo apt install phpunit 
 +</code> 
 + 
 +(Je pensais que [[Composer]] allait se charger d'installer tout ça ? Est-ce que je loupe une étape ?) 
 + 
 +On relance ''composer update'' :  
 +<code bash> 
 +$ composer update
 </code> </code>
 <hidden> <hidden>
 <code bash> <code bash>
-Changed current directory to /home/simon/.config/composer 
-Using version ^4.1 for laravel/installer 
-./composer.json has been created 
-Running composer update laravel/installer 
 Loading composer repositories with package information Loading composer repositories with package information
 Updating dependencies Updating dependencies
-Lock file operations: 12 installs, updates, 0 removals +Lock file operations: installs, 63 updates, 1 removal 
-  - Locking laravel/installer (v4.1.1) +  - Removing scrivo/highlight.php (v9.18.1.1) 
-  - Locking psr/container (1.0.0) +  - Upgrading brick/math (0.8.15 => 0.9.1) 
-  - Locking symfony/console (v5.1.8) +  - Upgrading doctrine/instantiator (1.3.1 => 1.4.0) 
-  - Locking symfony/polyfill-ctype (v1.20.0) +  - Upgrading dragonmantank/cron-expression (v2.3.0 => v2.3.1) 
-  - Locking symfony/polyfill-intl-grapheme (v1.20.0) +  - Upgrading egulias/email-validator (2.1.17 => 2.1.24) 
-  - Locking symfony/polyfill-intl-normalizer (v1.20.0) +  - Upgrading facade/flare-client-php (1.3.2 => 1.3.7) 
-  - Locking symfony/polyfill-mbstring (v1.20.0) +  - Upgrading facade/ignition (2.0.6 => 2.5.2) 
-  - Locking symfony/polyfill-php73 (v1.20.0) +  - Upgrading facade/ignition-contracts (1.0.0 => 1.0.2) 
-  - Locking symfony/polyfill-php80 (v1.20.0) +  - Upgrading fideloper/proxy (4.3.0 => 4.4.1) 
-  - Locking symfony/process (v5.1.8) +  - Upgrading filp/whoops (2.7.2 => 2.9.1) 
-  - Locking symfony/service-contracts (v2.2.0) +  - Upgrading guzzlehttp/guzzle (6.5.4 => 6.5.5) 
-  - Locking symfony/string (v5.1.8)+  - Upgrading guzzlehttp/promises (v1.3.1 => 1.4.0) 
 +  - Upgrading guzzlehttp/psr7 (1.6.1 => 1.7.0) 
 +  - Upgrading hamcrest/hamcrest-php (v2.0.0 => v2.0.1) 
 +  - Upgrading laravel/framework (v7.14.1 => v7.29.3) 
 +  - Upgrading laravel/tinker (v2.4.0 => v2.5.0) 
 +  - Upgrading league/commonmark (1.4.3 => 1.5.7) 
 +  - Upgrading league/flysystem (1.0.69 => 1.1.3
 +  - Locking league/mime-type-detection (1.5.1) 
 +  - Upgrading mockery/mockery (1.4.0 => 1.4.2) 
 +  - Upgrading monolog/monolog (2.1.0 => 2.1.1
 +  - Upgrading myclabs/deep-copy (1.9.5 => 1.10.2) 
 +  - Upgrading nesbot/carbon (2.35.0 => 2.41.5) 
 +  - Upgrading nikic/php-parser (v4.5.0 => v4.10.2) 
 +  - Upgrading nunomaduro/collision (v4.2.0 => v4.3.0) 
 +  - Upgrading opis/closure (3.5.3 => 3.6.1) 
 +  - Upgrading phpdocumentor/reflection-common (2.1.0 => 2.2.0) 
 +  - Upgrading phpdocumentor/reflection-docblock (5.1.0 => 5.2.2) 
 +  - Upgrading phpdocumentor/type-resolver (1.1.0 => 1.4.0) 
 +  - Upgrading phpoption/phpoption (1.7.3 => 1.7.5) 
 +  - Upgrading phpspec/prophecy (v1.10.3 => 1.12.1) 
 +  - Upgrading phpunit/phpunit (8.5.5 => 8.5.9) 
 +  - Upgrading ramsey/collection (1.0.1 => 1.1.1) 
 +  - Upgrading ramsey/uuid (4.0.1 => 4.1.1) 
 +  - Upgrading symfony/console (v5.1.0 => v5.1.8) 
 +  - Upgrading symfony/css-selector (v5.1.0 => v5.1.8) 
 +  - Upgrading symfony/deprecation-contracts (v2.1.2 => v2.2.0) 
 +  - Upgrading symfony/error-handler (v5.1.0 => v5.1.8) 
 +  - Upgrading symfony/event-dispatcher (v5.1.0 => v5.1.8) 
 +  - Upgrading symfony/event-dispatcher-contracts (v2.1.2 => v2.2.0) 
 +  - Upgrading symfony/finder (v5.1.0 => v5.1.8) 
 +  - Locking symfony/http-client-contracts (v2.3.1) 
 +  - Upgrading symfony/http-foundation (v5.1.0 => v5.1.8) 
 +  - Upgrading symfony/http-kernel (v5.1.0 => v5.1.8) 
 +  - Upgrading symfony/mime (v5.1.0 => v5.1.8) 
 +  - Upgrading symfony/polyfill-ctype (v1.17.0 => v1.20.0) 
 +  - Upgrading symfony/polyfill-iconv (v1.17.0 => v1.20.0) 
 +  - Upgrading symfony/polyfill-intl-grapheme (v1.17.0 => v1.20.0) 
 +  - Upgrading symfony/polyfill-intl-idn (v1.17.0 => v1.20.0) 
 +  - Upgrading symfony/polyfill-intl-normalizer (v1.17.0 => v1.20.0) 
 +  - Upgrading symfony/polyfill-mbstring (v1.17.0 => v1.20.0) 
 +  - Upgrading symfony/polyfill-php72 (v1.17.0 => v1.20.0) 
 +  - Upgrading symfony/polyfill-php73 (v1.17.0 => v1.20.0) 
 +  - Upgrading symfony/polyfill-php80 (v1.17.0 => v1.20.0) 
 +  - Upgrading symfony/process (v5.1.0 => v5.1.8) 
 +  - Upgrading symfony/routing (v5.1.0 => v5.1.8) 
 +  - Upgrading symfony/service-contracts (v2.1.2 => v2.2.0) 
 +  - Upgrading symfony/string (v5.1.0 => v5.1.8
 +  - Upgrading symfony/translation (v5.1.0 => v5.1.8) 
 +  - Upgrading symfony/translation-contracts (v2.1.2 => v2.3.0) 
 +  - Upgrading symfony/var-dumper (v5.1.0 => v5.1.8) 
 +  - Upgrading theseer/tokenizer (1.1.3 => 1.2.0) 
 +  - Upgrading tijsverkoyen/css-to-inline-styles (2.2.2 => 2.2.3) 
 +  - Upgrading vlucas/phpdotenv (v4.1.6 => v4.1.8) 
 +  - Upgrading voku/portable-ascii (1.5.1 => 1.5.6) 
 +  - Upgrading webmozart/assert (1.8.0 => 1.9.1)
 Writing lock file Writing lock file
 Installing dependencies from lock file (including require-dev) Installing dependencies from lock file (including require-dev)
-Package operations: 12 installs, 0 updates, 0 removals +Package operations: 98 installs, 0 updates, 0 removals 
-  - Downloading symfony/polyfill-php80 (v1.20.0+  - Downloading doctrine/inflector (2.0.3) 
-  - Downloading symfony/process (v5.1.8) +  - Downloading doctrine/lexer (1.2.1) 
-  - Downloading symfony/polyfill-mbstring (v1.20.0) +  - Downloading dragonmantank/cron-expression (v2.3.1) 
-  - Downloading symfony/polyfill-intl-normalizer (v1.20.0) +  - Downloading symfony/var-dumper (v5.1.8) 
-  - Downloading symfony/polyfill-intl-grapheme (v1.20.0) +  - Downloading psr/log (1.1.3) 
-  - Downloading symfony/polyfill-ctype (v1.20.0+  - Downloading monolog/monolog (2.1.1) 
-  - Downloading symfony/string (v5.1.8) +  - Downloading voku/portable-ascii (1.5.6) 
-  - Downloading psr/container (1.0.0) +  - Downloading phpoption/phpoption (1.7.5) 
-  - Downloading symfony/service-contracts (v2.2.0) +  - Downloading vlucas/phpdotenv (v4.1.8
-  - Downloading symfony/polyfill-php73 (v1.20.0) +  - Downloading symfony/css-selector (v5.1.8
-  - Downloading symfony/console (v5.1.8) +  - Downloading tijsverkoyen/css-to-inline-styles (2.2.3
-  - Downloading laravel/installer (v4.1.1)+  - Downloading symfony/deprecation-contracts (v2.2.0) 
 +  - Downloading symfony/routing (v5.1.8) 
 +  Downloading symfony/polyfill-php72 (v1.20.0) 
 +  - Downloading symfony/polyfill-intl-idn (v1.20.0) 
 +  - Downloading symfony/mime (v5.1.8
 +  - Downloading symfony/http-foundation (v5.1.8
 +  - Downloading symfony/http-client-contracts (v2.3.1
 +  - Downloading psr/event-dispatcher (1.0.0) 
 +  - Downloading symfony/event-dispatcher-contracts (v2.2.0
 +  - Downloading symfony/event-dispatcher (v5.1.8) 
 +  - Downloading symfony/error-handler (v5.1.8) 
 +  - Downloading symfony/http-kernel (v5.1.8) 
 +  - Downloading symfony/finder (v5.1.8
 +  - Downloading symfony/polyfill-iconv (v1.20.0
 +  - Downloading egulias/email-validator (2.1.24) 
 +  - Downloading swiftmailer/swiftmailer (v6.2.3) 
 +  - Downloading ramsey/collection (1.1.1) 
 +  - Downloading brick/math (0.9.1) 
 +  - Downloading ramsey/uuid (4.1.1) 
 +  - Downloading psr/simple-cache (1.0.1) 
 +  - Downloading opis/closure (3.6.1
 +  - Downloading symfony/translation-contracts (v2.3.0) 
 +  - Downloading symfony/translation (v5.1.8
 +  - Downloading nesbot/carbon (2.41.5) 
 +  - Downloading league/mime-type-detection (1.5.1) 
 +  - Downloading league/flysystem (1.1.3) 
 +  - Downloading league/commonmark (1.5.7
 +  - Downloading laravel/framework (v7.29.3) 
 +  - Downloading filp/whoops (2.9.1) 
 +  - Downloading facade/ignition-contracts (1.0.2) 
 +  - Downloading facade/flare-client-php (1.3.7) 
 +  - Downloading facade/ignition (2.5.2) 
 +  - Downloading fideloper/proxy (4.4.1) 
 +  - Downloading asm89/stack-cors (1.3.0) 
 +  - Downloading fruitcake/laravel-cors (v1.0.6) 
 +  - Downloading fzaninotto/faker (v1.9.1) 
 +  - Downloading ralouphie/getallheaders (3.0.3) 
 +  - Downloading psr/http-message (1.0.1) 
 +  - Downloading guzzlehttp/psr7 (1.7.0) 
 +  - Downloading guzzlehttp/promises (1.4.0) 
 +  - Downloading guzzlehttp/guzzle (6.5.5) 
 +  - Downloading nikic/php-parser (v4.10.2) 
 +  - Downloading dnoegel/php-xdg-base-dir (v0.1.1) 
 +  - Downloading psy/psysh (v0.10.4) 
 +  - Downloading laravel/tinker (v2.5.0) 
 +  - Downloading hamcrest/hamcrest-php (v2.0.1) 
 +  - Downloading mockery/mockery (1.4.2) 
 +  - Downloading nunomaduro/collision (v4.3.0) 
 +  - Downloading webmozart/assert (1.9.1) 
 +  - Downloading phpdocumentor/reflection-common (2.2.0) 
 +  - Downloading phpdocumentor/type-resolver (1.4.0) 
 +  - Downloading phpdocumentor/reflection-docblock (5.2.2) 
 +  - Downloading phpunit/php-token-stream (3.1.1) 
 +  - Downloading sebastian/version (2.0.1) 
 +  - Downloading sebastian/type (1.1.3) 
 +  - Downloading sebastian/resource-operations (2.0.1) 
 +  - Downloading sebastian/recursion-context (3.0.0) 
 +  - Downloading sebastian/object-reflector (1.1.1) 
 +  - Downloading sebastian/object-enumerator (3.0.3) 
 +  - Downloading sebastian/global-state (3.0.0) 
 +  - Downloading sebastian/exporter (3.1.2) 
 +  - Downloading sebastian/environment (4.2.3) 
 +  - Downloading sebastian/diff (3.0.2) 
 +  - Downloading sebastian/comparator (3.0.2) 
 +  - Downloading phpunit/php-timer (2.1.2) 
 +  - Downloading phpunit/php-text-template (1.2.1) 
 +  - Downloading phpunit/php-file-iterator (2.0.2) 
 +  - Downloading theseer/tokenizer (1.2.0) 
 +  - Downloading sebastian/code-unit-reverse-lookup (1.0.1) 
 +  - Downloading phpunit/php-code-coverage (7.0.10) 
 +  - Downloading doctrine/instantiator (1.4.0) 
 +  - Downloading phpspec/prophecy (1.12.1) 
 +  - Downloading phar-io/version (2.0.1) 
 +  - Downloading phar-io/manifest (1.0.3) 
 +  - Downloading myclabs/deep-copy (1.10.2) 
 +  - Downloading phpunit/phpunit (8.5.9) 
 +  - Installing doctrine/inflector (2.0.3): Extracting archive 
 +  - Installing doctrine/lexer (1.2.1): Extracting archive 
 +  - Installing dragonmantank/cron-expression (v2.3.1): Extracting archive
   - Installing symfony/polyfill-php80 (v1.20.0): Extracting archive   - Installing symfony/polyfill-php80 (v1.20.0): Extracting archive
-  - Installing symfony/process (v5.1.8): Extracting archive 
   - Installing symfony/polyfill-mbstring (v1.20.0): Extracting archive   - Installing symfony/polyfill-mbstring (v1.20.0): Extracting archive
 +  - Installing symfony/var-dumper (v5.1.8): Extracting archive
   - Installing symfony/polyfill-intl-normalizer (v1.20.0): Extracting archive   - Installing symfony/polyfill-intl-normalizer (v1.20.0): Extracting archive
   - Installing symfony/polyfill-intl-grapheme (v1.20.0): Extracting archive   - Installing symfony/polyfill-intl-grapheme (v1.20.0): Extracting archive
Ligne 84: Ligne 336:
   - Installing symfony/polyfill-php73 (v1.20.0): Extracting archive   - Installing symfony/polyfill-php73 (v1.20.0): Extracting archive
   - Installing symfony/console (v5.1.8): Extracting archive   - Installing symfony/console (v5.1.8): Extracting archive
-  - Installing laravel/installer (v4.1.1): Extracting archive +  - Installing psr/log (1.1.3): Extracting archive 
-7 package suggestions were added by new dependencies, use `composer suggest` to see details. +  - Installing monolog/monolog (2.1.1): Extracting archive 
-Generating autoload files +  - Installing voku/portable-ascii (1.5.6): Extracting archive 
-10 packages you are using are looking for funding.+  - Installing phpoption/phpoption (1.7.5): Extracting archive 
 +  - Installing vlucas/phpdotenv (v4.1.8): Extracting archive 
 +  - Installing symfony/css-selector (v5.1.8): Extracting archive 
 +  - Installing tijsverkoyen/css-to-inline-styles (2.2.3): Extracting archive 
 +  - Installing symfony/deprecation-contracts (v2.2.0): Extracting archive 
 +  - Installing symfony/routing (v5.1.8): Extracting archive 
 +  - Installing symfony/process (v5.1.8): Extracting archive 
 +  - Installing symfony/polyfill-php72 (v1.20.0): Extracting archive 
 +  - Installing symfony/polyfill-intl-idn (v1.20.0): Extracting archive 
 +  - Installing symfony/mime (v5.1.8): Extracting archive 
 +  - Installing symfony/http-foundation (v5.1.8): Extracting archive 
 +  - Installing symfony/http-client-contracts (v2.3.1): Extracting archive 
 +  - Installing psr/event-dispatcher (1.0.0): Extracting archive 
 +  - Installing symfony/event-dispatcher-contracts (v2.2.0): Extracting archive 
 +  - Installing symfony/event-dispatcher (v5.1.8): Extracting archive 
 +  - Installing symfony/error-handler (v5.1.8): Extracting archive 
 +  - Installing symfony/http-kernel (v5.1.8): Extracting archive 
 +  - Installing symfony/finder (v5.1.8): Extracting archive 
 +  - Installing symfony/polyfill-iconv (v1.20.0): Extracting archive 
 +  - Installing egulias/email-validator (2.1.24): Extracting archive 
 +  - Installing swiftmailer/swiftmailer (v6.2.3): Extracting archive 
 +  - Installing ramsey/collection (1.1.1): Extracting archive 
 +  - Installing brick/math (0.9.1): Extracting archive 
 +  - Installing ramsey/uuid (4.1.1): Extracting archive 
 +  - Installing psr/simple-cache (1.0.1): Extracting archive 
 +  - Installing opis/closure (3.6.1): Extracting archive 
 +  - Installing symfony/translation-contracts (v2.3.0): Extracting archive 
 +  - Installing symfony/translation (v5.1.8): Extracting archive 
 +  - Installing nesbot/carbon (2.41.5): Extracting archive 
 +  - Installing league/mime-type-detection (1.5.1): Extracting archive 
 +  - Installing league/flysystem (1.1.3): Extracting archive 
 +  - Installing league/commonmark (1.5.7): Extracting archive 
 +  - Installing laravel/framework (v7.29.3): Extracting archive 
 +  - Installing filp/whoops (2.9.1): Extracting archive 
 +  - Installing facade/ignition-contracts (1.0.2): Extracting archive 
 +  - Installing facade/flare-client-php (1.3.7): Extracting archive 
 +  - Installing facade/ignition (2.5.2): Extracting archive 
 +  - Installing fideloper/proxy (4.4.1): Extracting archive 
 +  - Installing asm89/stack-cors (1.3.0): Extracting archive 
 +  - Installing fruitcake/laravel-cors (v1.0.6): Extracting archive 
 +  - Installing fzaninotto/faker (v1.9.1): Extracting archive 
 +  - Installing ralouphie/getallheaders (3.0.3): Extracting archive 
 +  - Installing psr/http-message (1.0.1): Extracting archive 
 +  - Installing guzzlehttp/psr7 (1.7.0): Extracting archive 
 +  - Installing guzzlehttp/promises (1.4.0): Extracting archive 
 +  - Installing guzzlehttp/guzzle (6.5.5): Extracting archive 
 +  - Installing nikic/php-parser (v4.10.2): Extracting archive 
 +  - Installing dnoegel/php-xdg-base-dir (v0.1.1): Extracting archive 
 +  - Installing psy/psysh (v0.10.4): Extracting archive 
 +  - Installing laravel/tinker (v2.5.0): Extracting archive 
 +  - Installing hamcrest/hamcrest-php (v2.0.1): Extracting archive 
 +  - Installing mockery/mockery (1.4.2): Extracting archive 
 +  - Installing nunomaduro/collision (v4.3.0): Extracting archive 
 +  - Installing webmozart/assert (1.9.1): Extracting archive 
 +  - Installing phpdocumentor/reflection-common (2.2.0): Extracting archive 
 +  - Installing phpdocumentor/type-resolver (1.4.0): Extracting archive 
 +  - Installing phpdocumentor/reflection-docblock (5.2.2): Extracting archive 
 +  - Installing phpunit/php-token-stream (3.1.1): Extracting archive 
 +  - Installing sebastian/version (2.0.1): Extracting archive 
 +  - Installing sebastian/type (1.1.3): Extracting archive 
 +  - Installing sebastian/resource-operations (2.0.1): Extracting archive 
 +  - Installing sebastian/recursion-context (3.0.0): Extracting archive 
 +  - Installing sebastian/object-reflector (1.1.1): Extracting archive 
 +  - Installing sebastian/object-enumerator (3.0.3): Extracting archive 
 +  - Installing sebastian/global-state (3.0.0): Extracting archive 
 +  - Installing sebastian/exporter (3.1.2): Extracting archive 
 +  - Installing sebastian/environment (4.2.3): Extracting archive 
 +  - Installing sebastian/diff (3.0.2): Extracting archive 
 +  - Installing sebastian/comparator (3.0.2): Extracting archive 
 +  - Installing phpunit/php-timer (2.1.2): Extracting archive 
 +  - Installing phpunit/php-text-template (1.2.1): Extracting archive 
 +  - Installing phpunit/php-file-iterator (2.0.2): Extracting archive 
 +  - Installing theseer/tokenizer (1.2.0): Extracting archive 
 +  - Installing sebastian/code-unit-reverse-lookup (1.0.1): Extracting archive 
 +  - Installing phpunit/php-code-coverage (7.0.10): Extracting archive 
 +  - Installing doctrine/instantiator (1.4.0): Extracting archive 
 +  - Installing phpspec/prophecy (1.12.1): Extracting archive 
 +  - Installing phar-io/version (2.0.1): Extracting archive 
 +  - Installing phar-io/manifest (1.0.3): Extracting archive 
 +  - Installing myclabs/deep-copy (1.10.2): Extracting archive 
 +  - Installing phpunit/phpunit (8.5.9): Extracting archive 
 +package suggestions were added by new dependencies, use `composer suggest` to see details
 +Package fzaninotto/faker is abandoned, you should avoid using it. No replacement was suggested. 
 +Package phpunit/php-token-stream is abandoned, you should avoid using it. No replacement was suggested
 +Generating optimized autoload files 
 +> Illuminate\Foundation\ComposerScripts::postAutoloadDump 
 +> @php artisan package:discover --ansi 
 +Discovered Package: facade/ignition 
 +Discovered Package: fideloper/proxy 
 +Discovered Package: fruitcake/laravel-cors 
 +Discovered Package: laravel/tinker 
 +Discovered Package: nesbot/carbon 
 +Discovered Package: nunomaduro/collision 
 +Package manifest generated successfully. 
 +49 packages you are using are looking for funding.
 Use the `composer fund` command to find out more! Use the `composer fund` command to find out more!
 </code> </code>
 </hidden> </hidden>
 +
 +Et puis ''composer install''
 +<code bash>
 +composer install
 +</code>
 +<hidden>
 +<code bash>
 +Installing dependencies from lock file (including require-dev)
 +Verifying lock file contents can be installed on current platform.
 +Nothing to install, update or remove
 +Package fzaninotto/faker is abandoned, you should avoid using it. No replacement was suggested.
 +Package phpunit/php-token-stream is abandoned, you should avoid using it. No replacement was suggested.
 +Generating optimized autoload files
 +> Illuminate\Foundation\ComposerScripts::postAutoloadDump
 +> @php artisan package:discover --ansi
 +Discovered Package: facade/ignition
 +Discovered Package: fideloper/proxy
 +Discovered Package: fruitcake/laravel-cors
 +Discovered Package: laravel/tinker
 +Discovered Package: nesbot/carbon
 +Discovered Package: nunomaduro/collision
 +Package manifest generated successfully.
 +49 packages you are using are looking for funding.
 +Use the `composer fund` command to find out more!
 +</code>
 +</hidden>
 +
 +Et ''composer fund''
 +<code bash>
 +$ composer fund
 +</code>
 +<hidden>
 +<code bash>
 +The following packages were found in your dependencies which publish funding information:
 +
 +brick
 +  math
 +    https://tidelift.com/funding/github/packagist/brick/math
 +
 +doctrine
 +  inflector, instantiator, lexer
 +    https://www.doctrine-project.org/sponsorship.html
 +    https://www.patreon.com/phpdoctrine
 +  inflector
 +    https://tidelift.com/funding/github/packagist/doctrine%2Finflector
 +  instantiator
 +    https://tidelift.com/funding/github/packagist/doctrine%2Finstantiator
 +  lexer
 +    https://tidelift.com/funding/github/packagist/doctrine%2Flexer
 +
 +dragonmantank
 +  cron-expression
 +    https://github.com/sponsors/dragonmantank
 +
 +egulias
 +  email-validator
 +    https://github.com/sponsors/egulias
 +
 +facade
 +  flare-client-php
 +    https://github.com/sponsors/spatie
 +
 +fruitcake
 +  laravel-cors
 +    https://github.com/sponsors/barryvdh
 +
 +guzzlehttp
 +  guzzle
 +    https://github.com/sponsors/GrahamCampbell
 +    https://github.com/sponsors/Nyholm
 +    https://github.com/sponsors/alexeyshockov
 +    https://github.com/sponsors/gmponos
 +
 +league
 +  commonmark
 +    https://enjoy.gitstore.app/repositories/thephpleague/commonmark
 +    https://www.colinodell.com/sponsor
 +    https://www.paypal.me/colinpodell/10.00
 +    https://github.com/sponsors/colinodell
 +    https://www.patreon.com/colinodell
 +    https://tidelift.com/funding/github/packagist/league/commonmark
 +  flysystem
 +    https://offset.earth/frankdejonge
 +  flysystem, mime-type-detection
 +    https://github.com/sponsors/frankdejonge
 +    https://tidelift.com/funding/github/packagist/league/flysystem
 +
 +monolog
 +  monolog
 +    https://github.com/sponsors/Seldaek
 +    https://tidelift.com/funding/github/packagist/monolog/monolog
 +
 +myclabs
 +  deep-copy
 +    https://tidelift.com/funding/github/packagist/myclabs/deep-copy
 +
 +nesbot
 +  carbon
 +    https://opencollective.com/Carbon
 +    https://tidelift.com/funding/github/packagist/nesbot/carbon
 +
 +nunomaduro
 +  collision
 +    https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=66BYDWAT92N6L
 +    https://github.com/sponsors/nunomaduro
 +    https://www.patreon.com/nunomaduro
 +
 +phpoption
 +  phpoption
 +    https://github.com/sponsors/GrahamCampbell
 +    https://tidelift.com/funding/github/packagist/phpoption/phpoption
 +
 +phpunit
 +  php-code-coverage, php-file-iterator, php-text-template, php-timer, php-token-stream, phpunit
 +    https://github.com/sponsors/sebastianbergmann
 +  phpunit
 +    https://phpunit.de/donate.html
 +
 +ramsey
 +  collection, uuid
 +    https://github.com/sponsors/ramsey
 +  collection
 +    https://tidelift.com/funding/github/packagist/ramsey/collection
 +  uuid
 +    https://tidelift.com/funding/github/packagist/ramsey/uuid
 +
 +sebastian
 +  code-unit-reverse-lookup, comparator, diff, environment, exporter, global-state, object-enumerator, object-reflector, recursion-context, resource-operations, type, version
 +    https://github.com/sponsors/sebastianbergmann
 +
 +swiftmailer
 +  swiftmailer
 +    https://github.com/sponsors/fabpot
 +    https://tidelift.com/funding/github/packagist/swiftmailer/swiftmailer
 +
 +symfony
 +  console, css-selector, deprecation-contracts, error-handler, event-dispatcher, event-dispatcher-contracts, finder, http-client-contracts, http-foundation, http-kernel, mime, polyfill-ctype, polyfill-iconv, polyfill-intl-grapheme, polyfill-intl-idn, polyfill-intl-normalizer, polyfill-mbstring, polyfill-php72, polyfill-php73, polyfill-php80, process, routing, service-contracts, string, translation, translation-contracts, var-dumper
 +    https://symfony.com/sponsor
 +    https://github.com/sponsors/fabpot
 +    https://tidelift.com/funding/github/packagist/symfony/symfony
 +
 +theseer
 +  tokenizer
 +    https://github.com/sponsors/theseer
 +
 +vlucas
 +  phpdotenv
 +    https://github.com/sponsors/GrahamCampbell
 +    https://tidelift.com/funding/github/packagist/vlucas/phpdotenv
 +
 +voku
 +  portable-ascii
 +    https://www.paypal.me/moelleken
 +    https://github.com/sponsors/voku
 +    https://opencollective.com/portable-ascii
 +    https://www.patreon.com/voku
 +    https://tidelift.com/funding/github/packagist/voku/portable-ascii
 +
 +Please consider following these links and sponsoring the work of package authors!
 +Thank you!
 +</code>
 +</hidden>
 +
 +==== Front avec npm ====
 +<code bash>
 +$ npm install --dev
 +npm WARN install Usage of the `--dev` option is deprecated. Use `--include=dev` instead.
 +
 +added 1116 packages, and audited 1116 packages in 18s
 +
 +10 vulnerabilities (4 low, 6 high)
 +
 +To address all issues, run:
 +  npm audit fix
 +
 +Run `npm audit` for details.
 +</code>
 +
 +Donc, il vaut mieux utiliser cette commande : 
 +<code bash>
 +$ npm install --include=dev
 +</code>
 +
 +La commande conseille d'utiliser ''npm audit fix''
 +<code bash>
 +$ npm audit fix
 +
 +added 7 packages, removed 16 packages, changed 19 packages, and audited 1107 packages in 6s
 +
 +1 package is looking for funding
 +  run `npm fund` for details
 +
 +found 0 vulnerabilities
 +</code>
 +
 +Et aussi ''npm fund''
 +<code bash>
 +$ npm fund
 +participalibre
 +└── https://github.com/chalk/ansi-styles?sponsor=1
 +    └── ansi-styles@4.3.0
 +</code>
 +
 +===== Configuration de l'env Laravel =====
 +
 +On copie l'env par défaut : 
 +<code bash>
 +$ cp .env.example .env
 +</code>
 +
 +Et on génère une clé :
 +<code bash>
 +$ php artisan key:generate
 +Application key set successfully.
 +</code>
 +
 +===== Lancement du serveur =====
 +
 +==== Compiler le front-end ====
 +Il faudra compiler le code du front-end au préalable avec ''npm run dev'' (ou ''npm run build'' pour une installation en production).
 +<code bash>
 +$ npm run dev
 +</code>
 +
 +(Note: Pour travailler sur le front-end ''npm run watch'' est conseillé car le SCSS sera recompilé à chaque modification.)
 +
 +==== Lancer le serveur localement ====
 +<code bash>
 +$ php artisan serve
 +</code>
 +
 +Le site est accessible sur [[http://127.0.0.1:8000]] ou [[http://localhost:8000]].
 +
 +{{ :informatique:participalibre.png?400 |}}
informatique/participalibre.1606311646.txt.gz · Dernière modification : 2020/11/25 13:40 de simon