1. Go to this page and download the library: Download kambo/cctranscripts library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
kambo / cctranscripts example snippets
ClaudeCodeTranscripts\ClaudeCodeTranscripts;
$transcripts = new ClaudeCodeTranscripts();
// Convert a single session
$transcripts->generateHtml('/path/to/session.jsonl', './output');
// Convert with GitHub repo for commit links
$transcripts->generateHtml('/path/to/session.jsonl', './output', 'owner/repo');
// Find local sessions
$sessions = $transcripts->findLocalSessions($_SERVER['HOME'] . '/.claude/projects', 10);
// Generate batch archive
$stats = $transcripts->generateBatchHtml(
$_SERVER['HOME'] . '/.claude/projects',
'./archive',
false, //
bash
git clone https://github.com/kambo-1st/php-cc-transcripts.git
cd php-cc-transcripts
composer install
./bin/claude-code-transcripts --help
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.