Download the PHP package oxphp/runtime without Composer

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

oxphp/runtime

OxPHP runtime adapter — run Symfony, Laravel and PSR-15 applications on the OxPHP server in both traditional and worker mode.

Extends symfony/runtime. Zero hard dependencies on any framework or PSR-7 implementation — everything is auto-detected when the container is resolved.

Requirements

Installation

Then set the runtime in .env:

Your public/index.php stays as it would be under symfony/runtime:

Supported application types

Return type from index.php Runner
Psr\Http\Server\RequestHandlerInterface Psr15Runner
Illuminate\Contracts\Http\Kernel LaravelRunner
Symfony\Component\HttpKernel\HttpKernelInterface HttpKernelRunner
Symfony\Component\HttpFoundation\Response HttpFoundationResponseRunner
Psr\Http\Message\ResponseInterface Psr7ResponseRunner

Any other type throws LogicException. Console applications are out of scope — run them under the stock PHP CLI SAPI.

Traditional vs worker mode

Mode is auto-detected via oxphp_is_worker(). Nothing to configure on the runtime side. In worker mode:

Resetters

Register custom resetters via APP_RUNTIME_OPTIONS:

Your class implements OxPHP\Runtime\Resetter\ResetterInterface:

Symfony users get the container's services_resetter (any service tagged kernel.reset) wired up automatically — no registration needed.

PSR-17 factory

Used only by PSR-15 and bare PSR-7 Response paths. Auto-detected in this order:

  1. Nyholm\Psr7\Factory\Psr17Factory (recommended)
  2. GuzzleHttp\Psr7\HttpFactory
  3. HttpSoft\Message\ServerRequestFactory (+ siblings)
  4. Laminas\Diactoros\ServerRequestFactory (+ siblings)

Override via APP_RUNTIME_OPTIONS:

Streaming

StreamedResponse, StreamedJsonResponse, and PSR-7 bodies with readable streams are streamed chunk-by-chunk — ideal for SSE and large payloads.

Streamed callbacks are driven live: every echo inside a StreamedResponse callback goes to the wire as soon as it happens — chunks are never collected and replayed after the callback returns. The runtime enables PHP's implicit flush while driving the callback, so the engine pushes each chunk through the OxPHP SAPI's flush hook on write; the callback does not need to call flush() itself. PSR-7 stream bodies are flushed per chunk via oxphp_stream_flush(). An exception thrown mid-stream closes the runtime's output buffers cleanly (bytes already streamed stay sent, partial buffers are discarded) and never poisons the worker.

For "respond early, keep working" patterns use oxphp_finish_request() directly in your controller:

License

MIT


All versions of runtime with dependencies

PHP Build Version
Package Version
Requires php Version >=8.4
symfony/runtime Version ^6.4 || ^7.0 || ^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 oxphp/runtime contains the following files

Loading the files please wait ...