# It's possible to use C# in cakephp 2.x?

**URL:** <https://discourse.cakephp.org/t/its-possible-to-use-c-in-cakephp-2-x/10057>\
**Category:** Plugins\
**Created:** [January 7, 2022, 3:15am UTC](https://discourse.cakephp.org/t/its-possible-to-use-c-in-cakephp-2-x/10057 "2022-01-07T03:15:31Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![bigcouve](https://avatars.discourse-cdn.com/v4/letter/b/7993a0/32.png) [@bigcouve](https://discourse.cakephp.org/u/bigcouve)\
**Post date:** [January 7, 2022, 3:15am UTC](https://discourse.cakephp.org/t/its-possible-to-use-c-in-cakephp-2-x/10057/1 "2022-01-07T03:15:31Z")

</div>

I would like to know if it’s possible use C# with cakephp 2.x, if yes, how?

---

<div class="post-metadata">

**Author:** ![Zuluru](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/zuluru/32/1230_2.png) [@Zuluru](https://discourse.cakephp.org/u/Zuluru)\
**Post date:** [January 7, 2022, 4:55am UTC](https://discourse.cakephp.org/t/its-possible-to-use-c-in-cakephp-2-x/10057/2 "2022-01-07T04:55:42Z")

</div>

In general, no. It’s not really anything to do with CakePHP, but rather PHP. I’ve done a bit in the past using [PHP’s COM interface](https://www.php.net/manual/en/ref.com.php), I believe you can write COM objects with C#. [And here](https://www.peachpie.io/2019/02/using-c-in-php-and-vice-versa.html) is an article about using C# in PHP. I’m not sure if it’s Windows-specific or not.

---

<div class="post-metadata">

**Author:** ![KevinPfeifer](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/kevinpfeifer/32/3365_2.png) [@KevinPfeifer](https://discourse.cakephp.org/u/KevinPfeifer)\
**Post date:** [January 8, 2022, 7:08pm UTC](https://discourse.cakephp.org/t/its-possible-to-use-c-in-cakephp-2-x/10057/3 "2022-01-08T19:08:01Z")

</div>

@bigcouve I am legaly obliged to inform you that CakePHP 2 is EOL and will not get any further development or security fixes. So if you plan on creating a new app you should start with current CakePHP 4

---

<div class="post-metadata">

**Author:** ![bigcouve](https://avatars.discourse-cdn.com/v4/letter/b/7993a0/32.png) [@bigcouve](https://discourse.cakephp.org/u/bigcouve)\
**Post date:** [January 10, 2022, 1:05am UTC](https://discourse.cakephp.org/t/its-possible-to-use-c-in-cakephp-2-x/10057/4 "2022-01-10T01:05:28Z")

</div>

Thank you Zuluru, i get upset that there is no native support, since c# is the closest thing to web development to c++, the language I like so much. I hope you have a great day!

---

<div class="post-metadata">

**Author:** ![bigcouve](https://avatars.discourse-cdn.com/v4/letter/b/7993a0/32.png) [@bigcouve](https://discourse.cakephp.org/u/bigcouve)\
**Post date:** [January 10, 2022, 1:10am UTC](https://discourse.cakephp.org/t/its-possible-to-use-c-in-cakephp-2-x/10057/5 "2022-01-10T01:10:40Z")

</div>

Thanks KevinPfeifer, i started create a app to learn cakephp 2.x, because is the version that company i work use… I personally feel annoyed at having to devote my time to the old version of the framework 😕

---

<div class="post-metadata">

**Author:** ![KevinPfeifer](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/kevinpfeifer/32/3365_2.png) [@KevinPfeifer](https://discourse.cakephp.org/u/KevinPfeifer)\
**Post date:** [January 10, 2022, 7:46am UTC](https://discourse.cakephp.org/t/its-possible-to-use-c-in-cakephp-2-x/10057/6 "2022-01-10T07:46:17Z")

</div>

Management decisions are not always understandable but if you communicate the fact that Cake2 is EOL and basically dead and they still require you to spend time in it then they can’t blame you for that 😉

---

<div class="post-metadata">

**Author:** ![bgrinter](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/bgrinter/32/1381_2.png) [@bgrinter](https://discourse.cakephp.org/u/bgrinter)\
**Post date:** [January 10, 2022, 8:03am UTC](https://discourse.cakephp.org/t/its-possible-to-use-c-in-cakephp-2-x/10057/7 "2022-01-10T08:03:06Z")

</div>

One way to explain it to them is this a liability to the company, depending on company structure one they may have to disclose to shareholders, customers, board etc.

As someone who spent December patching log4j in my day job - that’s what a worse case scenario could look like for EOL software. In my other volunteer role I’ve spent most of the Xmas break (whilst admittedly in covid lockdown) porting / rewriting a CakePHP 2 app for this reason (as Kevin will attest by my many questions here and Slack 😉 )
