<p>To find the culprit, you could run a <code>composer show --tree</code> to see which plugin is using the dependency.</p>

<p>So far, I found two plugins using it :</p>

<ul>
<li>rias/craft-contact-form-extensions (1.1.6)</li>
<li>solspace/craft3-calendar (2.0.20)</li>
</ul>

<p>If you're using Solspace calendar, you should consider to upgrade to v3.
If you're using Rias Contact form extension, you can try to add the updated dependency to your composer.json file by running a <code>composer require nesbot/carbon</code>. It will fix the warning until the plugin is updated.</p>

CC BY-SA 4.0
2019-06-21T09:47:19.347Z
2019-06-21T09:47:19.347Z
Alban Jubert
<p>All Solspace plugins use some bit of the Carbon dependency so it's highly likely it might be something like Calendar and/or Freeform triggering this. As of last week, we've updated Freeform 2, Freeform 3 and Express Forms to use <code>^1.22.1|^2.19</code> for the requirement, and Calendar will receive the same update this week.</p>

<p>The issue is that Carbon 2 requires <strong>PHP 7.1.8+</strong> while Craft 3 requires <strong>PHP 7.0+</strong>. Carbon 1.x was recently deprecated, but by no means is it unsafe, unstable or risky to use, etc. If we changed it to force Carbon 2, anyone using PHP 7.0 wouldn't be able to use Freeform/Calendar, etc, so we've switched it to <code>^1.22.1|^2.19</code> as noted above, meaning that if your site happens to have PHP 7.1.8+ installed, it'll pull the 2.x version of Carbon instead, and you will no longer see the error.</p>

<p>If you happen to have PHP 7.0.x installed on your server, however, it'll always call Carbon 1 and always trigger the error, since there currently is no available version of Carbon that supports PHP 7.0 <em><strong>and</strong></em> is not deprecated.</p>

CC BY-SA 4.0
2020-02-20T10:02:48.623Z
Hello. I have this same Carbon 1 error, and I am running php 7.3.11. Is not enought to run Carbon 2 ?
Gfra54
CC BY-SA 4.0
2020-02-21T15:29:22.737Z
It might be that another plugin is using Carbon 1, and therefore forces Freeform/Calendar to use it as well. But we'd need to know more information before speculating further. :)
Solspace
CC BY-SA 4.0
2019-06-24T15:38:40.540Z
2019-06-24T15:38:40.540Z
Solspace
<p>One of the plugins you have installed is either directly including a Carbon 1 dependency (or indirectly via one of its dependencies).</p>

<p>Whatever is doing it should eventually update to using Carbon 2.</p>

CC BY-SA 4.0
2019-06-21T03:30:03.880Z
2019-06-21T03:30:03.880Z
Brad Bell
<p>Thank you both - It's Freeform 3 (Solspace notified)</p>

<p><a href="https://i.sstatic.net/1QiBv.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/1QiBv.png" alt="enter image description here"></a></p>

CC BY-SA 4.0
2019-06-22T05:07:45.760Z
2019-06-22T05:07:45.760Z
Nutmeg
<p>require add   "kylekatarnls/laravel-carbon-2": "^1.0.0",
        "nesbot/carbon": "2.0.0-beta.2 as 1.25.0"</p>

<p>composer update</p>

CC BY-SA 4.0
2019-11-04T14:48:13.977Z
2019-11-04T14:48:13.977Z
user10245
<p>Is anyone getting this when running a composer update command?</p>

<p>Local install: Craft CMS 3.1.31</p>

<pre><code>update --no-interaction --ansi
    Loading composer repositories with package information
    Updating dependencies (including require-dev)
    Nothing to install or update
    Generating optimized autoload files
    Carbon 1 is deprecated, see how to migrate to Carbon 2.
    https://carbon.nesbot.com/docs/#api-carbon-2
        You can run './vendor/bin/upgrade-carbon' to get help in updating carbon and other frameworks and libraries that depend on it.
    All packages for ./composer.json have been updated.
</code></pre>

<composer>
Carbon 1 is deprecated - migrate to Carbon 2
# Carbon 1 is deprecated - migrate to Carbon 2

(Asked by: username_0 on 2019-06-21)

Is anyone getting this when running a composer update command?
Local install: Craft CMS 3.1.31
update --no-interaction --ansi
    Loading composer repositories with package information
    Updating dependencies (including require-dev)
    Nothing to install or update
    Generating optimized autoload files
    Carbon 1 is deprecated, see how to migrate to Carbon 2.
    https://carbon.nesbot.com/docs/#api-carbon-2
        You can run './vendor/bin/upgrade-carbon' to get help in updating carbon and other frameworks and libraries that depend on it.
    All packages for ./composer.json have been updated.

**Tags:** composer


---

## 5 answers

### Answer by username_1 on 2019-06-21. Score: 6

To find the culprit, you could run a `composer show --tree` to see which plugin is using the dependency.

So far, I found two plugins using it :

* rias/craft-contact-form-extensions (1.1.6)
* solspace/craft3-calendar (2.0.20)

If you're using username_2 calendar, you should consider to upgrade to v3.
If you're using Rias Contact form extension, you can try to add the updated dependency to your composer.json file by running a `composer require nesbot/carbon`. It will fix the warning until the plugin is updated.


---

### Answer by username_2 on 2019-06-24. Score: 5

All username_2 plugins use some bit of the Carbon dependency so it's highly likely it might be something like Calendar and/or Freeform triggering this. As of last week, we've updated Freeform 2, Freeform 3 and Express Forms to use `^1.22.1|^2.19` for the requirement, and Calendar will receive the same update this week.

The issue is that Carbon 2 requires **PHP 7.1.8+** while Craft 3 requires **PHP 7.0+**. Carbon 1.x was recently deprecated, but by no means is it unsafe, unstable or risky to use, etc. If we changed it to force Carbon 2, anyone using PHP 7.0 wouldn't be able to use Freeform/Calendar, etc, so we've switched it to `^1.22.1|^2.19` as noted above, meaning that if your site happens to have PHP 7.1.8+ installed, it'll pull the 2.x version of Carbon instead, and you will no longer see the error.

If you happen to have PHP 7.0.x installed on your server, however, it'll always call Carbon 1 and always trigger the error, since there currently is no available version of Carbon that supports PHP 7.0 ***and*** is not deprecated.

> **Comments:**
> **username_3**: Hello. I have this same Carbon 1 error, and I am running php 7.3.11. Is not enought to run Carbon 2 ?  
> **username_2**: It might be that another plugin is using Carbon 1, and therefore forces Freeform/Calendar to use it as well. But we'd need to know more information before speculating further. :)  

---

### Answer by username_4 on 2019-06-21. Score: 2

One of the plugins you have installed is either directly including a Carbon 1 dependency (or indirectly via one of its dependencies).

Whatever is doing it should eventually update to using Carbon 2.


---

### Answer by username_0 on 2019-06-22. Score: 2

Thank you both - It's Freeform 3 (username_2 notified)

[![enter image description here](https://i.sstatic.net/1QiBv.png)](https://i.sstatic.net/1QiBv.png)


---

### Answer by username_5 on 2019-11-04. Score: 1

require add "kylekatarnls/laravel-carbon-2": "^1.0.0",
"nesbot/carbon": "2.0.0-beta.2 as 1.25.0"

composer update


---

