# Cakephp with Atom

**URL:** <https://discourse.cakephp.org/t/cakephp-with-atom/2437>\
**Category:** Uncategorized\
**Created:** [April 19, 2017, 11:26am UTC](https://discourse.cakephp.org/t/cakephp-with-atom/2437 "2017-04-19T11:26:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![danbuntu](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/danbuntu/32/609_2.png) [@danbuntu](https://discourse.cakephp.org/u/danbuntu)\
**Post date:** [April 19, 2017, 11:26am UTC](https://discourse.cakephp.org/t/cakephp-with-atom/2437/1 "2017-04-19T11:26:46Z")

</div>

Hello

Does anyone have a sample config file they can share with we to allow .ctp files to be formatted as PHP?

I would like to give atom a try and possible move from my proprietary IDE.

Any other tips for Atom and Cake would be gratefully received.

---

<div class="post-metadata">

**Author:** ![Xeta](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/xeta/32/611_2.png) [@Xeta](https://discourse.cakephp.org/u/Xeta)\
**Post date:** [April 19, 2017, 10:55pm UTC](https://discourse.cakephp.org/t/cakephp-with-atom/2437/2 "2017-04-19T22:55:02Z")

</div>

Hello,

When you open a **.ctp** file, chose **PHP** at the bottom/right of Atom :  
 ![](https://canada1.discourse-cdn.com/flex029/uploads/cakephp/original/1X/9eb301021bb70d370e32ba6bcdb71150833bf0f6.png)

I suggest to you to install those following plugins with Cake, it will help a lot :  
[https://github.com/Peekmo/atom-autocomplete-php](https://github.com/Peekmo/atom-autocomplete-php)  
[https://github.com/AtomLinter/linter-phpcs](https://github.com/AtomLinter/linter-phpcs)  
You will need to install [this plugin](https://github.com/steelbrain/linter) first, to get linter-phpcs to work.

---

<div class="post-metadata">

**Author:** ![danbuntu](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/danbuntu/32/609_2.png) [@danbuntu](https://discourse.cakephp.org/u/danbuntu)\
**Post date:** [April 20, 2017, 2:29pm UTC](https://discourse.cakephp.org/t/cakephp-with-atom/2437/3 "2017-04-20T14:29:29Z")

</div>

Awesome i’ll give those plugins ago.

Although whats weird is I just installed atom on a windows box and happily picks up ctp as php files.

I think I need to double check my atom linux atom install tonight.

Dan
