Download the PHP package multiapi/arco without Composer

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

Arco

The bridge between PHP and AWS Lambda Web Functions.

Run Laravel and PHP on AWS Lambda Web Functions.

Arco is an open-source PHP CLI by Multiapi. It builds your app, uploads it and deploys it to Lambda Web Functions with FrankenPHP, with environments, secrets, custom domains and rollback built in.

Status: 0.9, the API freeze before 1.0. Lambda Web Functions launched in October 2026 and Arco is new. It already runs a production Laravel app. 0.9 is the last release allowed to break arco.php, the CLI or the --json output; from 1.0 they stay compatible until 2.0 (what is covered). Upgrading from an earlier version: read Upgrading.

Requirements

Quick start

init asks for the app name, region, environments and (optionally) a custom domain, and writes arco.php. The first deploy asks which AWS profile to use and remembers it in .arco/local.php.

What you get

Configuring arco.php

arco init writes this file; edit it by hand or with arco set / arco domain:add. It is plain PHP returning an App:

Inheritance: a value set on an environment wins over the app level, which wins over Arco's default. variables() and permissions() are merged (environment entries added to the app's). arco info --env=production shows every resolved value and where it came from.

The main options:

Option Default What it does
region() — (required) AWS region of the app (one region per app)
concurrency(int) AWS default (64) Cap on requests per instance (2 vCPU / 2 GB); Lambda adds instances as traffic grows
maxInstances(int) no cap Maximum running instances
rateLimit(int) no limit Requests per second; extra requests get 429
timeout(int) 30 Seconds per request (3–900)
variables([...]) preset defaults Environment variables; values may be secret references
bundleVariables() off Keep the variables in one S3 object instead of the Lambda environment (4 KB cap per function)
accessLog() off One JSON line per HTTP request (status, method, path, ms, request id) in the web function's log
permissions([...]) — Extra IAM statements for the function's role
domain(...) / dns(...) — Custom domains and where their DNS zone is
tenantDomains(target:) — Experimental: the hostname customers point their own domains at; the app adds them at runtime (needs domain(); arco.php only)
profile() / account() — AWS profile for the environment (without it, the first deploy asks and remembers the answer in .arco/local.php), and an account lock so a wrong profile can't deploy (offered after the first deploy)
auth('public'\|'iam') public iam requires signed requests
runtime(fn ...) PHP 8.5 PHP version and FrankenPHP/Octane: php(), frankenphp(), build(), binary(), workers(), maxThreads(), threads(), phpIni()
deployCommands([...]) — Commands run on every deploy before traffic moves, e.g. ['migrate --force']
console(bool = true) off Deploy the console function (arco command, arco tinker, deploy commands); console(false) deletes it
scheduler(int\|false) off Run schedule:run every N minutes (1, 2, 3, 4, 5, 6, 10, 12, 15, 20, 30, 60), clock-aligned in UTC; needs the console
logRetention(int\|false) 30 Days CloudWatch keeps the logs; false = never expire
queue(name, ...) none An SQS queue and its worker function; named options timeout, memory, maxInstances, batchSize, tries, dlq, fifo, existing, default
storage(name, ...) none An S3 bucket used as a Laravel disk; named options public, expire, cors, existing, default
cache() / failedJobsTable() off DynamoDB tables for Laravel's cache and failed jobs; existing: names your own table
table(name, ...) none A DynamoDB table (PK/SK strings, on demand) for your code, in ARCO_TABLES; named options ttl, existing
console(timeout:, memory:) 900 s, 2048 MB Console function timeout in seconds (3–900) and memory in MB (128–10240)
protected() production Ask before arco tinker, arco command, arco remove and arco queue:dlq --redrive on this environment (--yes answers; required without a terminal)

Every option, the packaging rules and the Laravel preset are in the configuration reference.

Commands

Command What it does
arco init Create arco.php (asks name, region, environments, custom domain)
arco deploy --env=<env> Build, upload, deploy commands, deploy, verify, attach domains; --migrate runs migrations first; --package=<zip> deploys a prebuilt zip; --config-layer=<path> merges a JSON config layer over arco.php (also on package, info, remove, logs, scheduler:pause, scheduler:resume, tenants:restore); --json streams NDJSON events and a result
arco console:add --env=<env> / console:remove Turn the console function on or off in arco.php (off deletes it on the next deploy)
arco command "<args>" --env=<env> Run an artisan (or PHP) command, given as one quoted string, on the console function (needs console()); exits with its exit code (--async to start it and return; --yes on a protected environment without a terminal)
arco tinker --env=<env> Tinker on your machine, statements run in Lambda (needs console(); --execute="<code>" for one statement)
arco scheduler:set [N] --env=<env> / scheduler:remove Run Laravel's scheduler every N minutes (suggests N from your tasks; turns the console on) / turn it off; --apply (or answer yes) applies it in AWS without a deploy
arco scheduler:pause --env=<env> / scheduler:resume (both take --config-layer) Pause or resume the scheduler (in a Go app, every schedule) in AWS at once, without editing arco.php or arco.json (deploys keep it paused)
arco tenants:restore --env=<env> Enable the tenant domains function again after an arco remove that stopped (deletes its reserved concurrency of 0 after the ownership checks; leaves any other limit; --json, --config-layer). See Removing an environment with tenant domains
arco logs:retention <days\|never> --env=<env> Set how long CloudWatch keeps the logs (--remove stops managing it)
arco queue:add <name> --env=<env> / queue:set / queue:remove Add, change or remove a queue in arco.php (removed queues stay in AWS with their messages)
arco queue:list --env=<env> Each queue's messages, dead-letter queue and worker version (--json too)
arco queue:dlq <name> --env=<env> Show the messages in a queue's dead-letter queue; --redrive moves them back
arco failed-jobs:add --env=<env> / failed-jobs:remove Turn the DynamoDB failed-jobs table on (--existing=<table>) or off in arco.php
arco storage:add <name> --env=<env> / storage:remove Add or remove a storage in arco.php (--existing=<bucket>, --default; removed buckets stay in AWS with their files)
arco storage:public / storage:expire / storage:cors Public prefixes, expiry rules and CORS origins of a storage (--remove takes one out)
arco storage:list --env=<env> Each storage's bucket, URL and options, and the retained buckets no longer in arco.php (--json too)
arco cache:add --env=<env> / cache:remove Turn the DynamoDB cache table on (--existing=<table>) or off in arco.php
arco table:add <name> --env=<env> / table:remove Add (--ttl=<attribute>, --existing=<table>) or remove a table() in arco.php (removed tables stay in AWS with their items)
arco logs --env=<env> Web, console and queue worker logs merged, filtered and colored (--follow, --since, --level, --request, --filter, --queue)
arco package --env=<env> Build the zip only (for CI: build once, deploy later)
arco info --env=<env> Resolved settings with their source, URL, active revision (--json too); with tenant domains it also shows the distribution, target and customer-domain count; --resources lists every AWS resource tagged for the environment
arco secret:set <name> --env=<env> Store a secret in SSM and print the reference to use
arco set <key> <value> --env=<env> / arco unset <key> Change concurrency, max-instances, rate-limit, timeout, log-level, console-timeout, console-memory in arco.php
arco domain:add <host> --env=<env> / domain:remove Change an environment's domains in arco.php
arco resources --env=<env> List the subnets, security groups, gateway endpoints, buckets, queues, tables, certificates and Route 53 zones you already have, and pick the ones to use (read-only; --json gives the command that adds each)
arco vpc:set --env=<env> / vpc:remove Set vpc() (--subnet, --security-group, --endpoint, each repeatable; the whole list at once) or remove it in arco.php
arco certificate:set <arn> --env=<env> / certificate:remove Use an existing ACM certificate (us-east-1) for the environment's domains, or go back to Arco's own
arco profile --env=<env> Show or change the AWS profile remembered for an environment (--json too)
arco remove --env=<env> Delete the function, its endpoint, role, workers and domain resources (queues, buckets, tables and log groups are kept); with tenantDomains() it stops at customer domains unless you pass --force (--yes is not enough); without a terminal it needs --yes; --json too; fails naming what is left (remove.leftovers), and running it again finishes the job; --no-wait-interfaces keeps the execution role instead of waiting for Lambda's VPC network interfaces; with tenantDomains() it disables the tenant domains function and counts customer domains first, and deletes them only with --force (--yes is not enough; otherwise --force is a deprecated alias of --yes)

Messages are in English or Spanish (--lang=es or ARCO_LANG=es).

Documentation

Limits (of Lambda Web Functions)

Packages

Package Install as Purpose
multiapi/arco require-dev The CLI
multiapi/arco-laravel require Laravel preset and service provider (ships with your app)
multiapi/arco-secrets dependency arco-ssm: / arco-secret: reference parsing

The packages are published from one monorepo. Please open issues in multi-api/arco.

Questions, ideas and show-and-tell go to GitHub Discussions.

Telemetry

The runtime sends an anonymous count of invocations (kind, Arco version, region; nothing that identifies you or your app); turn it off with ->telemetry(false) or ARCO_TELEMETRY_DISABLE=1. See Telemetry.

License

MIT


All versions of arco with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
ext-json Version *
ext-zip Version *
aws/aws-sdk-php Version ^3.401.1
guzzlehttp/guzzle Version ^7.8 || ^8.0
laravel/prompts Version ^0.3.25
multiapi/arco-secrets Version self.version
symfony/console Version ^7.1 || ^8.0
symfony/filesystem Version ^7.1 || ^8.0
symfony/process Version ^7.1 || ^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 multiapi/arco contains the following files

Loading the files please wait ...