The first rule is the one that overrides the rest: follow the patterns of the
files around you. These conventions describe what you will find there.
PHP
Every .php file starts with declare(strict_types=1);
final class by default
Constructor property promotion, and explicit return types
enum for fixed sets, never a group of constants
Enum cases in TitleCase
Comments
PHPDoc carries meaning, array shapes, and generics — not a restatement of the
signature. Inline comments are for logic that is genuinely non-obvious, and they
explain why, not what.
Dependencies in domain code
Do not use app(), resolve(), or global Laravel helpers as hidden
dependencies inside domain services.
Inject what you need. A service whose dependencies are visible in its constructor
can be tested, reasoned about, and safely reused across jobs; one that reaches
into the container cannot.Facades are acceptable in the infrastructure layer — providers, jobs, controllers,
migrations, framework adapters. That is the boundary where the framework is
already present.
Persistence
Eloquent models live in Domains/{Domain}/Models. Relations stay on the models,
where Eloquent’s query capabilities need them.Use a repository or port where the domain crosses a persistence boundary or
another bounded context. Do not query Eloquent directly from a domain service that
has a repository available.
Settings
A setting that an operator or a tenant admin may want to change while the
platform runs is stored in the database and edited in the admin, not read from
.env. A tenant’s setting belongs in the tenant’s settings screen; a package’s
setting belongs in that package’s own store and admin, never in Core’s. An
environment variable may at most seed the default a fresh installation starts
with..env keeps only secrets and credentials, Laravel and infrastructure settings
(connections, drivers, cache, queue, mail transport, logging), and values set
once per installation and never changed afterwards, such as the tenancy
resolution mode. This holds for Core and for every package and Solution.
Creating things
Prefer php artisan make:* --no-interaction for new Laravel artifacts where it
fits — it produces the shape the framework expects.Do not add dependencies without agreement.
After you change PHP
vendor/bin/pint --dirty --format agent
Every change is expected to carry a minimal relevant test, and that test is
expected to have been run. See
Testing and architecture checks.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"FaPost","description":"Conversational assistants and flow automation platform.","colors":{"primary":"#5a6e58","light":"#94a187","dark":"#3f4f3d"},"favicon":"https://mintcdn.com/fapost/dkK02WohiwWLokiz/favicon.svg?fit=max\u0026auto=format\u0026n=dkK02WohiwWLokiz\u0026q=85\u0026s=f3739e1cf80934093fb16564881363f9","background":{"color":{"light":"#f5f4f1","dark":"#131211"}},"navbar":{"links":[{"href":"https://github.com/fapost-lab/core","type":"github"}]},"footer":{"socials":{"github":"https://github.com/fapost-lab/core","website":"https://fapost.in"}},"fonts":{"family":"DM Sans"},"styling":{"codeblocks":{"theme":"one-dark-pro"},"latex":false},"banner":{"content":"FaPost is pre-1.0 and this documentation is still being written. Sections say where they are incomplete.","dismissible":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"fapost","hasAudioNarration":false,"actualSubdomain":"fapost","customDomains":["docs.fapost.in"],"gitSource":{"type":"github","owner":"fapost-lab","repo":"core","deployBranch":"main","contentDirectory":"docs/site","isPrivate":false,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6b0dec005fc55b6fe10383d1","clientVersion":"0.0.4352","searchFilterCounts":[{"language":"default","tag":"Developers","count":36},{"language":"default","tag":"User guide","count":36},{"language":"default","tag":"Self-hosting","count":15},{"language":"default","tag":"Admin panel","count":11},{"language":"default","tag":"Flows","count":10},{"language":"default","tag":"Reference","count":8},{"language":"default","tag":"Operate","count":7},{"language":"default","tag":"Core internals","count":6},{"language":"default","tag":"Development environment","count":5},{"language":"default","tag":"Contributing to Core","count":5}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":true},"customCss":[{"filePath":"style.css","content":"#content.mdx-content h2{font-size:1.75rem;line-height:1.25;letter-spacing:-0.02em;margin-top:4rem;padding-top:2rem;border-top:1px solid rgb(23 23 23 / 12%)}.dark #content.mdx-content h2{border-top-color:rgb(255 255 255 / 12%)}#content.mdx-content h2:first-child{margin-top:1rem;padding-top:0;border-top:0}#content.mdx-content h3{font-size:1.3125rem;line-height:1.35;letter-spacing:-0.01em;margin-top:2.75rem}#content.mdx-content h4{font-size:1.0625rem;line-height:1.4;margin-top:2rem;color:rgb(82 82 82)}.dark #content.mdx-content h4{color:rgb(163 163 163)}@media (max-width: 639px){#content.mdx-content h2{font-size:1.5rem;margin-top:3rem;padding-top:1.5rem}#content.mdx-content h3{font-size:1.1875rem;margin-top:2.25rem}}"}]}
{"page":{"pagePath":"contributing/conventions","slug":"/contributing/conventions","pageMetadata":{"title":"Coding conventions","description":"The style and idioms Core code follows.","href":"/contributing/conventions"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"The style and idioms Core code follows.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`The first rule is the one that overrides the rest: `,_jsx(_components.strong,{children:`follow the patterns of the\nfiles around you.`}),` These conventions describe what you will find there.`]}),`\n`,_jsx(Heading,{level:`2`,id:`php`,children:`PHP`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Every `,_jsx(_components.code,{children:`.php`}),` file starts with `,_jsx(_components.code,{children:`declare(strict_types=1);`})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`final class`}),` by default`]}),`\n`,_jsx(_components.li,{children:`Constructor property promotion, and explicit return types`}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`enum`}),` for fixed sets, never a group of constants`]}),`\n`,_jsxs(_components.li,{children:[`Enum cases in `,_jsx(_components.code,{children:`TitleCase`})]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`comments`,children:`Comments`}),`\n`,_jsxs(_components.p,{children:[`PHPDoc carries meaning, array shapes, and generics — not a restatement of the\nsignature. Inline comments are for logic that is genuinely non-obvious, and they\nexplain `,_jsx(_components.strong,{children:`why`}),`, not what.`]}),`\n`,_jsx(Heading,{level:`2`,id:`dependencies-in-domain-code`,children:`Dependencies in domain code`}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`Do not use `,_jsx(_components.code,{children:`app()`}),`, `,_jsx(_components.code,{children:`resolve()`}),`, or global Laravel helpers as hidden\ndependencies inside domain services.`]})}),`\n`,_jsx(_components.p,{children:`Inject what you need. A service whose dependencies are visible in its constructor\ncan be tested, reasoned about, and safely reused across jobs; one that reaches\ninto the container cannot.`}),`\n`,_jsx(_components.p,{children:`Facades are acceptable in the infrastructure layer — providers, jobs, controllers,\nmigrations, framework adapters. That is the boundary where the framework is\nalready present.`}),`\n`,_jsx(Heading,{level:`2`,id:`persistence`,children:`Persistence`}),`\n`,_jsxs(_components.p,{children:[`Eloquent models live in `,_jsx(_components.code,{children:`Domains/{Domain}/Models`}),`. Relations stay on the models,\nwhere Eloquent’s query capabilities need them.`]}),`\n`,_jsx(_components.p,{children:`Use a repository or port where the domain crosses a persistence boundary or\nanother bounded context. Do not query Eloquent directly from a domain service that\nhas a repository available.`}),`\n`,_jsx(Heading,{level:`2`,id:`settings`,children:`Settings`}),`\n`,_jsxs(_components.p,{children:[`A setting that an operator or a tenant admin may want to change while the\nplatform runs is stored in the database and edited in the admin, not read from\n`,_jsx(_components.code,{children:`.env`}),`. A tenant’s setting belongs in the tenant’s settings screen; a package’s\nsetting belongs in that package’s own store and admin, never in Core’s. An\nenvironment variable may at most seed the default a fresh installation starts\nwith.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`.env`}),` keeps only secrets and credentials, Laravel and infrastructure settings\n(connections, drivers, cache, queue, mail transport, logging), and values set\nonce per installation and never changed afterwards, such as the tenancy\nresolution mode. This holds for Core and for every package and Solution.`]}),`\n`,_jsx(Heading,{level:`2`,id:`creating-things`,children:`Creating things`}),`\n`,_jsxs(_components.p,{children:[`Prefer `,_jsx(_components.code,{children:`php artisan make:* --no-interaction`}),` for new Laravel artifacts where it\nfits — it produces the shape the framework expects.`]}),`\n`,_jsx(_components.p,{children:`Do not add dependencies without agreement.`}),`\n`,_jsx(Heading,{level:`2`,id:`after-you-change-php`,children:`After you change PHP`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes one-dark-pro one-dark-pro`,style:{backgroundColor:`#282c34`,\"--shiki-dark-bg\":`#282c34`,color:`#abb2bf`,\"--shiki-dark\":`#abb2bf`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#61AFEF`,\"--shiki-dark\":`#61AFEF`},children:`vendor/bin/pint`}),_jsx(_components.span,{style:{color:`#D19A66`,\"--shiki-dark\":`#D19A66`},children:` --dirty`}),_jsx(_components.span,{style:{color:`#D19A66`,\"--shiki-dark\":`#D19A66`},children:` --format`}),_jsx(_components.span,{style:{color:`#98C379`,\"--shiki-dark\":`#98C379`},children:` agent`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Every change is expected to carry a minimal relevant test, and that test is\nexpected to have been run. See\n`,_jsx(_components.a,{href:`/contributing/testing`,children:`Testing and architecture checks`}),`.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"codeStyling":{"theme":"one-dark-pro"},"config":{},"pageMetadata":{"title":"Coding conventions","description":"The style and idioms Core code follows.","href":"/contributing/conventions"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"PHP","slug":"php","depth":2,"children":[]},{"title":"Comments","slug":"comments","depth":2,"children":[]},{"title":"Dependencies in domain code","slug":"dependencies-in-domain-code","depth":2,"children":[]},{"title":"Persistence","slug":"persistence","depth":2,"children":[]},{"title":"Settings","slug":"settings","depth":2,"children":[]},{"title":"Creating things","slug":"creating-things","depth":2,"children":[]},{"title":"After you change PHP","slug":"after-you-change-php","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"fapost","siteName":"FaPost","title":"Coding conventions - FaPost","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-16T18:03:22.021Z","originalFileLocation":"contributing/conventions.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"The style and idioms Core code follows.\">\u003cmeta data-mint-head name=\"application-name\" content=\"FaPost\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/fapost/2DoYb1P3wGVpeaWw/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/fapost/2DoYb1P3wGVpeaWw/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/fapost/2DoYb1P3wGVpeaWw/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/fapost/2DoYb1P3wGVpeaWw/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/fapost/2DoYb1P3wGVpeaWw/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/fapost/2DoYb1P3wGVpeaWw/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/fapost/2DoYb1P3wGVpeaWw/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/fapost/2DoYb1P3wGVpeaWw/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/fapost/2DoYb1P3wGVpeaWw/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Coding conventions - FaPost\">\u003cmeta data-mint-head property=\"og:description\" content=\"The style and idioms Core code follows.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"FaPost\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.fapost.in/contributing/conventions\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://fapost.mintlify.site/_mintlify/api/og/v2?division=Development+environment\u0026amp;title=Coding+conventions\u0026amp;description=The+style+and+idioms+Core+code+follows.\u0026amp;theme=baf5a1f6c1a967e68ab29869\u0026amp;signature=44754d9881dc1c2591628d682b0f4d3dd9709f8bbe98eaa538c51a746daba47d\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Coding conventions - FaPost\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"The style and idioms Core code follows.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://fapost.mintlify.site/_mintlify/api/og/v2?division=Development+environment\u0026amp;title=Coding+conventions\u0026amp;description=The+style+and+idioms+Core+code+follows.\u0026amp;theme=baf5a1f6c1a967e68ab29869\u0026amp;signature=44754d9881dc1c2591628d682b0f4d3dd9709f8bbe98eaa538c51a746daba47d\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/fapost/2DoYb1P3wGVpeaWw/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"FaPost\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#5a6e58\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.fapost.in/contributing/conventions\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/contributing/conventions.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.fapost.in/#organization\",\"name\":\"FaPost\",\"url\":\"https://docs.fapost.in\"},{\"@type\":\"WebSite\",\"@id\":\"https://docs.fapost.in#website\",\"name\":\"FaPost\",\"url\":\"https://docs.fapost.in\",\"publisher\":{\"@id\":\"https://docs.fapost.in/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.fapost.in/contributing/conventions#webpage\",\"url\":\"https://docs.fapost.in/contributing/conventions\",\"name\":\"Coding conventions\",\"description\":\"The style and idioms Core code follows.\",\"dateModified\":\"2026-10-16T18:03:22.021Z\",\"isPartOf\":{\"@id\":\"https://docs.fapost.in#website\"},\"breadcrumb\":{\"@id\":\"https://docs.fapost.in/contributing/conventions#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.fapost.in/contributing/conventions#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Development environment\",\"item\":\"https://docs.fapost.in/contributing/local-setup\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Coding conventions\",\"item\":\"https://docs.fapost.in/contributing/conventions\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.fapost.in/contributing/conventions#article\",\"headline\":\"Coding conventions\",\"name\":\"Coding conventions\",\"description\":\"The style and idioms Core code follows.\",\"url\":\"https://docs.fapost.in/contributing/conventions\",\"mainEntityOfPage\":{\"@id\":\"https://docs.fapost.in/contributing/conventions#webpage\"},\"dateModified\":\"2026-10-16T18:03:22.021Z\",\"publisher\":{\"@id\":\"https://docs.fapost.in/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.fapost.in#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"FaPost\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"FaPost\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/contributing/conventions.md","siteName":"FaPost","nav":{"global":null,"tabs":[{"tab":"User guide","pages":[{"title":"User guide","href":""}]},{"tab":"Self-hosting","pages":[{"title":"Self-hosting","href":"/self-hosting/overview"}]},{"tab":"Developers","groups":[{"group":"Overview","pages":[{"title":"For developers","href":"/contributing/overview"},{"title":"Technology stack","href":"/contributing/stack"}]},{"group":"Development environment","pages":[{"title":"Local setup","href":"/contributing/local-setup"},{"title":"Receiving webhooks locally","href":"/contributing/local-webhooks"},{"title":"Repository layout","description":"Where code lives and which boundaries it must respect.","href":"/contributing/repo-layout"},{"title":"Coding conventions","href":"/contributing/conventions"},{"title":"Coding agents and Jig","description":"How FaPost is developed with AI coding agents, and where their knowledge lives.","href":"/contributing/coding-agents"}]},{"group":"Extension model","pages":[{"title":"Extension model","href":"/extending/extension-model"},{"title":"Choosing an extension type","href":"/extending/choosing-an-extension-type"}]},{"group":"Building extensions","pages":[{"title":"Development setup","href":"/extending/development-setup"},{"title":"Building a Solution","href":"/extending/solutions"},{"title":"Starting a Solution","href":"/extending/solution-scaffold"},{"title":"Connectors","href":"/extending/connectors"},{"title":"Building a Plugin","href":"/extending/plugins"}]},{"group":"Flow nodes","pages":[{"title":"Handler contract","href":"/extending/flow-nodes/handler-contract"},{"title":"Versioning and compatibility","href":"/extending/flow-nodes/versioning"},{"title":"State namespaces","href":"/extending/flow-nodes/state-namespaces"},{"title":"Idempotency and retries","href":"/extending/flow-nodes/idempotency"}]},{"group":"Extension surfaces","pages":[{"title":"Builder UI extensions","href":"/extending/builder-ui"},{"title":"Console UI","href":"/extending/console-ui"},{"title":"Channel contracts","href":"/extending/channel-drivers"},{"title":"Data accessors","href":"/extending/data-accessors"},{"title":"Multilingual extensions","href":"/extending/multilingual"}]},{"group":"Shipping an extension","pages":[{"title":"Testing your extension","href":"/extending/testing"},{"title":"Stability policy","href":"/extending/stability-policy"}]},{"group":"Core internals","pages":[{"title":"Runtime architecture","href":"/contributing/runtime"},{"title":"Tenant-aware execution","href":"/contributing/tenant-aware-execution"},{"title":"Migration isolation","href":"/contributing/migration-isolation"},{"title":"Long-lived worker safety","href":"/contributing/worker-safety"},{"title":"ID strategy","href":"/contributing/id-strategy"},{"title":"Dependency direction","href":"/contributing/dependency-direction"}]},{"group":"Contributing to Core","pages":[{"title":"Testing and architecture checks","href":"/contributing/testing"},{"title":"Commit messages","href":"/contributing/commits"},{"title":"Pull requests","href":"/contributing/pull-requests"},{"title":"Releases and versioning","href":"/contributing/releases"},{"title":"Licence, CLA and trademark","href":"/contributing/legal"}]}]},{"tab":"Reference","pages":[{"title":"Reference","href":"/reference/foundation-contracts"}]}]},"basePath":"","title":"Coding conventions - FaPost","deploymentId":"dpl_5nNsUVHqbVdUHouroPPzwztSbjmH","buildId":"dpl_5nNsUVHqbVdUHouroPPzwztSbjmH","dynamics":[],"chunks":[]}