Comments (8)
@chrisjimallen @andela-gjames check out linter and linter-phpcs packages.
from language-php.
I agree this would be very helpful.
from language-php.
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.
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.
@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.
@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.
This is 2016, is there an Atom package that helps you fix PHP code to PSR standards
from language-php.
@andela-gjames awesome, that would be super helpful if you added a link to it.
from language-php.
Related Issues (20)
- PHP 8.1
- Function name after newline not classified correctly HOT 1
- Tokenisation of psalm array types HOT 19
- i am unable to download packages that will me code php on atom editor. please i need help.
- Colour formatting gets confused due in specific situations with comment lines and another string containing lots of commas HOT 1
- after this line the rest of the text/code is not formated
- problem with ( in qoutes HOT 7
- Can't install the latest package version 0.48 HOT 1
- Is this still maintained? HOT 4
- When SQL used within a PHP string, interpolated PHP variables remain unstyled
- Support enum keyword HOT 1
- PHP syntax highlighting does not correctly detect end of string HOT 1
- Interpolation brace style HOT 5
- Curly braces inside HTML inside HEREDOC are marked red
- PHP 8.2
- SQL syntax highlighting with leading line break
- DATE_RFC7231 constant missing HOT 1
- filter_var() Constant missing HOT 1
- php doc types not highlighted HOT 1
- Fork
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from language-php.