What do you do with Composer.json in thinkphp?

Source: Internet
Author: User
{    "name": "topthink/thinkphp",    "description": "The thinkphp framework",    "type": "Framework",    " Keywords ": [" Framework "," thinkphp "," ORM "],    " homepage ":" http://thinkphp.cn/",    " license ":" Apache2 ",    " Authors ": [        {"            name ":" liu21st ",            " email ":" liu21st@gmail.com "        }    ],    " require ": {        " PHP ":" >=5.3.0 "    },    " minimum-stability ":" Dev "}

Above is the code for this file


Reply to discussion (solution)

This is the configuration file that was automatically found when executing composer install or composer require. Don't care about him.

This is the configuration file that was automatically found when executing composer install or composer require. Don't care about him.


Ask again composer install or composer require is to do what use?

It seems you are not familiar with composer. Composer is equivalent to the Yum or php pear under NPM or Linux, and his purpose is to solve the program dependencies.
For example: Composer Create-project Yiisoft/yii2-app-basic This is the download Yii2 Basic program template. This command first finds dependencies on packagist.org (including to download plugins and locations on GitHub, etc.) and then to github.com to find these programs to download. Composer Install, composer Create-project, composer require, composer license--format=json and so on, these are composer orders.

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.