• laravel/laravel的composer.json


    name: The name of the package. It consists of vendor name and project name, separated by /

    description: A short description of the package. Usually this is just one line long

    keywords: An array of keywords that the package is related to. These can be used for searching and filtering

    license: The license of the package

    type: The type of the package, Package types are used for custom installation logic.
    project: This denotes a project rather than a library. For example application shells like the Symfony

    require: Lists packages required by this package

    require-dev: Lists packages required for developing this package, or running tests, etc. The dev requirements of the root package are installed by default

    autoload: Autoload mapping for a PHP autoloader.
    Currently PSR-0 autoloading, PSR-4 autoloading, classmap generation and files includes are supported.

    PSR-4: Under the psr-4 key you define a mapping from namespaces to paths, relative to the package root. Namespace prefixes must end in \

    Classmap:The classmap references are all combined, during install/update, into a single key => value array which may be found in the generated file vendor/composer/autoload_classmap.php

    autoload-dev: This section allows to define autoload rules for development purposes
    Classes needed to run the test suite should not be included in the main autoload rules to avoid polluting the autoloader in production and when other people use your package as a dependency

    scripts: Composer allows you to hook into various parts of the installation process through the use of scripts
    post-root-package-install: occurs after the root package has been installed, during the create-project command
    post-create-project-cmd: occurs after the create-project command has been executed
    post-install-cmd: occurs after the install command has been executed with a lock file present
    post-update-cmd: occurs after the update command has been executed, or after the install command has been executed without a lock file present

    config: A set of configuration options. It is only used for projects
    preferred-install: This option allows you to set the install method Composer will prefer to use

  • 相关阅读:
    今天下午去了佛山梁园——广东四大名园之一
    我眼中的Web2.0
    《花眼》观后感
    Implement SOAP services with the Zend Framework
    js 捕捉右键事件
    Zend Framework 第九节数据库操作学习总结
    PHP :time(),date(),mktime()日期与时间函数库{经常会忘却掉}
    zend_soap 实现 web service 用户验证
    php中DOMDocument简单用法(XML创建、添加、删除、修改)
    jquery 判断浏览器方法
  • 原文地址:https://www.cnblogs.com/qike/p/5784960.html
Copyright © 2020-2023  润新知