Download the PHP package melaya/sdk without Composer

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

Melaya

Build high-trust AI agents that can do real work. Melaya combines a visual Agent Builder with flagship Mobile Device Control: bring your preferred cloud or local model, give each agent only the tools it needs, and require human approval for consequential actions. Melaya Trading is planned for a later public release.

Website · Documentation · Discord

This public repository contains the official SDKs and public developer documentation. It does not contain the proprietary Melaya platform, agent runtime, Device Control service, or trading engine.

The products

  1. Agent Builder — available now. Compose agents, models, scoped tools, knowledge, evaluations, schedules, cost limits, and human approvals as a pipeline.
  2. Mobile Device Control — flagship, available now. Pair an Android phone and let an authorized agent read and operate approved apps through the visible interface.
  3. Melaya Trading — coming later. Trading SDK namespaces — market data, streaming, strategies, backtesting, simulation, and live trading endpoints — are included as preview surface only. They are not a generally available production commitment, and live-trading endpoints must not be used with real funds.

Current generated catalogs contain more than 1,500 scoped tools, 100+ specialized subagents, and 20+ model providers, including supported local-model options. Runtime catalog endpoints remain the source of truth.

Why teams use Melaya

Quick start: pair a phone

import { Melaya } from "@melaya/sdk";

const melaya = new Melaya({
  apiKey: process.env.MELAYA_API_KEY!
});

const { code, expiresInSeconds } =
  await melaya.agents.phone.pair();

console.log({ code, expiresInSeconds });

const devices = await melaya.agents.phone.listDevices();
const apps = await melaya.agents.phone.listApps();

await melaya.agents.phone.setAllowedApps([
  "com.android.chrome"
]);

A Melaya platform key is required. “No app API required” means Device Control operates the target app through its user interface; it does not mean the Melaya SDK is unauthenticated.

Quick start: run an agent pipeline

Configure provider credentials through Melaya Connectors first. Never include a provider key in pipeline configuration or per-run overrides.

await melaya.agents.pipelines.create({
  name: "mobile-review",
  project: "Operations",
  model_provider: "anthropic",
  model_name: "claude-sonnet-4-6",
  agents: [{
    name: "mobile-operator",
    role: "Careful mobile operator",
    instruction: "Read before acting. Never send, publish, or delete.",
    agent_tools: [
      "phone_get_screen_tree",
      "phone_current_app",
      "phone_open_app",
      "phone_click_text",
      "phone_back",
      "phone_wait"
    ]
  }],
  steps: [{
    kind: "agent",
    agent: { name: "mobile-operator" }
  }],
  maxCostUsd: 1.00
});

const { run_id } = await melaya.agents.pipelines.run(
  "mobile-review",
  { project: "Operations" }
);

await melaya.agents.phone.registerActiveRun(run_id);

const status = await melaya.agents.pipelines.runStatus(
  "mobile-review",
  run_id
);

See Mobile Device Control for the complete lifecycle.

Official SDKs

Language Package
TypeScript / JavaScript @melaya/sdk
Python melaya
Go melaya-go
Rust melaya
Java org.melaya:melaya-sdk
Kotlin org.melaya:melaya-sdk-kotlin
C# / .NET Melaya.SDK
Ruby melaya
PHP melaya/sdk

The supported public surface includes authentication, projects, Connectors, credentials, pipelines, templates, Agent Builder tools, Device Control management, HITL, evaluations, events, billing, account operations, runner management, team management, MFA, the assistant, bug reports, and the memory graph.

Internal operator APIs are intentionally absent.

Security rules for SDK users

See Security and trust.

Documentation

Full product documentation and interactive API reference: melaya.org/docs.

Trading preview status

Melaya Trading is planned for a later public release. The preview namespaces cover market data, streaming, strategies, backtesting, simulation, and live trading endpoints — all preview; live-trading endpoints must not be used with real funds. Preview namespace and design documentation may change or remain unavailable by account, region, venue, or release stage. They are not authorization to trade real funds and are not covered by the current Agent Builder and Device Control readiness statement.

License

The SDK code and public documentation are licensed under Apache-2.0. The hosted platform and engines are proprietary and are not included in this repository.

Third-party names and logos are used only for identification and do not imply endorsement.


All versions of sdk with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
ext-curl Version *
ext-json Version *
ext-openssl Version *
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 melaya/sdk contains the following files

Loading the files please wait ...