Download the PHP package kabachello/codiware without Composer

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

Codiware

A self-contained, embeddable web IDE delivered as a single PSR-15 middleware plus a dependency-free SPA. Codiware is designed to be mounted under an arbitrary base path inside any PHP host application (e.g. the ExFace workbench) and operate on a configurable set of workspace folders.

Features

Requirements

Install

The package depends on npm-asset/* packages for optional front-end editors. The composer.json already enables Asset Packagist so npm-asset/monaco-editor and friends can be installed alongside PHP packages.

Mount in a host

CodiwareMiddleware implements Psr\Http\Server\MiddlewareInterface. Any request whose URI path is not under the configured base path is delegated unchanged to the next handler.

Workspace URL

GET {basePath}/repo/{workspacePath...} returns the SPA shell with a boot payload describing the requested workspace, user, theme, locale, and enabled extensions. All subsequent API calls go to other {basePath}/... routes.

Configuration

Defaults are shipped in config/defaults.config.json.

At runtime, CodiwareConfig behaves like ExFace config maps:

See dev-server.config.json.example for a documented sample.

Typical host override patterns:

Key options:

Key Purpose
URL_TO_API URL prefix the middleware listens on (default /codiware).
BASE_FOLDER Folder whose direct children are valid workspace aliases.
ALLOWED_ROOTS Explicit [{alias, path, label}] list overriding BASE_FOLDER.
DENY_PATTERNS fnmatch patterns rejected by PathGuard.
MAX_UPLOAD_BYTES Per-file upload limit.
GIT.BINARY Path to the git executable.
CONSOLE.ALLOW_PATTERNS Regex allowlist for raw console commands.
CONSOLE.PRESETS [{label, command}] shortcuts always allowed.
THEME.DEFAULT light or dark.
TRANSLATIONS.DEFAULT_LOCALE Initial UI locale.
EXTENSIONS.ENABLED Identifiers of front-end extensions to load.

Development server

Open http://localhost:8080/codiware/repo/{workspace-alias}.

Extending the editor

The SPA exposes a small global API on window.Codiware:

Each editor implements load(content, meta), getContent(), isDirty(), markClean(), destroy(), and an optional on('change'|'save-request', fn).

Adding a richer editor library (Monaco, CodeMirror 6, Toast UI):

  1. composer require npm-asset/monaco-editor (or similar)
  2. Drop a small JS module under public/js/extensions/ that imports the library from /{basePath}/assets/monaco-editor/... and calls window.Codiware.registerEditor(...).
  3. Add the extension id to EXTENSIONS.ENABLED in the config — the SPA boot payload exposes the list so your extension knows it is enabled.

Security model

License

MIT. See LICENSE.


All versions of codiware with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
psr/http-message Version ^1.1 || ^2.0
psr/http-server-middleware Version ^1.0
psr/http-server-handler Version ^1.0
psr/http-factory Version ^1.0
psr/log Version ^1.1 || ^2.0 || ^3.0
symfony/process Version ^5.4 || ^6.4 || ^7.0
npm-asset/font-awesome Version 4.7
npm-asset/toast-ui--editor Version ^3.1
npm-asset/xterm--xterm Version ^6
guzzlehttp/psr7 Version ^2.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 kabachello/codiware contains the following files

Loading the files please wait ...