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

Abandoned → [torchlight/torchlight-laravel](/?search=torchlight%2Ftorchlight-laravel)Library

torchlight/laravel
==================

A Laravel Client for Torchlight, the syntax highlighting API.

v0.6.2(2mo ago)12028717[18 issues](https://github.com/torchlight-api/torchlight-laravel/issues)[1 PRs](https://github.com/torchlight-api/torchlight-laravel/pulls)MITPHPPHP ^7.3|^8.0CI passing

Since May 20Pushed 2mo ago2 watchersCompare

[ Source](https://github.com/torchlight-api/torchlight-laravel)[ Packagist](https://packagist.org/packages/torchlight/laravel)[ Docs](https://torchlight.dev)[ RSS](/packages/torchlight-laravel/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (10)Dependencies (20)Versions (31)Used By (0)

Laravel Torchlight Client
=========================

[](#laravel-torchlight-client)

[![Tests](https://github.com/torchlight-api/torchlight-laravel/actions/workflows/tests.yml/badge.svg)](https://github.com/torchlight-api/torchlight-laravel/actions/workflows/tests.yml) [![Latest Stable Version](https://camo.githubusercontent.com/6a7a4ebc652cb9e774c311a4721e49254bae0fb193938f437ad5fda0b2cef352/68747470733a2f2f706f7365722e707567782e6f72672f746f7263686c696768742f746f7263686c696768742d6c61726176656c2f76)](//packagist.org/packages/torchlight/torchlight-laravel) [![Total Downloads](https://camo.githubusercontent.com/8b4372d45e22024f3733bb02b8594a8e372d2dd976cb83da3cd46271a54fa2f2/68747470733a2f2f706f7365722e707567782e6f72672f746f7263686c696768742f746f7263686c696768742d6c61726176656c2f646f776e6c6f616473)](//packagist.org/packages/torchlight/torchlight-laravel) [![License](https://camo.githubusercontent.com/6a8114e8607421263118e3b1e34a67d5a3775cd27e20b4dd35de527de9478417/68747470733a2f2f706f7365722e707567782e6f72672f746f7263686c696768742f746f7263686c696768742d6c61726176656c2f6c6963656e7365)](//packagist.org/packages/torchlight/torchlight-laravel)

A [Torchlight](https://torchlight.dev) syntax highlighting extension for the [Laravel](https://laravel.com/) framework.

Torchlight is a VS Code-compatible syntax highlighter that requires no JavaScript, supports every language, every VS Code theme, line highlighting, git diffing, and more.

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

[](#installation)

To install, require the package from composer:

```
composer require torchlight/torchlight-laravel

```

Configuration
-------------

[](#configuration)

Once the package is downloaded, you can run the following command to publish your configuration file:

```
php artisan torchlight:install

```

Once run, you should see a new file `torchlight.php` in you `config` folder, with contents that look like this:

```
