Coding Standards of Grav?


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 ?


Hi, Grav is not built on Symfony, but just uses some of the Symfony packages:

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