> ## Documentation Index
> Fetch the complete documentation index at: https://docs.law4devs.eu/llms.txt
> Use this file to discover all available pages before exploring further.

# SDKs

> Official Law4Devs SDKs for Python, TypeScript, PHP, Java, Flutter, and Rust

<div style={{ textAlign: 'center', padding: '1.5rem 0 2rem' }}>
  <h1 style={{ fontSize: '2rem', fontWeight: 800, marginBottom: '0.5rem' }}>Choose Your SDK</h1>

  <p style={{ color: '#64748B', fontSize: '1.05rem' }}>
    Official client libraries for Python, TypeScript, PHP, Java, Flutter, and Rust — all with full feature parity.
  </p>
</div>

<CardGroup cols={3}>
  <Card title="Python SDK" icon="python" color="#3776AB" href="/sdks/python/installation">
    `pip install law4devs` · Python 3.8+
  </Card>

  <Card title="TypeScript SDK" icon="js" color="#3178C6" href="/sdks/typescript/installation">
    `npm install law4devs` · Node 18+ / Deno / Bun
  </Card>

  <Card title="PHP SDK" icon="php" color="#777BB4" href="/sdks/php/installation">
    `composer require law4devs/law4devs` · PHP 8.1+
  </Card>

  <Card title="Java SDK" icon="java" color="#E76F00" href="/sdks/java/installation">
    Maven · Java 17+ · Zero dependencies
  </Card>

  <Card title="Flutter SDK" icon="mobile" color="#02569B" href="/sdks/flutter/installation">
    `pub add law4devs` · Dart 3+ · Flutter & CLI
  </Card>

  <Card title="Rust SDK" icon="rust" color="#CE422B" href="/sdks/rust/installation">
    `cargo add law4devs` · Rust 1.85+ · Tokio async
  </Card>
</CardGroup>

## Feature Comparison

| Feature                       |   Python  |    TypeScript    | PHP |    Java    |     Flutter     |      Rust     |
| ----------------------------- | :-------: | :--------------: | :-: | :--------: | :-------------: | :-----------: |
| Auto-pagination with `iter()` |     ✓     |         ✓        |  ✓  |      ✓     |        ✓        |       ✓       |
| Full-text search              |     ✓     |         ✓        |  ✓  |      ✓     |        ✓        |       ✓       |
| Rate limit retry with backoff |     ✓     |         ✓        |  ✓  |      ✓     |        ✓        |       ✓       |
| Async / non-blocking support  | ✓ asyncio |  ✓ Promise/async |  —  |      —     | ✓ Future/Stream | ✓ Tokio/async |
| Type safety                   |  ✓ hints  |   ✓ interfaces   |  —  |  ✓ Records |   ✓ null-safe   |  ✓ ownership  |
| Stream-based iteration        |     —     | ✓ AsyncGenerator |  —  | ✓ Iterable |     ✓ Stream    |    ✓ Stream   |
| Framework filtering           |     ✓     |         ✓        |  ✓  |      ✓     |        ✓        |       ✓       |
| Compliance deadline queries   |     ✓     |         ✓        |  ✓  |      ✓     |        ✓        |       ✓       |
| Mobile / web compatible       |     —     |         —        |  —  |      —     |        ✓        |       —       |

## Which SDK Should I Use?

<CardGroup cols={3}>
  <Card title="Use Python if…" icon="python" color="#3776AB">
    You're building backend automation, data pipelines, or scripts. Best for compliance
    engineers who want to process and analyse regulatory data programmatically.
  </Card>

  <Card title="Use TypeScript if…" icon="js" color="#3178C6">
    You're building Node.js APIs, serverless functions, or browser-side tools. Best when
    you need async operations and strong type safety.
  </Card>

  <Card title="Use PHP if…" icon="php" color="#777BB4">
    You're working in a Laravel, Symfony, or WordPress application. The PHP SDK integrates
    directly into Composer-based projects with no extra setup.
  </Card>

  <Card title="Use Java if…" icon="java" color="#E76F00">
    You're building JVM-based services, Spring Boot applications, or enterprise backend
    systems. The Java SDK uses only stdlib — no external dependencies required.
  </Card>

  <Card title="Use Flutter if…" icon="mobile" color="#02569B">
    You're building a mobile, desktop, or web Flutter app, or a Dart CLI tool. The only
    SDK with full Flutter Web compatibility and Stream-based auto-pagination.
  </Card>

  <Card title="Use Rust if…" icon="rust" color="#CE422B">
    You're building high-performance backend services, CLI tools, or systems software where
    memory safety and zero-cost abstractions matter. Best for latency-critical applications
    that need async Tokio runtimes and compile-time type guarantees.
  </Card>
</CardGroup>

## Supported Frameworks

All 19 EU regulatory frameworks are available across every SDK — from GDPR and CRA to
the AI Act, DORA, NIS2, and beyond.

<Card title="View all supported frameworks →" href="/frameworks" icon="building-columns" color="#0EA5E9">
  Full list of 19 EU regulations with CELEX numbers and status
</Card>
