# MIRA FIVE developer docs

Source: https://docs.mirafive.io/

> Integrate MIRA FIVE analytics, feature flags and experiments with the script tag, JavaScript and PHP SDKs, the HTTP APIs and the MCP server.

These docs show how to send events to MIRA FIVE, read feature flags, and read your analytics from code. Start with the [Quickstart](https://docs.mirafive.io/quickstart) to see your first event in about five minutes.

## Send events

Pick the package for your stack. Each page takes you from install to a verified first event.

- [Script tag](https://docs.mirafive.io/sdks/script-tag): Two lines in the page head. No build step.
- [React](https://docs.mirafive.io/sdks/react): Provider, flag hooks and a mount tracker.
- [Next.js](https://docs.mirafive.io/sdks/nextjs): Client provider, server events and server-rendered flags.
- [Node.js and edge](https://docs.mirafive.io/sdks/node): Node, Bun, Deno, Cloudflare Workers and Vercel functions.
- [Laravel](https://docs.mirafive.io/sdks/laravel): Facade, Blade tag, queues and Mira::fake().
- [All SDKs](https://docs.mirafive.io/sdks): Vue, Nuxt, Astro, TanStack Start, Convex, PHP and Symfony.

## Learn the concepts once

The guides explain each task for every SDK: what to send, what the rules are, and what MIRA FIVE does with it.

- [Track events](https://docs.mirafive.io/guides/track-events): pageviews, custom events, properties and revenue.
- [Identify users](https://docs.mirafive.io/guides/identify-users): user ids, anonymous ids and linking browser to server.
- [Consent](https://docs.mirafive.io/guides/consent): consentless mode without a banner, and full mode behind a consent manager.
- [Feature flags](https://docs.mirafive.io/guides/feature-flags) and [Experiments](https://docs.mirafive.io/guides/experiments): variants, remote config and exposures.
- [Server-side events](https://docs.mirafive.io/guides/server-side): batching, flushing in serverless functions, retries and idempotency.

## Use the APIs

- [Ingest API](https://docs.mirafive.io/ingest-api): send events and read flags over HTTP from any language.
- [REST API](https://docs.mirafive.io/rest-api): read projects, people, events, goals, funnels and channels with an API key.
- [MCP server](https://docs.mirafive.io/mcp): let Claude, ChatGPT or Cursor answer questions from your analytics.

## Hosts

| Host | Used for |
| --- | --- |
| `https://events.mirafive.io` | Sending events and reading feature flags |
| `https://cdn.mirafive.io/mira.js` | The hosted script |
| `https://app.mirafive.io` | The dashboard: sources, keys, flags and the live view |

Every page is also available as Markdown for AI agents. Append `.md` to the URL, or see [Use with AI agents](https://docs.mirafive.io/ai-agents).
