Outils pour utilisateurs

Outils du site


informatique:laravel

Table des matières

Laravel

Laravel est un framework PHP.

Installation

On installe Laravel avec Composer :

$ composer global require laravel/installer

Cliquez pour afficher ⇲

Cliquez pour masquer ⇱

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!

Ensuite, il faut rajouter le dossier de composer dans le $PATH. On ajoute cette ligne dans le fichier ~/.bashrc :

export PATH="~/.config/composer/vendor/bin/:$PATH"

Pour vérifier :

$ source ~/.bashrc
$ laravel --version
Laravel Installer 4.1.1

Utilisation

informatique/laravel.txt · Dernière modification : 2020/11/25 13:49 de simon