Download the PHP package getaviato/laravel without Composer

On this page you can find all versions of the php package getaviato/laravel. 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 laravel

Aviato for Laravel

Extend an Aviato connector with custom actions, computed fields, hooks, segments, search, charts and custom datasources written in your Laravel application. The connector calls your app over the Aviato plugin protocol (ConnectRPC JSON, requests signed with Standard Webhooks); your code reads and writes records through the connector's Data API, under the caller's permissions and audit trail.

Requires PHP 8.3+ and Laravel 12 or 13.

Install

The connector binary comes from the public getaviato/connector releases, at aviato.connector.version. Pass --no-download when the application connects to a connector that runs elsewhere.

Configure

The package registers POST /aviato/aviato.plugin.v1.PluginService/{method}, POST /aviato/aviato.plugin.v1.DatasourceService/{method} and GET /aviato/files/{ref} outside the web middleware group (no session, no CSRF). Every request must carry a valid signature less than five minutes old, or it is rejected with 401.

Define an action

Register your plugin from a service provider's boot method:

Handlers can also be invokable classes (->execute(RefundLastInvoice::class)), resolved from the container. Throw Aviato\Laravel\Exceptions\RpcException (for example RpcException::permissionDenied('…')) to answer with a specific error code.

Custom datasources

Data the connector cannot reach through a database driver (an internal API, a SaaS, a file) can be served by your code as custom collections, under the same roles, row scopes, masking and audit trail as database collections:

get (defaults to a lookup through list), create, update and delete are optional. For slow sources, ->replication() with a listChanges handler lets the connector keep a copy, refreshed on the collection's interval (->replication(intervalSeconds: 300)) and on demand with Aviato::refreshReplica('tickets', $dataUrl). See the custom datasources guide.

Relations

Relations declared on your Eloquent models (belongsTo, hasOne, hasMany) are sent to the connector as relation hints, discovered with Laravel's model inspector. Models in app/Models are used by default; list them in aviato.relations.models to choose. Check what is sent with:

Run the connector

It runs the downloaded binary with AVIATO_CONTROL_PLANE_URL, AVIATO_CONNECTOR_TOKEN, AVIATO_DATABASE_URL (built from your default connection), AVIATO_PLUGIN_URL and AVIATO_PLUGIN_SECRET. The binary is downloaded from aviato.connector.download_url ({version}, {os}, {arch} and {ext} are replaced); set aviato.connector.checksum_url to verify its SHA-256.

During development, php artisan aviato:serve --dev reloads the plugin's manifest every second and waits for your application to answer. Add --types=app/Aviato to regenerate the collection classes when the database schema changes.

Each developer can run their own development environment of a project instead of sharing a token: php artisan aviato:serve --dev --project=<project id> (or AVIATO_PROJECT in .env without AVIATO_CONNECTOR_TOKEN). The first run prints a link to approve this computer in the dashboard; later runs reuse the credential stored in ~/.config/aviato. --login approves again. Add --tunnel to share it with MCP clients through a temporary Cloudflare quick tunnel; the connector downloads Cloudflare's cloudflared the first time when it is not installed. Both need connector 0.5.0 or later (php artisan aviato:install downloads it).

Collection classes

It writes a class per collection of your database, with a COLLECTION constant and one constant per field, so plugin code names them without strings a typo breaks:

Testing

Aviato::fake() calls your handlers without a connector, with a fake caller and an in-memory Data API:

It also offers resolveForm, computeField, runHooks, resolveSegment, search, writeField, computeChart and manifest, and for custom datasources listCustomRecords, getCustomRecord, createCustomRecord, updateCustomRecord, deleteCustomRecord, listChanges and customCollections. $aviato->data() asserts writes with assertCreated, assertUpdated, assertDeleted and assertNothingWritten, and reads records with records() and get(). The TypeScript and Go SDKs offer the same test kit under the same names.

Custom summaries and forms

Aviato::summary($collection, $document) registers a native record overview. Use Aviato\Laravel\UI::document, UI::node, and UI::bind to build the shared JSON format, or load a document also used by the TypeScript and Go SDKs. For an action, pass UI::form($document) as the second argument to ->form($jsonSchema, $uiSchema).

The custom UI guide covers metric strips, property rows, reusable components, local state, field presets, and action buttons. Rendering uses Aviato's native design system without customer scripts or iframes. The connector still enforces permissions, validation, approvals, and auditing.

Collection layouts

Aviato::layout($collection, $layout) declares how a collection looks in the back-office: label, icon, field order and settings, search fields, default sort and virtual relations. It replaces the layout edited in the dashboard, which then shows it read-only:

See Declare layouts in code.

Development

You need PHP 8.3+ and Composer 2 (CI uses PHP 8.4). The monorepo's mise.toml leaves PHP out because mise builds it from source, so install it with your system package manager.

The protocol messages in generated/ come from packages/protocol/proto through buf generate (remote plugin buf.build/protocolbuffers/php) and are serialized with the google/protobuf runtime's JSON mapping. They are committed, so Composer users never need buf.

License

MIT. See LICENSE.

Ready-to-use provider widgets

Use the typed StripePlugin implementation of IntegrationPlugin to register read-only Stripe customer, subscription and invoice widgets with a local ID column or a belongsTo relation. Credentials live in the customer connector environment; SDK declarations contain only the environment variable name. The browser calls the customer connector directly, and provider data does not pass through Aviato infrastructure.

See the provider widget guide for registration examples and exact key permissions. Restricted key prefixes do not prove read-only permissions: the operator must configure Read/None permissions in Stripe and confirm readOnly; the adapter itself only sends GET requests.

Zendesk widgets

The typed integration also supports user profiles and individual tickets. Bind to a local ID column or one belongsTo relation. Install a customer connector with Zendesk support before using these APIs. These examples require core SDK 0.3.0 (and NestJS adapter 0.2.0 when used). SDK releases do not publish connector binaries.

Store the OAuth token on the customer connector, with users:read / tickets:read scopes. Before each read, the connector verifies actual scopes and rejects write-enabled tokens. Only the subdomain label and credential environment-variable name belong in SDK configuration. No provider credentials or responses pass through Aviato's control plane. See the Zendesk guide for all methods, permissions and release requirements.

Intercom widgets

The contact card shows the profile, open conversations and open tickets of one contact. Bind to a local ID column or one belongsTo relation with exactly one of externalId (matched on the Intercom external_id) or contactId (the Intercom contact ID); anything else throws. The region is exactly us, eu or au, never a URL. Install a customer connector with Intercom support before using this API. This example requires SDK release 0.7.0. SDK releases do not publish connector binaries.

Store the access token on the customer connector and declare it read-only. Only the region and the credential environment-variable name belong in SDK configuration. No provider credentials or responses pass through Aviato's control plane. Aviato cannot verify that the token is read-only; that depends on the Intercom app's permissions. See the Intercom guide.


All versions of laravel with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
google/protobuf Version ^4.33 || ^5.34
illuminate/console Version ^12.0 || ^13.0
illuminate/contracts Version ^12.0 || ^13.0
illuminate/database Version ^12.0 || ^13.0
illuminate/http Version ^12.0 || ^13.0
illuminate/support Version ^12.0 || ^13.0
spatie/laravel-package-tools Version ^1.92
standard-webhooks/standard-webhooks Version ^1.0
symfony/process Version ^7.2 || ^8.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 getaviato/laravel contains the following files

Loading the files please wait ...