Ceci est une ancienne révision du document !
Participalibre
Mise en place de l'environnement de développement
Composer
Installation
$ php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
$ 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');"
Il faut copier l'exécutable (composer.phar
) dans un dossier du $PATH.
$ sudo mv composer.phar /usr/bin/
J'ai rajouté un alias dans ~/.bash_aliases
:
alias composer='composer.phar'
Laravel
Installation
On installe Laravel avec Composer :
$ composer global require laravel/installer
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
Updating dependencies
Lock file operations: 12 installs, 0 updates, 0 removals
- Locking laravel/installer (v4.1.1)
- Locking psr/container (1.0.0)
- Locking symfony/console (v5.1.8)
- Locking symfony/polyfill-ctype (v1.20.0)
- Locking symfony/polyfill-intl-grapheme (v1.20.0)
- Locking symfony/polyfill-intl-normalizer (v1.20.0)
- Locking symfony/polyfill-mbstring (v1.20.0)
- Locking symfony/polyfill-php73 (v1.20.0)
- Locking symfony/polyfill-php80 (v1.20.0)
- Locking symfony/process (v5.1.8)
- Locking symfony/service-contracts (v2.2.0)
- Locking symfony/string (v5.1.8)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 12 installs, 0 updates, 0 removals
- Downloading symfony/polyfill-php80 (v1.20.0)
- Downloading symfony/process (v5.1.8)
- Downloading symfony/polyfill-mbstring (v1.20.0)
- Downloading symfony/polyfill-intl-normalizer (v1.20.0)
- Downloading symfony/polyfill-intl-grapheme (v1.20.0)
- Downloading symfony/polyfill-ctype (v1.20.0)
- Downloading symfony/string (v5.1.8)
- Downloading psr/container (1.0.0)
- Downloading symfony/service-contracts (v2.2.0)
- Downloading symfony/polyfill-php73 (v1.20.0)
- Downloading symfony/console (v5.1.8)
- Downloading laravel/installer (v4.1.1)
- 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-intl-normalizer (v1.20.0): Extracting archive
- Installing symfony/polyfill-intl-grapheme (v1.20.0): Extracting archive
- Installing symfony/polyfill-ctype (v1.20.0): Extracting archive
- Installing symfony/string (v5.1.8): Extracting archive
- Installing psr/container (1.0.0): Extracting archive
- Installing symfony/service-contracts (v2.2.0): Extracting archive
- Installing symfony/polyfill-php73 (v1.20.0): Extracting archive
- Installing symfony/console (v5.1.8): Extracting archive
- Installing laravel/installer (v4.1.1): Extracting archive
7 package suggestions were added by new dependencies, use `composer suggest` to see details.
Generating autoload files
10 packages you are using are looking for funding.
Use the `composer fund` command to find out more!