Download the PHP package tetrode/chalkmark without Composer

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

Chalkmark


Render Markdown right in your terminal — headings, colors, lists, code blocks


Chalkmark supports

Chalkmark is a small PHP library that renders a large subset of Markdown to plain-text suitable for CLI output, with optional ANSI colors. It is designed to be lightweight and dependency-free. An example of the terminal output is shown at the end of this README.

Rationale

Embedding Chalkmark into your PHP Docker image turns the container into a self‑documenting, self‑supporting product. Operators can quickly discover how to use the image, read the full README.md directly in the terminal (with clear formatting and optional colors), and run the app without leaving the CLI. This reduces support tickets and misconfigurations, while improving developer experience and adoption.

Chalkmark supports:

Notes on header background bars (reversed theme):

Rendered output ends with a trailing newline and ensures there is a blank line at the end.

Requirements

Installation

This package is a Composer library. From a project that uses Composer, you can install it with:

Usage

Minimal example rendering a file and printing to STDOUT:

Customizing colors or disabling them:

Theming

Chalkmark supports themes. A theme is a simple associative array mapping style keys to ANSI escape sequences. The default theme mirrors the legacy built-in colors.

Theme Gallery (quick preview):

Notes on 256‑color usage:

You can also provide your own theme:

1) Register at runtime:

2) Load from a PHP file that returns an array:

Override precedence: built-in theme < registered/file theme < per-run $colors overrides. Setting an override value to '', false, or null disables that style.

Command-line demo

This repository includes a tiny demo script you can run locally after installing dependencies:

Table example

Input:

Output (no colors):

Running tests

PHPUnit is configured as a dev dependency. After composer install you can run:

Tests include both behavior assertions and a demonstration that writes rendered output to the CLI.

Versioning

v1.0.3

v1.0.1

License

Chalkmark is made available under the MIT License (MIT). Please see License File for more information.


All versions of chalkmark with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
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 tetrode/chalkmark contains the following files

Loading the files please wait ...