Routes
- Store your routes in
/config/routes.yml - Never use a closing slash on routes. Good:
/x/y/zBad:/x/y/z/ - Always use plurals for resource urls Good:
/books/12Bad:/book/12 - The main resource url always provides a listing or search: /books lists all books
- If your route is an "action" on a resource (for example "delete" or "print"), put the action at the end of the route. Good:
/books/12/printBad:/books/delete/12
PHP Conventions
Styleguide, libraries, etc