Download the PHP package wazum/stipple without Composer

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

stipple

Render small SVG icons as monochrome ANSI in the terminal — pure PHP, zero system dependencies.

Drop it into any PHP CLI tool that wants real icons next to its menu items. The output is a plain string ending in \n per row — works equally well with echo, Symfony Console, Laravel/Prompts, or whatever else writes to a TTY. Two pluggable samplers ship: Braille (default) for highest density and half-block as a more universal fallback.

Preview

The actions-brand-github icon from TYPO3.Icons (MIT-licensed) — source SVG and Braille rendering at heights 4, 6, 8:

Source SVG (16×16) Braille, height(4) Braille, height(6) Braille, height(8)

Same icon at height(8) rendered with the half-block sampler — coarser, but works in any terminal/font:

Install

Requires PHP 8.2+ with ext-gd, ext-mbstring, ext-dom, ext-simplexml. No system binaries needed — rasterization is handled in pure PHP via meyfa/php-svg.

Usage

The output is a plain string ending in \n per row, safe to echo or pass to Laravel/Prompts' note()/info().

Samplers

Sampler Density Glyphs Best for
BrailleSampler (default) 2×4 px/cell U+2800U+28FF Highest fidelity for line-art icons. Needs a Braille-capable monospace font (JetBrains Mono, Cascadia, DejaVu, Iosevka all work).
HalfBlockSampler 1×2 px/cell ▀ ▄ █ Universal — works in any terminal/font including legacy cmd.exe.

For a 16×16 SVG at height(4) the Braille sampler maps 1:1 with the source pixel grid; at height(8) it super-samples 2×.

Alignment note. Blank Braille cells emit U+2800 so adjacent icons stay column-aligned in fonts that render U+2800 narrower than other Braille glyphs. The half-block sampler emits raw spaces for blank rows — usually fine, but two icons rendered side-by-side may drift by a column on terminals/fonts that treat space and as different widths.

Demo

Two scripts are bundled in this repository. They run only from a checkout — the bin/ and examples/ directories are excluded from the Composer dist tarball, so they're not shipped to library consumers.

Pluggable rasterizer

The default rasterizer wraps meyfa/php-svg. You can swap in a different backend later by implementing RasterizerInterface:

Security

The preprocessor hardens SVG input before rasterization:

Supported SVG features

The preprocessor handles common patterns found in icon SVGs from any source:

Anything not in the above list is passed through to the rasterizer untouched.

Development

License

MIT — see LICENSE. Bundled demo icons (examples/icons/) are MIT-licensed by the TYPO3.Icons project — see THIRD_PARTY_NOTICES.md.


All versions of stipple with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
ext-gd Version *
ext-mbstring Version *
ext-dom Version *
ext-simplexml Version *
meyfa/php-svg Version ^0.16
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 wazum/stipple contains the following files

Loading the files please wait ...