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)104092[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 today

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

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity48

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

1059d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/51432274?v=4)[Mansoor Ahmed](/maintainers/mansoorkhan96)[@mansoorkhan96](https://github.com/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

[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3914.6k](/packages/rawilk-profile-filament-plugin)[spatie/laravel-pdf

Create PDFs in Laravel apps

1.0k4.8M46](/packages/spatie-laravel-pdf)[stephenjude/filament-jetstream

A Laravel starter kit built with Filament inspired by Jetstream.

17760.2k3](/packages/stephenjude-filament-jetstream)[stephenjude/filament-debugger

About

104162.2k2](/packages/stephenjude-filament-debugger)[codewithdennis/filament-select-tree

The multi-level select field enables you to make single selections from a predefined list of options that are organized into multiple levels or depths.

329530.5k29](/packages/codewithdennis-filament-select-tree)[malzariey/filament-daterangepicker-filter

This package uses daterangepciker library to filter date by a range or predefined date ranges (Today , Yesterday ...etc)

1772.3M23](/packages/malzariey-filament-daterangepicker-filter)

PHPackages © 2026

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