Download the PHP package ext-php-copilot/client without Composer

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

ext-php-copilot

ext-php-copilot is a PHP 8.3+ extension, written in Rust with ext-php-rs, for driving GitHub Copilot through the Rust github-copilot-sdk.

The extension embeds the GitHub Copilot CLI when built with COPILOT_CLI_VERSION, while still supporting COPILOT_CLI_PATH and PATH resolution for local development.

Requirements

Build

Build with an embedded CLI:

Run a PHP script with the debug extension on macOS:

On Linux the extension suffix is .so; on Windows it is .dll.

Acceptance Test

Create a local .env file with a Copilot-enabled token. The file is ignored by Git.

Then run the live acceptance test:

The script loads .env, verifies authentication, sends one prompt, and stores local Copilot CLI state under var/copilot-acceptance.

Usage Documentation

See docs/README.md for PHP wrapper usage, native extension methods, every supported option, and examples for each method.

Platform Support

The Copilot SDK supports embedded CLI targets for macOS arm64/x64, Linux arm64/x64, and Windows arm64/x64. PHP extensions are ABI-specific, so release artifacts must be built per OS, architecture, PHP 8.3 patch version, ZTS/NTS mode, and debug/non-debug mode.

cargo-php is useful for install/stub workflows on macOS and Linux. Windows support should build through Cargo directly with PHP 8.3 development headers and rust-lld.

Release Artifacts

Version tags build downloadable release archives for Linux, macOS, and Windows. Each OS gets two variants:

Available releases are published on GitHub:

AI Contribution Attribution

Assisted-by: GitHub Copilot

License

MIT License.

Copyright (c) 2026 Per Søderlind.


All versions of client with dependencies

PHP Build Version
Package Version
Requires php Version >=8.3
ext-ext_php_copilot 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 ext-php-copilot/client contains the following files

Loading the files please wait ...