> 개발 도구 > composer > 본문

고급 작성기 명령 소개

藏色散人
풀어 주다: 2021-03-30 17:27:14
앞으로
1759명이 탐색했습니다.

다음 튜토리얼 칼럼인 composer에서는 Composer 고급 명령어를 소개하는 글이 필요한 친구들에게 도움이 되길 바랍니다!

고급 작성기 명령 소개

composer 고급 명령

composer dumpautoload

프로젝트 작곡가 오토로더를 업데이트한 후. 인덱스를 로드하기 위해 작곡가 업데이트를 사용하지 마십시오(업데이트는 전체 프로젝트를 업데이트합니다). 이를 완료하려면 dumpautoload를 사용하십시오.

두 개의 매개변수 지원

--optimize (-o)
--no-dev
로그인 후 복사

composer는 의존적입니다

종속성 감지 참조 https://docs.phpcomposer.com/03-cli.html#dependents

composer show

사용 가능한 모든 소프트웨어 패키지 나열

$ composer show

doctrine/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 Elasticsearch
ezimuel/guzzlestreams              3.0.1   Fork of guzzle/streams (abandoned) to be used with elasticsearch-php
ezimuel/ringphp                    1.1.2   Fork of guzzle/RingPHP (abandoned) to be used with elasticsearch-php
filp/whoops                        2.9.1   php error handling for cool kids
graham-campbell/result-type        v1.0.1  An Implementation Of The Result Type
illuminate/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.
로그인 후 복사

특정 소프트웨어 패키지의 세부 정보 표시 package

$ composer show illuminate/database

name     : illuminate/database
descrip. : The Illuminate Database package.
keywords : database, laravel, orm, sql
versions : * v7.30.1
type     : library
license  : MIT License (MIT) (OSI approved) https://spdx.org/licenses/MIT.html#licenseText
source   : [git] https://github.com/illuminate/database.git 13ae12f444c9d071c6867cf86afd2fdedfd081ec
dist     : [zip] https://api.github.com/repos/illuminate/database/zipball/13ae12f444c9d071c6867cf86afd2fdedfd081ec 13ae12f444c9d071c6867cf86afd2fdedfd081ec
path     : E:\wamp\www\git\test\php\phptest\vendor\illuminate\database
names    : illuminate/database

autoload
psr-4
Illuminate\Database\ => .

requires
ext-json *
illuminate/container ^7.0
illuminate/contracts ^7.0
illuminate/support ^7.0
php ^7.2.5|^8.0
symfony/console ^5.0

suggests
doctrine/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 패키지 버전

>=1.2.3,<1.3(의미적 버전 관리를 따르는 프로젝트에 유용함)>=1.2.3,<2.0.
Instance Description
1.0.2 패키지의 정확한 버전 지정(덜 사용됨)
> ;= 1.0 또는 >= 1.0,<2.0범위는 && 파이프 기호|와의 논리적 관계를 나타내는 쉼표를 나타냅니다. 이는 or
1.0.*>=1.0 && < ~1.2.3
^1.2.3

위 내용은 고급 작성기 명령 소개의 상세 내용입니다. 자세한 내용은 PHP 중국어 웹사이트의 기타 관련 기사를 참조하세요!

관련 라벨:
원천:segmentfault.com
본 웹사이트의 성명
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.
인기 튜토리얼
더>
최신 다운로드
더>
웹 효과
웹사이트 소스 코드
웹사이트 자료
프론트엔드 템플릿
회사 소개 부인 성명 Sitemap
PHP 중국어 웹사이트:공공복지 온라인 PHP 교육,PHP 학습자의 빠른 성장을 도와주세요!