{"id":40487719,"url":"https://github.com/torchlight-api/torchlight-laravel","last_synced_at":"2026-01-20T18:48:48.827Z","repository":{"id":43935409,"uuid":"347434606","full_name":"torchlight-api/torchlight-laravel","owner":"torchlight-api","description":"A Laravel client for Torchlight - the syntax highlighting API.","archived":false,"fork":false,"pushed_at":"2025-03-22T15:41:59.000Z","size":127,"stargazers_count":119,"open_issues_count":19,"forks_count":18,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-12-26T16:51:02.456Z","etag":null,"topics":["code-highlighter","laravel","laravel-client","syntax-highlighting","torchlight","vscode"],"latest_commit_sha":null,"homepage":"https://torchlight.dev","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/torchlight-api.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-03-13T17:28:38.000Z","updated_at":"2025-04-01T23:29:05.000Z","dependencies_parsed_at":"2024-06-18T14:05:16.424Z","dependency_job_id":"b6fe47e2-261a-4e42-ae05-89460b308fe2","html_url":"https://github.com/torchlight-api/torchlight-laravel","commit_stats":{"total_commits":111,"total_committers":10,"mean_commits":11.1,"dds":0.4054054054054054,"last_synced_commit":"ecdabd33326f9b37da95032c971a340c4e3f4306"},"previous_names":[],"tags_count":28,"template":false,"template_full_name":null,"purl":"pkg:github/torchlight-api/torchlight-laravel","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/torchlight-api%2Ftorchlight-laravel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/torchlight-api%2Ftorchlight-laravel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/torchlight-api%2Ftorchlight-laravel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/torchlight-api%2Ftorchlight-laravel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/torchlight-api","download_url":"https://codeload.github.com/torchlight-api/torchlight-laravel/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/torchlight-api%2Ftorchlight-laravel/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28609208,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T16:10:39.856Z","status":"ssl_error","status_checked_at":"2026-01-20T16:10:39.493Z","response_time":117,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["code-highlighter","laravel","laravel-client","syntax-highlighting","torchlight","vscode"],"created_at":"2026-01-20T18:48:48.728Z","updated_at":"2026-01-20T18:48:48.812Z","avatar_url":"https://github.com/torchlight-api.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Laravel Torchlight Client\n\n[![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://poser.pugx.org/torchlight/torchlight-laravel/v)](//packagist.org/packages/torchlight/torchlight-laravel) [![Total Downloads](https://poser.pugx.org/torchlight/torchlight-laravel/downloads)](//packagist.org/packages/torchlight/torchlight-laravel) [![License](https://poser.pugx.org/torchlight/torchlight-laravel/license)](//packagist.org/packages/torchlight/torchlight-laravel)\n\n\nA [Torchlight](https://torchlight.dev) syntax highlighting extension for the [Laravel](https://laravel.com/) framework.\n\nTorchlight is a VS Code-compatible syntax highlighter that requires no JavaScript, supports every language, every VS Code theme, line highlighting, git diffing, and more.\n\n## Installation\n\nTo install, require the package from composer:\n\n```\ncomposer require torchlight/torchlight-laravel\n```\n\n## Configuration\n\nOnce the package is downloaded, you can run the following command to publish your configuration file:\n\n```\nphp artisan torchlight:install\n```\n\nOnce run, you should see a new file `torchlight.php` in you `config` folder, with contents that look like this:\n\n```php\n\u003c?php\nreturn [\n    // The Torchlight client caches highlighted code blocks. Here\n    // you can define which cache driver you'd like to use.\n    'cache' =\u003e env('TORCHLIGHT_CACHE_DRIVER'),\n\n    // Which theme you want to use. You can find all of the themes at\n    // https://torchlight.dev/themes, or you can provide your own.\n    'theme' =\u003e env('TORCHLIGHT_THEME', 'material-theme-palenight'),\n\n    // Your API token from torchlight.dev.\n    'token' =\u003e env('TORCHLIGHT_TOKEN'),\n\n    // If you want to register the blade directives, set this to true.\n    'blade_components' =\u003e true,\n\n    // The Host of the API.\n    'host' =\u003e env('TORCHLIGHT_HOST', 'https://api.torchlight.dev'),\n];\n\n```\n### Cache\n\nSet the cache driver that Torchlight will use.\n\n### Theme\n\nYou can change the theme of all your code blocks by adjusting the `theme` key in your configuration.\n\n### Token\n\nThis is your API token from [torchlight.dev](https://torchlight.dev). (Torchlight is completely free for personal and open source projects.)\n\n### Blade Components\n\nBy default Torchlight works by using a [custom Laravel component](https://laravel.com/docs/master/blade#components). If you'd like to disable the registration of the component for whatever reason, you can turn this to false.\n\n### Host\n\nYou can change the host where your API requests are sent. Not sure why you'd ever want to do that, but you can!","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftorchlight-api%2Ftorchlight-laravel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftorchlight-api%2Ftorchlight-laravel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftorchlight-api%2Ftorchlight-laravel/lists"}