Download the PHP package comphp/runtime without Composer

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

CommonPHP Runtime

Latest Stable Version PHP Version Tests License Total Downloads

CommonPHP Runtime is the bootstrap/runtime foundation for CommonPHP applications. It provides the small layer that starts an application, creates the runtime container, runs an executive, emits lifecycle events, and returns or exits with an integer status code.

The package handles kernel execution, initialization context, dotenv loading, two-phase container creation, modules, service providers, events, drivers, logging access, path resolution, runtime context, and runtime error handling.

What It Is Not

CommonPHP Runtime is not an HTTP framework, router, ORM, config system, filesystem abstraction, session library, cache library, security system, or advanced logging system. It is the boot ROM, not the whole operating system.

See package boundaries for what belongs here and what belongs in separate CommonPHP packages.

Features

Requirements

No additional PHP extensions are declared by this package.

Installation

If this package has not been published yet, this command represents the intended Packagist install command once published.

Quick Start

Use execute() when you want an exit status back. Use run() when the kernel should call exit() for you.

Core Concepts

Kernel

The kernel is the main runtime object. It loads environment state, resolves paths, creates the PHP-DI container, imports modules, configures service providers, emits events, runs the executive, and handles shutdown.

Initialization Context

Initialization context lets advanced callers provide runtime collaborators such as a path resolver, module manager, environment loader, container factory, lifecycle handler, event emitter, logger class, container options, and initial environment state.

Executives

Executives are runtime modes. A web executive, console executive, worker executive, or test executive can all implement the same ExecutiveInterface.

Modules

Modules are lightweight registration objects imported before the container is built.

Service Providers

Service providers add definitions to the PHP-DI ContainerBuilder.

Lifecycle

Lifecycle describes startup and shutdown ordering for kernels, executives, modules, service providers, and lifecycle events.

Events

Events are object-based and subscribed to by class name, with optional priorities.

Drivers

Drivers are subsystem-owned implementation objects created lazily by an isolated driver container.

Logging

Logging uses PSR-3. If no logger is configured, the runtime binds Psr\Log\NullLogger.

AppContext

AppContext is a readonly snapshot of start time, environment, debug flag, and root path.

Path Resolution

Path resolution joins root-relative paths. It is not a filesystem abstraction.

Error Handling

Error handling converts executive failures into runtime error events, logs failures when a logger is available, and returns ExitStatus::EXCEPTION.

Documentation

Start with the documentation index.

Key pages:

Examples

Examples live in docs/examples:

Testing and Code Style

If dependencies are installed:

The current composer.json also includes test, cs:check, and lint scripts. See development dependencies.

Versioning

CommonPHP Runtime is intended to follow semantic versioning. Public interfaces, method names, and observable lifecycle behavior should be treated as compatibility-sensitive.

Contributing

See CONTRIBUTING.md.

Security

See SECURITY.md.

License

CommonPHP Runtime is released under the MIT license declared in composer.json.


All versions of runtime with dependencies

PHP Build Version
Package Version
Requires php Version ^8.5
php-di/php-di Version ^7.1
symfony/dotenv Version ^8.0
psr/log Version ^3.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 comphp/runtime contains the following files

Loading the files please wait ...