1. Go to this page and download the library: Download intelektron/chordpro-php 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/ */
intelektron / chordpro-php example snippets
$txt = 'A typical [fis]German [a]verse';
$parser = new ChordPro\Parser();
$notation = new ChordPro\Notation\GermanChordNotation();
$song = $parser->parse($song, [$notation])
$monospaceFormatter = new ChordPro\Formatter\MonospaceFormatter();
$html = $monospaceFormatter->format($song, [
'notation' => $frenchNotation
]);
// Fa♯m Lam
// A typical German verse
bash
composer
php
[
'ignore_metadata' => ['title', 'subtitle'], // Do not render these types of metadata.
'no_chords' => true // Render text without chords.
'notation' => new ChordPro\Notation\GermanChordNotation(), // Choose output chord notation.
];
php
$guess = new ChordPro\GuessKey();
$key = $guess->guessKey($song);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.