Download the PHP package adaiasmagdiel/loxodontu-php without Composer
On this page you can find all versions of the php package adaiasmagdiel/loxodontu-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download adaiasmagdiel/loxodontu-php
More information about adaiasmagdiel/loxodontu-php
Files in adaiasmagdiel/loxodontu-php
Package loxodontu-php
Short Description PHP client for Loxodontu, an open-source Backend-as-a-Service (BaaS).
License AGPL-3.0-only
Homepage https://adaiasmagdiel.github.io/loxodontu/
Informations about the package loxodontu-php
loxodontu-php
PHP client for Loxodontu, an open-source Backend-as-a-Service. Framework-agnostic, no HTTP client dependency (uses ext-curl directly).
Install
Two clients, matching Loxodontu's two token types
Client— app-facing. REST passthrough, edge function invocation, and end-user auth for a single project. Authenticated with a project API key.Admin— platform-facing. Manage your account, projects, tables, keys, RLS policies, cron jobs, and functions. Authenticated with your platform login.
App client
Filters mirror the REST passthrough API 1:1: eq, neq, gt, gte, lt, lte, like
(* wildcard), in. They work the same way on select(), update(), and delete(). For
update()/delete(), in order of precedence: a list (of row arrays, or ids for delete) is
always a bulk write; otherwise any chained filter (eq, gt, ...) scopes a filtered
update/delete over every matching row; otherwise, for update() only, an id key in the body
targets that single row.
Admin client
Responses
Every request resolves to the same envelope — nothing throws on an API error by default,
matching the "check error" pattern of most BaaS clients:
If you'd rather throw, call ->unwrap() — it returns data, or throws a LoxodontuError:
Session storage
Client's end-user token and Admin's platform token are held via a TokenStorage
implementation, passed as options.storage:
InMemoryStorage(default) — lives only for the current process; fine for a script that logs in and uses the token within the same run.SessionStorage— persists the token in PHP's$_SESSIONacross requests, for a traditional web app.- Your own implementation of the
TokenStorageinterface (getItem/setItem/removeItem) — a cookie, cache, or database row.
Custom transport
Requests are sent via ext-curl by default (CurlTransport). Pass your own implementation of the
Transport interface via options.transport to swap it out — useful for testing, or for routing
through a different HTTP stack.
License
Loxodontu itself.
All versions of loxodontu-php with dependencies
ext-curl Version *
ext-json Version *