Example Analysis of composer Advanced Command
This article will explain in detail the example analysis of composer advanced commands for you. The editor thinks it is very practical, so I share it for you as a reference. I hope you can get something after reading this article.
Composer advanced command
Composer dumpautoload
When the project composer autoloader is updated. Instead of using composer update to load the index (update updates the entire project), use dumpautoload to do it.
Two parameters are supported
-optimize (- o)-no-devcomposer depends
Detect dependencies reference https://docs.phpcomposer.com/03-cli.html#depends
Composer show
List all available software packages
$composer showdoctrine/inflector 2.0.3 PHP Doctrine Inflector is a small library that can perform string manip...doctrine/instantiator 1.4.0 A small Lightweight utility to instantiate objects in PHP without invo...elasticsearch/elasticsearch v7.10.0 PHP Client for Elasticsearchezimuel/guzzlestreams 3.0.1 Fork of guzzle/streams (abandoned) to be used with elasticsearch-phpezimuel/ringphp 1.1.2 Fork of guzzle/RingPHP (abandoned) to be used with elasticsearch-phpfilp/whoops 2.9.1 php error handling for cool kidsgraham-campbell/result-type V1.0.1 An Implementation Of The Result Typeilluminate/container v7.30.1 The Illuminate Container package.illuminate/contracts v7.30.1 The Illuminate Contracts package.illuminate/database v7.30.1 The Illuminate Database package.illuminate/support v7.30.1 The Illuminate Support package.
Display the details of a specific package
$composer show illuminate/databasename: illuminate/databasedescrip. : The Illuminate Database package.keywords: database, laravel, orm Sqlversions: * v7.30.1type: librarylicense: MIT License (MIT) (OSI approved) https://spdx.org/licenses/MIT.html#licenseTextsource: [git] https://github.com/illuminate/database.git 13ae12f444c9d071c6867cf86afd2fdedfd081ecdist: [zip] https://api.github.com/repos/illuminate/database/zipball/13ae12f444c9d071c6867cf86afd2fdedfd081ec 13ae12f444c9d071c6867cf86afd2fdedfd081ecpath: e:\ wamp\ www\ git\ test\ php\ phptest\ vendor\ illuminate\ databasenames: illuminate/databaseautoloadpsr-4Illuminate\ Database \ = >. Requiresext-json * illuminate/container ^ 7.0illuminate/contracts ^ 7.0illuminate/support ^ 7.0php ^ 7.2.5 | ^ 8.0symfony/console ^ 5.0suggestsdoctrine/dbal Required to rename columns and drop SQLite columns (^ 2.6). Fakerphp/faker Required to use the eloquent factory builder (^ 1.9.1). Illuminate/console Required to use the database commands (^ 7.0). Illuminate/events Required to use the observers with Eloquent (^ 7.0). Illuminate/filesystem Required to use the migrations (^ 7.0). Illuminate/pagination Required to paginate The result set (^ 7. 0). Symfony/finder Required to use Eloquent model factories (^ 5. 0). Composer package version instance description 1.0.2 specifies the exact version of the package (less used) > = 1.0 or > = 1.0 = 1.0 & &
< 1.1~1.2.3>= 1.2.3 and 1.2.3