PHPackages                             felixdorn/tin - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. felixdorn/tin

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

felixdorn/tin
=============

tin is a code highlighter for PHP.

2.0.0(2y ago)1717MITPHPPHP ^8.3

Since Nov 1Pushed 2y ago1 watchersCompare

[ Source](https://github.com/felixdorn/tin)[ Packagist](https://packagist.org/packages/felixdorn/tin)[ RSS](/packages/felixdorn-tin/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (10)Dependencies (5)Versions (14)Used By (0)

tin
===

[](#tin)

tin is a code highlighter for PHP (Terminal, HTML, etc.).

[![Tests](https://github.com/felixdorn/tin/actions/workflows/tests.yml/badge.svg)](https://github.com/felixdorn/tin/actions/workflows/tests.yml)[![Formats](https://github.com/felixdorn/tin/actions/workflows/formats.yml/badge.svg)](https://github.com/felixdorn/tin/actions/workflows/formats.yml)[![Version](https://camo.githubusercontent.com/12c32988fb76f2d81d0c51dcfaabbeb6d4abc605ad94597a4fdd0e104c12438c/68747470733a2f2f706f7365722e707567782e6f72672f66656c6978646f726e2f74696e2f76657273696f6e)](//packagist.org/packages/felixdorn/tin)[![Total Downloads](https://camo.githubusercontent.com/e7c3b34cba92c5618b96413d89abb3b40922d08c745f2875d591d34e8a0520cd/68747470733a2f2f706f7365722e707567782e6f72672f66656c6978646f726e2f74696e2f646f776e6c6f616473)](//packagist.org/packages/felixdorn/tin)[![License](https://camo.githubusercontent.com/aaa81b0409750a92839cfca4573aa6f63ad5797b3466634d7c2dc55f24b4e730/68747470733a2f2f706f7365722e707567782e6f72672f66656c6978646f726e2f74696e2f6c6963656e7365)](//packagist.org/packages/felixdorn/tin)

Installation
------------

[](#installation)

> Requires [PHP 8.3+](https://php.net/releases)

You can install the package via composer:

```
composer require felixdorn/tin
```

Screenshots
-----------

[](#screenshots)

[![A piece of code highlighted using tin ](art/screenshot.png)](art/screenshot.png)

[![Another piece of code highlighted using tin](art/screenshot2.png)](art/screenshot2.png)

Yes, this comes from a terminal.

Usage
-----

[](#usage)

```
