PHP code example of mi-lopez / claude-git-hook
1. Go to this page and download the library: Download mi-lopez/claude-git-hook 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/ */
mi-lopez / claude-git-hook example snippets
bash
php src/Installer.php
bash
# Set environment variable
export CLAUDE_API_KEY="your-api-key-here"
# Make it permanent
echo 'export CLAUDE_API_KEY="your-api-key-here"' >> ~/.bashrc
source ~/.bashrc
bash
# Verify API key is set
echo $CLAUDE_API_KEY
# Reconfigure
./vendor/bin/claude-git-hook configure