Coding Standards of Grav?

Hello,

I’m wondering what is the coding standard for Js, Css, PHP…etc in Grav. Grav built on Symfony, so it should be PSR-2 ?

Thanks.

Hi, Grav is not built on Symfony, but just uses some of the Symfony packages: https://github.com/getgrav/grav/blob/develop/composer.json#L13-L17

That said, yes - we adhere to PSR-1 and PSR-2.

1 Like

What is Grav built on by the way?

It’s not really built “on” anything per say. We don’t use an underlying framework because Grav needs to run as fast as possible… However, we do use a bunch of packages to handle specific things like Twig templating, Doctrine caching, Symfony YAML, Collections, DI, etc.

1 Like