Download the PHP package intelektron/chordpro-php without Composer

On this page you can find all versions of the php package intelektron/chordpro-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package chordpro-php

The chordpro-php library 🎸

Workflow status

A simple tool to parse, transpose & format ChordPro songs with lyrics & chords. Compatible with PHP 8.1 and above.

Forked from https://github.com/nicolaswurtz/chordpro-php by Nicolaz Wurtz, on LGPL-3 license.

The following output formats are currently supported:

The library provides some extra functionality:

Installation

Via composer:

Usage

See web/example.php for demo with CSS styling.

Formatting options

Simply give an array with values at true or false for each key/option.

The song key

The key can be set/changed in the following ways:

You can get the key by calling:

If the song has no key defined, there is a possibility to guess it. This feature is experimental and not reliable (20% error rate, tested with ~1000 songs), but can be very useful.

Chord notations

The library supports several chord notations. You can also create your own (by implementing ChordNotationInterface.php. Notations are used for both parsing and formatting. So you can parse a song in German notation and display it as French:

At this point, fis is recognized and saved internally as F#m, and a is saved as Am. Note that you can pass multiple notations to the parser, in order of precedence. This can be useful if you have mixed up chord notations in one song.

Now, to show this song in French:

The UtfChordFormatter provides a nice-looking chords with ♭ and ♯ symbols instead of ASCII characters.

Styling the HTML code

Song lines

Lines are made up of blocks. Each block consists of a text and a chord. The chord has the class chordpro-chord and the text has the class chordpro-text.

A typical line of the song looks like this:

The data-chord attribute stores an English representation of the chord, regardless of the output notation.

Song sections

The ChordPro format allows to organize your songs into sections. The following song fragment:

Will be converted to:

You can use anything in place of foobar. However, the following shortcuts are supported:

Metadata

The library reads ChordPro metadata and renders it as HTML in the following way:

Becomes:

The names of metadata are not restricted in any way, however, there are some standard ones described by ChordPro format. The following shortcuts are supported:

Extensions to ChordPro 6.x

The library provides some non-standard features that can be useful for songbook creators.

Inline chords

If you don't know how to assign the chord to syllables, or it's not important to you, you can use the inline chords assigned to the lyric line:

The chords appear above the line (in the HTML formatter) or to the right (in the monospace formatter).


All versions of chordpro-php with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package intelektron/chordpro-php contains the following files

Loading the files please wait ....