Php-parser: Idea: implement php formatting support in prettier

Created on 22 Dec 2017  路  7Comments  路  Source: glayzzle/php-parser

Prettier is great and popular tool https://github.com/prettier/prettier.

This will increase the popularity of the package and possibly help find sponsors. I can help with this, but there's a lot of work to do, just let me know if you like this idea. Thanks for this great package!


Python https://github.com/prettier/prettier/pull/3349.

question

All 7 comments

I've actually already started 馃槃 (hence why I'm following this repo) https://github.com/prettier/prettier/pull/3521

@mgrip awesome!

@mgrip don't stop this PR, if you need help just ping me :+1:

thanks @evilebottnawi! there's some discussion from the core contributors about how prettier is going to scale with other languages, but i _think_ at least the printer piece of this is still going to be viable. if you feel like working on a PR i certainly won't turn away help! https://github.com/mgrip/prettier/pull/1#pullrequestreview-85375143 as an example

Hi guys, I like the idea :+1: - just for information, actually there is an implementation for convert back AST to code, it maybe help you : https://github.com/chris-l/php-unparser

thanks @ichiriac! we get a lot of stuff for free by building on the core prettier project - but will definitely take a look at that project to see if there's anything we can learn from it!

We can close this issue in favor https://github.com/prettier/plugin-php

Was this page helpful?
0 / 5 - 0 ratings

Related issues

alexander-akait picture alexander-akait  路  3Comments

mgrip picture mgrip  路  3Comments

Rivendall picture Rivendall  路  6Comments

alexander-akait picture alexander-akait  路  9Comments

alexander-akait picture alexander-akait  路  8Comments