What does the ^ circumflex accent/caret/circumflex in the composer version number mean?

Source: Internet
Author: User
Encountered when using composer Mailgun.
"mailgun/mailgun-php": "^1.8"

I've encountered ^ this symbol before, but I haven't looked into it. The answer is now not found by searching.

Here (http://docs.phpcomposer.com/01-basic-usage.html) said the role of ~, but did not say ^ .

^Several of the names found:

    • Circumflex Accent

    • de-font

    • Circumflex (also referred to as Caron in some places other than Wikipedia)

But I do not know the function of this symbol. Especially on the software version number.

Ask.

Reply content:

Encountered when using composer Mailgun.
"mailgun/mailgun-php": "^1.8"

I've encountered ^ this symbol before, but I haven't looked into it. The answer is now not found by searching.

Here (http://docs.phpcomposer.com/01-basic-usage.html) said the role of ~, but did not say ^ .

^Several of the names found:

    • Circumflex Accent

    • de-font

    • Circumflex (also referred to as Caron in some places other than Wikipedia)

But I do not know the function of this symbol. Especially on the software version number.

Ask.

It's for the control version.
Detailed explanations are as follows:
Https://getcomposer.org/doc/articles/versions.md#caret
Example:
^1.2.3 means >=1.2.3 <2.0.0
^0.3 means >=0.3.0 <0.4.0

The first guess is the same as the regular symbol, indicatingmatch beginning of 1.8

Specifically, I'll look for ... Guessing errors

======================, look downstairs, =============================.

  • Related Article

    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.