Download the PHP package cors/symfony-ai-506-platform without Composer

On this page you can find all versions of the php package cors/symfony-ai-506-platform. 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 symfony-ai-506-platform

506.ai Platform for Symfony AI

Symfony AI platform bridge for the 506.ai public API (API docs).

It lets you use the LLMs, roles, assistants, files and data collections of your 506.ai organization through Symfony AI's PlatformInterface — plain text, streaming and structured output into PHP objects.

This is a community package maintained by CORS GmbH, it is not affiliated with Symfony or 506.ai.

Installation

An admin creates the API key on the 506.ai platform (admin settings → API); the organization id is shown on the same page.

Usage

Standalone

Symfony

Register the bundle:

The platform is registered as ai.platform.ai506 and can be autowired by name:

With symfony/ai-bundle installed, the platform shows up in the profiler, works with bin/console ai:platform:invoke ai506 gpt-4.1 "Hello" and can be used by agents:

Streaming

Structured output

Uses 506.ai's generateStructuredOutput endpoint. Requires Symfony AI's structured output PlatformSubscriber on the event dispatcher (registered automatically by symfony/ai-bundle):

Options

Pass options per invocation or in the model name (gpt-4.1?mode=QA&temperature=0.5):

Option 506.ai field Description
temperature temperature 0.0–1.0, default 0.2 (mandatory for 506.ai)
mode selectedMode BASIC (default), QA (vector search) or SEARCH (web search)
role_id roleId Role shared with the API user
assistant_id selectedAssistantId Pre-configured assistant, overrides model, role and temperature
selected_files selectedFiles uniqueTitles of uploaded media
data_collections selectedDataCollections Data collection ids (QA mode only)
internal_system_prompt ?internalSystemPrompt Default true
citation ?citation Inline citation mapping in the references (QA mode)
stream Stream the answer
response_format jsonStructure Structured output

In QA mode the answer's references are available as result metadata:

Limitations

License

MIT, see LICENSE.md.


All versions of symfony-ai-506-platform with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
symfony/ai-platform Version ^0.14
symfony/http-client Version ^7.3|^8.0
symfony/mime Version ^7.3|^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 cors/symfony-ai-506-platform contains the following files

Loading the files please wait ...