# Coding conventions

Coding conventions available here :

<https://github.com/chamilo/chamilo-lms/wiki/Coding-conventions>

We have recently decided to go in the direction of [PSR-2](http://www.php-fig.org/psr/psr-2/), including [PSR-1](http://www.php-fig.org/psr/psr-1/) and [PSR-0](http://www.php-fig.org/psr/psr-0/) so, if in doubt, follow PSR, with some exceptions to respect Chamilo conventions first.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.chamilo.org/1.11.x/developer-guide/coding_conventions.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
