Install PHP plugin for Atom editor

1

I already installed several Atom plugins to enable features to recognize PHP syntax in my project, but I did not succeed, which is my goal? And when I type the code it can complete, see the example below;

@foreach($courses as $course)
    <div class="col-md-3">
        <h3>{{ $course->name }}</h3>
        <p>{{ $course->description }}</p>
    </div>
@endforeach

In the example, with the plugin installed it was for when I type @forea ... and it completes.

I just need to know which plugin to install in the Atom Editor.

With the suggestions that have gone through, it stays that way, but it's not the way I need it;

When typing @fore .. it was not for him to have put <?php ?>

@<?php foreach ($variable as $key => $value): ?>

<?php endforeach; ?>
    
asked by anonymous 16.10.2017 / 23:35

2 answers

1

The PHP Linter would be a good solution, but it was a temporary gambiarra. Thanks to Nuclide , a very active and powerful community adopted by Facebook, now what was just an editor, ended up turning into a true IDE.

To make your Atom Editor turn into an official IDE, it's very easy. Come with me and follow the steps below:

Install the package atom-ide-ui Install your favorite language pack. In this case, PHP: ide-php I wrote an article doing a review and a cool comment from the Atom IDE tool. Access this link for more information .

    
21.10.2017 / 21:17
0

Assuming you are asking for a Blade Templating Engine plugin at Laravel , there are several in the Atom.

One that I use and works well is the laravel-blade :

Notonlydoesitmarkthesyntaxwiththecorrectcolors,butalsoautomaticallycompletesthekeywords:

    
17.10.2017 / 11:33