1. Go to this page and download the library: Download polaris/agents library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
polaris / agents example snippets
use Polaris\Admin\AdminPlugin;
use Polaris\Agents\AgentsPlugin;
use Polaris\Agents\Capability;
use Polaris\Agents\ExecutionContext;
use Polaris\Audit\AuditPlugin;
use Polaris\OAuth\OAuthPlugin;
$polaris = Polaris::create(new Config(..., plugins: [
new AuditPlugin(),
new AdminPlugin(),
new OAuthPlugin(baseUrl: 'https://app.example.com/auth'),
new AgentsPlugin(
baseUrl: 'https://app.example.com/auth',
approvalUrl: 'https://app.example.com/agents/approve',
capabilities: [
new Capability(
name: 'deploy.staging',
description: 'Deploy a build to staging',
input: ['type' => 'object', 'properties' => ['build' => ['type' => 'string']], '
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.