Download the PHP package phpthis/workbench without Composer

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

PHPThis Workbench

PHPThis Workbench is an explicit, development-only expression workspace for a PHPThis application. It helps a human inspect ordinary objects, try one call, and observe one returned value or failure without adding a temporary HTTP route.

Workbench is not an application container, queue facade, test runner, debugger, production console, or sandbox. Every entered expression is unchecked arbitrary PHP. Its authority combines the launching operating-system identity, inherited environment, independently loaded child PHP CLI configuration, ambient filesystem, network, process, and service access, native PHP functions and Composer-autoloaded code, and every explicitly composed dependency. The narrow workspace limits the intended application surface; it is not containment.

Install

Package availability is external state. Before changing dependencies in a PHPThis consumer, read installed vendor/phpthis/framework/docs/workbench.md, obtain accountable-human approval, record the bootstrap, concrete workspace type, complete authority, excluded credentials, resource limits, side-effect and job-path policy, and retained-test evidence in .ai/workbench.md, verify phpthis/workbench through the application's approved Composer source, and require clean consumer-install evidence.

Workbench is intended to be installed only as a development dependency:

The initial release series is alpha software. Workbench currently supports PHP 8.4.x with ext-readline; the package does not claim PHP 8.5 compatibility until that runtime is covered by its required interactive test suite.

Create one application-owned bootstrap, for example tools/workbench.php. It is ordinary application PHP and must pass the application's normal composer check. It returns exactly one concrete final named application-owned object:

The concrete DevelopmentWorkspace class may expose narrowly named readonly values or operations. It is not a registry: do not give it a string-keyed service map, get() method, discovery, a service container, credentials, raw administrative connections, or generic queue dispatch.

The bootstrap argument is a 1-to-4,096-byte project-relative .php path using forward slashes. Empty, dot, parent, control-byte, absolute, root vendor, root .git, missing, unreadable, escaping, and directly symlinked paths are rejected. Start Workbench at a readable Composer project root with vendor/autoload.php already installed. The PHP CLI must also make proc_open available so Workbench can create the fresh expression process.

Fix the bootstrap path in the consuming application's Composer scripts:

Then start it from the application root:

Disabling Composer's process timeout keeps an intentional interactive session open beyond Composer's normal limit. It does not add a Workbench or per-expression timeout: an expression can still hang indefinitely until the operator or operating system terminates it.

Use

Workbench exposes only $workspace. Enter one PHP expression at a time:

A trailing semicolon is accepted. Each expression is compiled with declare(strict_types=1), receives a newly required bootstrap in a fresh child process, is inspected with native var_dump, and then exits. Variables and mutable objects do not persist into the next expression. Up and down recall up to 100 nonblank expressions from the current session; consecutive duplicates, :help, and :exit are omitted. :help shows the session rules and :exit closes Workbench.

Press Tab at the end of a nonempty line to complete :help, :exit, $workspace, or a matching expression already retained in the current session history. Session commands accept the trailing separator space that Readline may append to a unique completion. Completion uses only literal prefix matching. It does not inspect the workspace, discover application code, load the bootstrap, evaluate PHP, or persist candidates. Workbench provides no always-visible suggestion or application method and property completion.

An expression contains 1 through 16,384 bytes after the prompt, with no ASCII control byte or DEL. Workbench accepts one line and does not parse a statement language, provide multiline editing, or persist history.

This fresh-process model is deliberate. An ordinary compile failure, exception, or PHP Error ends that child without reusing its in-memory state in a later expression. It is not universal failure isolation: OS-level termination, resource exhaustion, signals, hangs, and durable side effects remain possible. A one-shot application operation does not reuse a connection, budget, trace, lease, worker, or other invocation state from an earlier experiment.

Jobs and side effects

An application may expose a concrete deferred-work handler with synthetic development input for inspection, or call an already-adopted business operation that atomically publishes one real job through the application's normal transaction path. Do not create a Workbench-only publisher or a second publication path. Workbench supplies no dispatch(), queue, job base class, class-name execution, discovery, run-by-ID, replay, retry, or worker helper.

Claiming one queued delivery remains the responsibility of the application's recorded, finite, tested, one-delivery operational command. The framework example spells this command jobs:run-one; that spelling is not a universal application command. Production one-off work also belongs in the application's operational console, where argument, authority, output, redaction, failure, idempotency, and audit behavior can be reviewed and tested.

Safety boundary

Production artifacts should install Composer dependencies with --no-dev and verify that phpthis/workbench and vendor/bin/phpthis-workbench are absent.


All versions of workbench with dependencies

PHP Build Version
Package Version
Requires php Version ~8.4.0
ext-readline 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 phpthis/workbench contains the following files

Loading the files please wait ...