Coder Social home page Coder Social logo

Comments (8)

Ingramz avatar Ingramz commented on September 28, 2024 4

@chrisjimallen @andela-gjames check out linter and linter-phpcs packages.

from language-php.

LukeMauldin avatar LukeMauldin commented on September 28, 2024

I agree this would be very helpful.

from language-php.

probablycorey avatar probablycorey commented on September 28, 2024

This is beyond the scope of the language-php package, it is primarily concerned with snippets and syntax highlighting. But this is a great idea for a package. It looks like there might already be two packages that do something like this https://atom.io/packages/php-beautifier and https://atom.io/packages/php-checkstyle.

from language-php.

LukeMauldin avatar LukeMauldin commented on September 28, 2024

I must admit that I am new to the Atom editor, but other editors that I have used in the past (VIM, Emacs) have intelligent language Auto-indenting functionality. In both editors, I could chose PSR-2 coding style, Zend, etc... and when I executed the function to reindent the file, the editor applied my indentation settings. As far as I know, this functionality was included in the language modules/modes for those editors. Is Atom different? Do the Atom language packages not include indenting specifications for the language?

from language-php.

jokeyrhyme avatar jokeyrhyme commented on September 28, 2024

@LukeMauldin I think the plugin ecosystem for Atom is still in the process of settling. Some plugins aim to be single-purpose. Some plugins end up duplicating lots of functionality because the upstream Atom system doesn't provide certain built-in frameworks (e.g. general purpose refactoring).

I think, long-term, we'll probably arrive at having one or two high-quality plugins for each language that don't overlap much and will usually be used together.

@probablycorey thanks for the suggestions, I'll look into them. :)

from language-php.

probablycorey avatar probablycorey commented on September 28, 2024

@jokeyrhyme summed up the current state of Atom pretty well! The Atom language packages don't have an indenting specification right now, so it is easier to create a second package that handles formatting/refactoring. In the future we may fold these abilities into the language package itself.

from language-php.

sslgeorge avatar sslgeorge commented on September 28, 2024

This is 2016, is there an Atom package that helps you fix PHP code to PSR standards

from language-php.

chrisjimallen avatar chrisjimallen commented on September 28, 2024

@andela-gjames awesome, that would be super helpful if you added a link to it.

from language-php.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.