Download the PHP package ausus/api-http without Composer

On this page you can find all versions of the php package ausus/api-http. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package api-http

ausus/api-http

L4 — HTTP API surface for the AUSUS metadata graph.

Pure PSR-7/15. No framework dependency. Mounts as a single Psr\Http\Server\RequestHandlerInterface in front of any PSR-7 server (react/http, swoole, roadrunner, php-fpm, or php -S).

What it serves

Route Purpose
GET /_health liveness probe + graph hash
GET /projections/{fqn} RFC-004 ViewSchema with embedded data; optional ?subject=<id> for DetailView
POST /actions/{fqn} invoke an Action; returns {ok, outputs} or {ok:false, error}
OPTIONS * CORS preflight

The routes are the routes — no per-Entity controllers, no hand-rolled DTOs. Every endpoint dispatches into the same Invoker chain that the in-process kernel uses (RFC-005 §3).

URL contract — frozen

Header / param Source Purpose
X-Tenant-ID required, on /projections/* + /actions/* tenant boundary
X-Actor-Id optional stub-actor id (V0 only)
X-Actor-Roles optional stub-actor roles, comma-separated (V0 only)
?locale=… query passed through to ProjectionRenderer
?renderer=… query renderer profile (e.g. react.web.v1)
?subject=<id> query DetailView subject identityHandle
body (POST) JSON { "subject": Reference \| null, "inputs": object }

Error envelope

Exception HTTP error.kind
BadRequest 400 BadRequest
MalformedDescriptor 400 MalformedDescriptor
PolicyDeniedException 403 PolicyDenied
TenantBoundaryViolation 403 TenantBoundaryViolation
(not-found route / FQN) 404 NotFound / ProjectionNotFound / ActionNotFound
WorkflowStateMismatch 409 WorkflowStateMismatch
ConcurrencyConflict 409 ConcurrencyConflict
EffectFailure / unknown 500 EffectFailure / InternalError

Usage

$graph comes from ausus/kernel's Compiler, $driver from ausus/persistence-sql, $auditSink likewise. The Router builds a fresh Invoker + ProjectionRenderer per request using the per-request tenant + actor; the policy engine, workflow runtime, effect dispatcher, and sequence counter are shared across requests.

Security notes (V0)

This package implements the transport layer only. It does NOT implement:

The CORS headers are permissive (Access-Control-Allow-Origin: *) for the V0 demo. Production must restrict to the allowed origin list.

License

MIT — see LICENSE.


All versions of api-http with dependencies

PHP Build Version
Package Version
Requires php Version >=8.3
psr/http-message Version ^1.1 || ^2.0
psr/http-factory Version ^1.0
psr/http-server-handler Version ^1.0
psr/http-server-middleware Version ^1.0
ausus/kernel Version ^1.0
ausus/runtime-default Version ^1.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package ausus/api-http contains the following files

Loading the files please wait ...