Download the PHP package torchlight/torchlight-laravel without Composer
On this page you can find all versions of the php package torchlight/torchlight-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download torchlight/torchlight-laravel
More information about torchlight/torchlight-laravel
Files in torchlight/torchlight-laravel
Package torchlight-laravel
Short Description A Laravel Client for Torchlight, the syntax highlighting API.
License MIT
Homepage https://torchlight.dev
Informations about the package torchlight-laravel
Laravel Torchlight Client
A Torchlight syntax highlighting extension for the Laravel 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
To install, require the package from composer:
Configuration
Once the package is downloaded, you can run the following command to publish your configuration file:
Once run, you should see a new file torchlight.php
in you config
folder, with contents that look like this:
Cache
Set the cache driver that Torchlight will use.
Theme
You can change the theme of all your code blocks by adjusting the theme
key in your configuration.
Token
This is your API token from torchlight.dev. (Torchlight is completely free for personal and open source projects.)
Blade Components
By default Torchlight works by using a custom Laravel component. If you'd like to disable the registration of the component for whatever reason, you can turn this to false.
Host
You can change the host where your API requests are sent. Not sure why you'd ever want to do that, but you can!
All versions of torchlight-laravel with dependencies
illuminate/support Version ^8.0|^9.0|^10.0|^11.0
illuminate/console Version ^8.0|^9.0|^10.0|^11.0
illuminate/http Version ^8.0|^9.0|^10.0|^11.0
illuminate/cache Version ^8.0|^9.0|^10.0|^11.0
illuminate/view Version ^8.0|^9.0|^10.0|^11.0
guzzlehttp/guzzle Version ^7.2
ramsey/uuid Version ^3.7|^4.0