PHPackages                             mansoor/filament-torchlight - 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. mansoor/filament-torchlight

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

mansoor/filament-torchlight
===========================

This is my package filament-torchlight

v0.0.3(2y ago)103912[2 PRs](https://github.com/mansoorkhan96/filament-torchlight/pulls)MITPHPPHP ^8.1

Since May 27Pushed 2y ago1 watchersCompare

[ Source](https://github.com/mansoorkhan96/filament-torchlight)[ Packagist](https://packagist.org/packages/mansoor/filament-torchlight)[ Docs](https://github.com/mansoor/filament-torchlight)[ RSS](/packages/mansoor-filament-torchlight/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (7)Versions (7)Used By (0)

Filament Torchlight
===================

[](#filament-torchlight)

[![Latest Version on Packagist](https://camo.githubusercontent.com/6586cfac545a291feb4b1b4ca1ba172501f4799b707b7479bb2123fa71163108/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d616e736f6f722f66696c616d656e742d746f7263686c696768742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mansoor/filament-torchlight)[![Total Downloads](https://camo.githubusercontent.com/7f8e9b669a59237e73ff278cf67ed17c788f831c27d861d4263f40d1d0e158c3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d616e736f6f722f66696c616d656e742d746f7263686c696768742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mansoor/filament-torchlight)

A [Torchlight](https://torchlight.dev/) plugin for [FilamentPHP](https://filamentphp.com), it provides a read-only field to hightlight the code under field.

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

[](#installation)

To install, require the package from composer:

```
composer require mansoor/filament-torchlight
```

### ⚠️ Use version `0.0.2` for Filament 2 support ⚠️

[](#️-use-version-002-for-filament-2-support-️)

```
composer require "creagia/filament-code-field:^0.0.2"
```

Setup Torchlight
----------------

[](#setup-torchlight)

You must follow the Torchlight documentation to [Add Torchlight Middleware](https://torchlight.dev/docs/clients/laravel#middleware) and [Publish the Torchlight configuration file](https://torchlight.dev/docs/clients/laravel#configuration)

Once you are done. Make sure to create an API Token from [torchlight.dev](https://torchlight.dev) and add to your `.env` file.

```
TORCHLIGHT_TOKEN=your_token_goes_here
```

Usage
-----

[](#usage)

```
use Mansoor\FilamentTorchlight\TorchlightCode;

class FileResource extends Resource
{
    public static function form(Form $form): Form
    {
        return $form
            ->schema([
                TorchlightCode::make('code')
                    ->columnSpanFull()
                    ->theme('github-dark')
                    ->language('php')
            ]);
    }
}
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Mansoor Khan](https://github.com/mansoorkhan96)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 68.2% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~37 days

Total

3

Last Release

1007d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/76515e51b221a3505c36acda921bef4520c4b621091233a94b52836a6231bac4?d=identicon)[mansoorkhan96](/maintainers/mansoorkhan96)

---

Top Contributors

[![mansoorkhan96](https://avatars.githubusercontent.com/u/51432274?v=4)](https://github.com/mansoorkhan96 "mansoorkhan96 (15 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (3 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (3 commits)")[![fsamapoor](https://avatars.githubusercontent.com/u/4992968?v=4)](https://github.com/fsamapoor "fsamapoor (1 commits)")

---

Tags

laravelmansoortorchlightfilament-torchlight

###  Code Quality

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/mansoor-filament-torchlight/health.svg)

```
[![Health](https://phpackages.com/badges/mansoor-filament-torchlight/health.svg)](https://phpackages.com/packages/mansoor-filament-torchlight)
```

###  Alternatives

[guava/calendar

Adds support for vkurko/calendar to Filament PHP.

298241.0k3](/packages/guava-calendar)[pboivin/filament-peek

Full-screen page preview modal for Filament

253319.6k12](/packages/pboivin-filament-peek)[dotswan/filament-map-picker

Easily pick and retrieve geo-coordinates using a map-based interface in your Filament applications.

124139.3k2](/packages/dotswan-filament-map-picker)[creagia/filament-code-field

A Filamentphp input field to edit or view code data.

58289.3k3](/packages/creagia-filament-code-field)[swisnl/filament-backgrounds

Beautiful backgrounds for Filament auth pages

54149.2k6](/packages/swisnl-filament-backgrounds)[hydrat/filament-table-layout-toggle

Filament plugin adding a toggle button to tables, allowing user to switch between Grid and Table layouts.

6292.3k1](/packages/hydrat-filament-table-layout-toggle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
