Download the PHP package ineersa/symfony-ai-openai-codex-platform without Composer

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

OpenAI Codex for Symfony AI

Connect Symfony AI to Codex with your ChatGPT account. Browser login, token refresh, and WebSocket streaming are included.

The websocket-cached transport reuses WebSocket connections between turns. GPT-5.6 and newer Codex models require WebSocket and no longer support SSE.

Requires PHP 8.5+ and a ChatGPT account with Codex access.

Install the package

Log in and send a message

Here's a small CLI example, codex.php. It saves your login in var/codex/auth.json so you don't need to log in for every request. Add that file to .gitignore.

Run the two commands:

Log in once in your browser, then run ask to stream a reply over WebSocket. The example refreshes expired credentials before sending a request.

Login options

Option Default What it does
--port 1455 Port for the local OAuth callback listener
--timeout 300 Seconds to wait for the browser callback
--no-browser Off Print the login URL without opening a browser
--refresh Off Refresh saved credentials instead of starting a new login

For example, choose another callback port and open the login URL yourself:

To refresh an existing login:

Use php codex.php auth:codex --help for help, including standard Symfony Console options.

For an existing application, see API reference.

Develop

Run composer install, then castor test, castor phpstan, and castor cs-check.

MIT license.


All versions of symfony-ai-openai-codex-platform with dependencies

PHP Build Version
Package Version
Requires php Version >=8.5
ext-mbstring Version *
amphp/amp Version ^3.1
amphp/http Version ^2.1
amphp/websocket-client Version ^2.0
league/oauth2-client Version ^2.8
psr/log Version ^3.0
symfony/ai-platform Version ^0.12 || ^0.13 || ^0.14
symfony/ai-open-responses-platform Version ^0.12 || ^0.13 || ^0.14
symfony/clock Version ^8.0
symfony/console Version ^8.1
symfony/filesystem Version ^8.0
symfony/http-client Version ^8.0
symfony/http-client-contracts Version ^3.0
symfony/event-dispatcher-contracts Version ^3.0
symfony/lock Version ^8.0
symfony/process Version ^8.0
symfony/serializer Version ^8.0
symfony/uid Version ^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 ineersa/symfony-ai-openai-codex-platform contains the following files

Loading the files please wait ...