Skip to main content

sp_laravel_api 0.4.0 copy "sp_laravel_api: ^0.4.0" to clipboard
sp_laravel_api: ^0.4.0 copied to clipboard

Typed REST client and multi-broadcaster realtime client for the SP Laravel backend packages.

sp_laravel_api #

Typed Dart & Flutter client service for the sopheak/sp-laravel-api Laravel backend package.

Important

Client Service Compatibility Notice:
sp_laravel_api is a client-side library and works only with backends running sopheak/sp-laravel-api. It provides strongly-typed Table Gateway CRUD operations, deterministic query serialization, REST modules (bulk, attachments, audit, permissions), and multi-broadcaster realtime event subscriptions (Laravel Reverb, Pusher, Soketi).

Features #

  • Typed Table Gateway: Record CRUD (list, get, create, update, remove) with cursor and offset pagination.
  • Strict Query Builder: Fluent filter operators, composite AND/OR groups, relationship embedding, and deterministic query serialization.
  • REST Modules:
    • BulkModule: Chunked bulk insert, update, upsert, and delete operations (automatic 1000-record chunking).
    • AttachmentsModule: Upload management via signed URLs or direct multipart file uploads.
    • AuditModule: Audit log inspection, activity timelines, and statistics.
    • PermissionsModule: User roles, permissions, and direct grant/revoke operations.
  • Multi-Broadcaster Realtime: Native Pusher protocol framing over web_socket_channel supporting Laravel Reverb, Pusher Channels, Soketi, and Ably.
  • Intent Recovery & Reconnection: Automatically recovers subscribed channels and private channel authorization after network disconnects or backend redeploys.
  • Typegen CLI: Generates immutable Dart data models directly from OpenAPI 3.x specifications.
  • Decoupled Auth: Pluggable auth via the lightweight ApiAuth seam (seamlessly links with sp_jwt_auth without mutual package coupling).
  • Pure Dart & Cross-Platform: Zero Flutter SDK dependencies; fully compatible with Flutter (iOS, Android, web, desktop) and Dart server/CLI applications.

Installation #

Add sp_laravel_api to your pubspec.yaml:

dependencies:
  sp_laravel_api: ^0.4.0

Or install from git:

dependencies:
  sp_laravel_api:
    git:
      url: https://github.com/sopheaksem9999/sp-laravel-api-dart.git
      ref: v0.4.0

Quick Start #

import 'package:dio/dio.dart';
import 'package:sp_laravel_api/sp_laravel_api.dart';

final api = SpApi(
  baseUrl: Uri.parse('https://api.example.com/api/v1'),
  tenant: TenantConfig(header: 'X-Tenant-ID', value: () => '42'),
  auth: ApiAuth(
    headers: () async => {'Authorization': 'Bearer <token>'},
    handleUnauthorized: () async => false,
  ),
  dio: Dio(),
);

final invoices = api.table('invoices', fromJson: Invoice.fromJson);
final page = await invoices.list(
  select: 'id,number,total,status',
  where: [
    Filter.eq('status', 'paid'),
    Filter.gte('total', 100),
  ],
  sort: Sort('created_at', Order.desc),
  perPage: 25,
);

for (final invoice in page.items) {
  print('Invoice: ${invoice.number}');
}

Pairing with sp_jwt_auth #

Hand the auth object's two functions to ApiAuth. SpApi then adds the bearer header and, on a 401, calls handleUnauthorized once and retries.

final api = SpApi(
  baseUrl: Uri.parse('https://api.example.com/api/v1'),
  auth: ApiAuth(
    headers: auth.headers,
    handleUnauthorized: auth.handleUnauthorized,
  ),
);

Warning

Do not also call attach(dio) on the same Dio. attach(dio) installs a second refreshing interceptor, so a 401 would be handled twice. Use either ApiAuth with headers/handleUnauthorized, or attach(dio), never both. See the Flutter mobile section of the sp_jwt_auth README.

RPC calls #

rpc calls {rpcPrefix}/{name} (prefix defaults to rpc). It sends POST when a body is given and GET otherwise; method, query and Dio options override that. A {data: ...} envelope is unwrapped before fromJson runs. Covered by test/core/sp_api_test.dart and test/core/table_gateway_options_test.dart.

// POST rpc/invoices/send with a JSON body.
final sent = await api.rpc<Map<String, dynamic>>(
  'invoices/send',
  body: {'invoice_id': 7},
);

// GET rpc/reports/summary?year=2026, mapped into a typed value.
final total = await api.rpc<int>(
  'reports/summary',
  query: {'year': 2026},
  fromJson: (data) => (data as Map<String, dynamic>)['total'] as int,
);

Errors: SpApiError #

Every failure is an SpApiError. Tests: test/core/api_errors_test.dart and test/core/api_transport_error_test.dart.

Field Meaning
status HTTP status; 0 for transport failures (no response).
code SpApiErrorCode: unauthenticated, forbidden, notFound, validation, conflict, tenantRequired, moduleDisabled, notConfigured, unencodableValue, rateLimited, server, network, timeout, unknown.
errorCode Backend numeric code (for example 10002). On a 200 success: false envelope, code is mapped from it: 10002 unauthenticated, 10008 forbidden, 10009 notFound, 10004 validation, 10010 server; anything else is unknown.
fieldErrors Map<String, List<String>> of per-field validation messages.
requestId Backend request id, for support tickets.
retryAfter Seconds to wait: the Retry-After header, then body retry_after, then errors.retry_after_seconds.
currentRecord / isConflict On a conflict (isConflict), the row the server has now, else null.
isTransport / isHttp isTransport is true for network and timeout failures (status == 0, no response); local errors such as a missing select also have status == 0 but are not transport failures. isHttp is status > 0.
cause / stackTrace The originating DioException for transport failures. toString() never prints the cause.

Lost-update protection #

On a table with a version column, pass the version you read as expectedVersion. A stale one throws a conflict error carrying the stored row:

try {
  await tasks.update(task.id, {'title': 'New title'}, expectedVersion: task.version);
} on SpApiError catch (e) {
  if (!e.isConflict) rethrow;
  // Someone else saved first: e.currentRecord is their row. Merge, then retry
  // with its version.
  await tasks.update(
    task.id,
    {'title': 'New title'},
    expectedVersion: e.currentRecord?['version'],
  );
}

update and patch both take it; it is sent as expected_version in the body.

try {
  await api.table('invoices', fromJson: Invoice.fromJson).create({
    'number': '',
  });
} on SpApiError catch (e) {
  if (e.isTransport) {
    print('Network failure: ${e.cause}');
  } else if (e.code == SpApiErrorCode.validation) {
    print(e.fieldErrors['number']);
  } else if (e.retryAfter != null) {
    print('Retry in ${e.retryAfter} seconds');
  }
  print('Request id for support: ${e.requestId}');
}

Envelope behaviour (success: false) #

A response with status below 400 whose JSON body is a map with success: false is raised as SpApiError (its status stays the HTTP status, for example 200). error_code 10002 on such a response goes through ApiAuth.handleUnauthorized() and is retried once, like a 401. Bytes and non-map bodies are unaffected. This is on by default; to restore the 0.1.0 behaviour, set treatSuccessFalseAsError: false. Tests: test/core/api_envelope_test.dart.

final api = SpApi(
  baseUrl: Uri.parse('https://api.example.com/api/v1'),
  treatSuccessFalseAsError: false,
);

Pagination #

list supports cursor and offset modes. Tests: test/core/cursor_test.dart and test/core/table_gateway_test.dart.

  • Cursor: pass cursor, optionally direction (next or prev) and cursorColumn; they are sent as cursor=, direction= and cursor_column=. An empty cursor is sent as cursor= (first page); null sends none. nextCursor is meta['next_cursor'] whenever the backend provides it, whatever the item count, and null otherwise; the backend sends it on every non-empty page, so the end of the data is an empty page. Sending no cursor means offset mode, which never returns a nextCursor, so start a cursor loop with cursor: '' (iterate, fetchFirst and cursorPagination().firstPage() do this for you).
  • Offset: pass page (and total: true for a count). Offset mode never yields a nextCursor.
// Cursor pagination.
var page = await invoices.list(select: 'id,number', perPage: 50, cursor: '');
while (true) {
  for (final invoice in page.items) {
    print(invoice.number);
  }
  final next = page.nextCursor;
  if (next == null) break;
  page = await invoices.list(select: 'id,number', perPage: 50, cursor: next);
}

// Offset pagination.
final second = await invoices.list(
  select: 'id,number',
  page: 2,
  perPage: 50,
  total: true,
);
print(second.total);
  • Last page: fetchLast (and cursorPagination(...).lastPage()) inverts the sort, reads the first page of that, and restores canonical order. It needs a sort: the host's default sort depends on the table (created_at when it has one, else the primary key), so without one it throws SpApiError unencodableValue before any request.

Filters without paging #

A host that runs its own list layer can use the package's quoting without its paging: serializeFilters returns only select, where, or, search, distinct, the trashed flags and sortby / order. It never returns per_page, page, cursor, direction, cursor_column or total, and select is optional. Tests: test/core/serialize_filters_test.dart.

final filters = serializeFilters(
  where: [Filter.like('name', 'Smith, John (Jr)')],
  sort: const Sort('name', Order.asc),
);
print(filters['name']); // like."Smith, John (Jr)"
print(filters.containsKey('per_page')); // false

The select rule #

Reads must say which columns they want. Omitting select throws SpApiError (unencodableValue) with a message that names the opt-out requireSelect: false. Relations are embedded in the select string: rel(*) for all columns of a relation, rel(col,child(...)) for nested ones. Tests: test/core/query_serializer_test.dart.

// Columns and relations.
await invoices.list(select: 'id,number,customer(*)');
await invoices.list(select: 'id,number,lines(id,qty,product(id,name))');

// Explicit opt-out.
await invoices.list(select: Select.all);
await invoices.list(requireSelect: false);

Upsert availability #

TableGateway.upsert posts to {table}/upsert?match_on=.... Many backends disable it: a 404 (or 405 on some hosts) typically means upsert is disabled, so fall back to update/create. A 404 surfaces as SpApiErrorCode.notFound (test/core/api_errors_test.dart); per-request options are forwarded (test/core/table_gateway_options_test.dart).

try {
  await invoices.upsert({'number': 'INV-1'}, matchOn: ['number']);
} on SpApiError catch (e) {
  if (e.status == 404 || e.status == 405) {
    print('upsert is disabled on this backend');
  } else {
    rethrow;
  }
}

Retries #

Retries are off by default. Configure RetryConfig on SpApi and only GET/HEAD are retried (statuses 408, 429, 502, 503, 504 and connection errors, with exponential backoff, jitter and Retry-After). Pass retry: true per request to retry a non-idempotent call, or retry: false to skip. Tests: test/core/api_retry_test.dart.

final api = SpApi(
  baseUrl: Uri.parse('https://api.example.com/api/v1'),
  retry: const RetryConfig(maxAttempts: 3),
);
await api.request('POST', 'invoices', data: {'number': 'INV-2'}, retry: true);
await api.request('GET', 'invoices', retry: false);

Per-request options #

Every TableGateway method (list, get, create, update, patch, remove, restore, upsert) accepts Dio Options and a CancelToken. Per-request headers win over tenant and auth headers. Tests: test/core/table_gateway_options_test.dart.

final cancel = CancelToken();
final page = await invoices.list(
  select: 'id,number',
  options: Options(headers: {'X-Request-Source': 'mobile'}),
  cancelToken: cancel,
);
// Later, e.g. when the screen closes: cancel.cancel();

Server debug diagnostics #

The debug option asks the SERVER for diagnostics: it sends X-Debug: 1, and the backend then adds extra fields to response bodies (lazy-loading diagnostics) and debug details to errors. It logs nothing on the client; for client-side logging see SpLog above. Keep it off in production builds. The header contract is described in the backend package docs, page api-crud-operations (docs/backend is not part of this repository).

// Every request:
final debugApi = SpApi(
  baseUrl: Uri.parse('https://api.example.com/api/v1'),
  debug: true,
);

// One request only, optionally combined with logging:
final page = await invoices.list(
  select: 'id,number',
  options: SpDebug.merge(SpLog.on(headers: true)),
);

The default sends no X-Debug header. A per-request X-Debug header (even X-Debug: 0) wins over debug: true. SpDebug.on() works on every TableGateway method and on rpc; SpDebug.merge(options) keeps your other options.

Request logging #

Logging is off by default and the package never prints anything itself: you give SpApi a sink and it receives one SpLogEntry per HTTP attempt (a 401 refresh retry, a 10002 envelope retry and every RetryConfig retry each get their own, with an increasing attempt). In Flutter use debugPrint as the sink.

final api = SpApi(
  baseUrl: Uri.parse('https://api.example.com/api/v1'),
  logger: SpLogger(sink: (entry) => debugPrint('$entry')),
);

The default mode, SpLogMode.perRequest, logs only requests that opt in; SpLogMode.all logs every request and SpLogMode.off logs nothing, even for requests that opt in. An entry holds the method, the URL (sensitive query values redacted), status, duration, request id, attempt and, on failure, code (SpApiErrorCode) and errorCode. Headers and bodies are added only when a request asks for them, and the marker is never sent to the server:

final page = await invoices.list(
  select: 'id,number',
  options: SpLog.on(bodies: true),
);

Combine it with other options using SpLog.merge(options, bodies: true), or options.copyWith(extra: {...?options.extra, ...SpLog.on().extra!}). SpLog.off() keeps one request out of the log in every mode, SpLogMode.all included (SpLog.merge(options, off: true) to combine it).

What to know before you ship it:

  • Redaction cannot be switched off. Header values for Authorization, Cookie, Set-Cookie, X-CSRF-Token, the tenant header and any header whose name contains auth, token, key, secret, cookie, session, csrf, xsrf, password, credential, signature, pass, otp, jwt or bearer become <redacted>. Location, Content-Location, Referer and Origin, every <...> URL of Link and the URL after url= in Refresh go through the URL rule below.
  • In bodies and query strings a key is compared lower-cased with - and _ removed, at any depth and inside arrays. Its value becomes <redacted> when the key is password, secret, code, otp, jwt, token, apikey, accesstoken, refreshtoken, pin, pwd, pass, sig, authorization or cookie; ends with token(s), secret(s), password(s), passwd, passphrase, passcode, apikey(s), privatekey, secretkey, clientkey, signingkey, encryptionkey, signature, credential or otp, or with code(s) after otp, verification, auth, mfa, reset, recovery or backup (otp_code, recovery_codes); or starts with password. Keys that only contain such a word stay visible (error_code, country_code, idempotency_key, tokens_left, primary_key, status). credential is singular on purpose: a credentials map is walked and its sensitive keys redacted.
  • URLs: a query value is redacted when its key, or any part of the key split on [, ], , or ., is sensitive (user[password], comma-joined Filter.anyOf keys such as api_token,email, relation paths such as sessions.pin; percent-encoded keys are decoded first); so are key=value pairs in the fragment (#access_token=...). A value that embeds a condition on a sensitive column, at any depth, is redacted whole: a filter group (or, and, not.or, not.and) where any segment of a column path before the operator is sensitive (or=(email.eq.a@example.com,api_token.eq.x), or=(sessions.pin.eq.x); or=(status.eq.token) is kept, token being the value), and a select with an embed filter on such a column (select: 'id,sessions(id,token=eq.x)'; a select that only names a sensitive column is kept). Credentials in the authority (https://user:pw@host) are redacted. A query or fragment value that holds a URL (redirect=https://..., also percent-encoded) is redacted as a URL itself, up to 2 levels deep. Keys and values are percent-decoded tolerantly: valid %XX UTF-8 is decoded, an invalid escape or raw non-ASCII text is kept and the rest still decoded.
  • Redaction is a denylist of key names and patterns, not a guarantee. A secret under a name it does not know, in a plain-text body, in JSON stringified inside a value or in a URL path (logged verbatim) reaches the sink, and so can personal data. Do not log the bodies or URLs of sensitive endpoints (login, password reset, payment, token exchange) in production.
  • Bodies are cut at 2048 UTF-16 code units (maxBodyLength). Byte bodies show as <N bytes>, FormData as <multipart>, streams as <stream> and a body nested more than 100 lists/maps deep as <unavailable>. Only plain data is walked (Map, List, String, num, bool, null): any other object in a body (a model with toJson, a Set, a Uri, a DateTime) is shown as <object>, never as itself or its toString. A text body is parsed as JSON after leading and trailing whitespace, BOM and NBSP are removed; redaction takes time linear in the size of the URL, header or body; getBytes content is never logged.
  • The sink runs inline on the request path, so keep it quick. A sink that throws, or returns a failing Future, is ignored and never changes the request result.

Tests: test/core/api_logging_test.dart, test/core/log_redaction_test.dart.

Attachments #

upload sends one multipart POST (bytes or filePath, visibility defaults to private); link/unlink attach a file to a record; viewBytes fetches protected content with your auth headers. Tests: test/modules/attachments_upload_test.dart, test/modules/attachments_direct_test.dart, test/modules/attachments_multipart_test.dart, test/modules/attachments_path_test.dart.

final bytes = Uint8List.fromList([1, 2, 3]);
final file = await attachments.upload(bytes: bytes, filename: 'scan.pdf');
await attachments.link('invoices', 7, file['id'].toString());
final content = await attachments.viewBytes(file['id'].toString());
await attachments.unlink('invoices', 7, file['id'].toString());

Upload options #

upload also sends the other fields the upload route validates. recordType, recordId and collection link the new file; replaceOld replaces what is linked in the same collection (default when omitted) of that record and deletes old files nothing else links to, so it needs recordType and recordId. tempTimeoutMinutes and tempTimeoutAt (a String sent unchanged, or a DateTime sent as UTC ISO-8601; the server drops the offset, so a UTC value is only right when the host's app.timezone is UTC) only apply to a temporary upload. width, height, fit (crop or contain), sizeName and asTemp need the form upload (upload). folderId, title and caption work everywhere (on uploadDirect and uploadMultipart the folder id parameter is folder).

final avatar = await attachments.upload(
  bytes: bytes,
  filename: 'me.png',
  width: 512,
  visibility: 'public',
);
await attachments.upload(
  bytes: bytes,
  filename: 'logo.png',
  recordType: 'products',
  recordId: 7,
  collection: 'logo',
  replaceOld: true,
);
await attachments.upload(
  bytes: bytes,
  filename: 'draft.pdf',
  visibility: 'temp_private',
  tempTimeoutMinutes: 60,
);

When the server would silently ignore or override an option the call throws SpApiError unencodableValue before any request: asTemp: true with a private / public visibility (asTemp: false never throws), a timeout without a temporary upload, both timeouts, replaceOld: true without a record, sizeName with width / height / fit, a width or height below 1, and resize options or asTemp: true on direct and multipart uploads. The server's own ranges (width and height 10 to 3000, title length, timeout cap) are not checked here: its 422 reports them. visibility is null by default: the form sends private, unless asTemp is true.

Direct and multipart upload #

Both need attachments.direct_upload.enabled on the host and send the file straight to storage through signed URLs (no auth or tenant header goes to storage, and no error contains a signed URL or the upload token). A temporary upload there is visibility: 'temp_private' or 'temp_public'.

// Direct: create-upload-url, PUT to the signed URL, complete-upload.
final small = await attachments.uploadDirect(
  filename: 'photo.png',
  bytes: bytes,
  contentType: 'image/png',
);

// Multipart (S3 or R2): parts of partSize (at least 5 MiB, default 8 MiB),
// `concurrency` at once; a failure aborts the upload and rethrows the error.
final big = await attachments.uploadMultipart(
  filename: 'video.mp4',
  stream: File('video.mp4').openRead(),
  totalBytes: File('video.mp4').lengthSync(),
  onProgress: (loaded, total) => print('$loaded / $total'),
);

Resume is not supported (the JS client has it). The ids, table names and rpcPrefix that go into a request path are guarded: an empty, . or .. value throws unencodableValue and sends nothing. getViewUrl and getDownloadUrl use your rpcPrefix.

Realtime Broadcasting #

final rt = SpRealtime(
  apiBaseUrl: Uri.parse('https://api.example.com/api/v1'),
  driver: Driver.reverb(
    host: 'ws.example.com',
    port: 443,
    appKey: 'app-key-123',
    useTls: true,
  ),
  tokenProvider: () async => 'jwt-token',
);

await rt.connect();

final unsubscribe = await rt.subscribe(
  'private-tenant.42',
  events: {'invoices.created', 'invoices.updated'},
  onEvent: (event) {
    print('Event received: ${event.table}.${event.action.name}');
    print('Record payload: ${event.record}');
  },
);

// When done:
unsubscribe();

subscribe completes only after the server confirms the channel (pusher_internal:subscription_succeeded), so reading current state right after it returns cannot miss an event. It throws SpApiError with code timeout when no confirmation arrives within subscribeTimeout (default 10 seconds), or the channel authorization error; in both cases no subscription is left registered, so a later reconnect does not rejoin it. A second subscribe to a confirmed channel returns at once with no new frame, and concurrent subscribers on a pending channel share one confirmation. They also share its failure: when the first one fails channel authorization, the others throw the same SpApiError without an authorization request of their own.

A custom RealtimeTransport implementation or test fake must deliver pusher_internal:subscription_succeeded for each pusher:subscribe it receives, as a real server does, or subscribe times out. It also must not emit onDone for a connection it closes with close(), not even later (cancel the stream subscription first, as WebSocketTransport does): the client handles that loss itself and may already be reconnecting, so a late onDone would tear down the new connection.

Known limitation: the Pusher protocol has no correlation id, so a very late confirmation (more than subscribeTimeout) of an abandoned subscribe frame can complete a new subscribe to the same channel early.

After a reconnect, a channel whose re-subscribe fails is retried with exponential backoff (subscribeBackoff, default 300 ms, doubling, capped at 5 s) up to subscribeAttempts (default 3) times. The final failure is reported once through onSubscribeFailed(channel, error) and the client stops retrying that channel until the next reconnect. A failed channel does not hold back onRecovered, which fires before that report; an exception thrown by onSubscribeFailed is ignored. A confirmation that arrives late, during the backoff, ends the retries. Tests: test/realtime/subscribe_confirmation_test.dart and test/realtime/recovery_edge_cases_test.dart.

Pass subscribeTimeout, subscribeAttempts, subscribeBackoff and onSubscribeFailed to the SpRealtime constructor to tune this.

Non-record events #

RecordEvent exposes eventName, raw (the full payload) and isRecord (true only for a string table plus a map record). A missing or unknown action maps to RecordAction.unknown. Tests: test/realtime/raw_event_test.dart.

await rt.subscribe(
  'private-tenant.42',
  events: {'invoices.updated', 'courier_location.updated'},
  onEvent: (event) {
    if (event.isRecord) {
      print('${event.table}: ${event.action.name}');
    } else {
      print('${event.eventName}: ${event.raw}');
    }
  },
);

Realtime recovery #

After a socket death the client reconnects, re-authorizes private channels and re-subscribes. A failed connect is retried after reconnectDelay, doubling per consecutive failure up to 5 s. A socket that stops answering pings is closed after pongTimeout and replaced; after a long pause, onAppResumed pings at once so a socket that died in the background is replaced quickly. Hook your app in with onDisconnected, onRecovered (refetch what you missed), onAppPaused/onAppResumed and onNetworkChanged. onAppResumed and onNetworkChanged reconnect only a client in use (started with connect() or subscribe() and not stopped with disconnect()): they never connect a fresh client or revive one you disconnected, and do nothing after dispose(). Tests: test/realtime/realtime_lifecycle_test.dart, test/realtime/connection_state_test.dart, test/realtime/dead_socket_test.dart and test/realtime/fake_pusher_integration_test.dart.

rt.onDisconnected(() => print('socket lost'));
rt.onRecovered(() async {
  // Channels are re-authorized and re-subscribed; refetch missed data.
});

// Wire these to your app lifecycle and connectivity plugin.
rt.onAppPaused();
rt.onAppResumed();
rt.onNetworkChanged(true);

Typegen CLI #

Generate immutable Dart model classes from an OpenAPI 3.x specification:

dart run sp_laravel_api:typegen --file path/to/openapi.json --out lib/src/models

Verification Status #

  • Rung 1 (In-Process Fake Pusher Server): Verified in automated integration tests (test/realtime/fake_pusher_integration_test.dart) exercising real TCP/WebSocket handshakes, private auth subscriptions, event dispatches, and socket death auto-recovery.
  • Rung 2 (Local Reverb Server Harness): Contract test suite (test/contract/reverb_contract_test.dart) executable against local Laravel Reverb via contract/reverb-harness/run-harness.sh --dart.
  • Rung 3 (Diagnostic Probe Tool): CLI probe tool (tool/reverb_probe.dart) for probing and validating live Reverb or Soketi instances.
  • Automated Tests: unit, REST modules, realtime, typegen, wire characterization and README checks (dart test).
  • Public-Repo Hygiene: Zero forbidden internal names; automated secret scanning with Gitleaks.
1
likes
160
points
714
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Typed REST client and multi-broadcaster realtime client for the SP Laravel backend packages.

Repository (GitHub)
View/report issues

Topics

#api #laravel #rest #realtime #reverb

License

MIT (license)

Dependencies

dio, meta, web_socket_channel

More

Packages that depend on sp_laravel_api