{"id":19787530,"url":"https://github.com/svish/transposer","last_synced_at":"2025-10-28T13:09:33.997Z","repository":{"id":7296280,"uuid":"8612349","full_name":"Svish/Transposer","owner":"Svish","description":"For transposing simple songs written as plain text with chords above the lyrics.","archived":false,"fork":false,"pushed_at":"2021-09-27T22:16:09.000Z","size":19,"stargazers_count":13,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-08-18T21:16:03.064Z","etag":null,"topics":["chords","lyrics","php","songs","transposing"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Svish.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-03-06T20:22:52.000Z","updated_at":"2023-06-13T13:00:03.000Z","dependencies_parsed_at":"2022-09-21T10:21:48.852Z","dependency_job_id":null,"html_url":"https://github.com/Svish/Transposer","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Svish%2FTransposer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Svish%2FTransposer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Svish%2FTransposer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Svish%2FTransposer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Svish","download_url":"https://codeload.github.com/Svish/Transposer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224227467,"owners_count":17276804,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["chords","lyrics","php","songs","transposing"],"created_at":"2024-11-12T06:23:33.309Z","updated_at":"2025-10-28T13:09:28.966Z","avatar_url":"https://github.com/Svish.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Introduction\n===\n\nFor transposing simple songs written as plain text with chords above the lyrics.\n\nInstall\n---\n\nIf you're using [Composer](http://getcomposer.org), which you really should, simply require the package \n[geekality/transposer](https://packagist.org/packages/geekality/transposer) in your `composer.json`. Otherwise download \nand include as per usual :)\n\n    \"require\":\n\t{\n\t\t\"geekality/transposer\": \"1.*\",\n\t},\n\nExample usage\n---\n\n    // song.php\n    $text = \u003c\u003c\u003cSONG\n    D                      G          D\n    Be thou my vision, oh Lord of my heart\n    A                          G              A\n    Naught be all else to me, save that thou art\n    G             D/F♯       Bm         G  A\n    Thou my best thought, by day or by night\n    Bm          F♯m            G     A    D\n    Waking or sleeping, thy presence my light\n\n    D                        G       D\n    High King of heaven, my victory won\n    A                          G              A\n    May I reach heaven's joys, O bright heaven's sun\n    G             D/F♯      Bm       G   A\n    Heart of my own heart, whatever befall\n    Bm          F♯m        G    A   D\n    Still be my vision, O ruler of all\n    SONG;\n\n    $song = Transposer::parse($text, 'D');\n    if(isset($_GET['key']))\n        $song-\u003etranspose($_GET['key']);\n    \n    echo $song-\u003eget_key_selector('song.php?key=');\n    echo $song;\n\nFor an example with chorus and simple css styling, see [sample.php](sample/sample.php).\n\nLicense\n===\n\nThis work is licensed under the Creative Commons Attribution 3.0 Unported License. To view a copy of this license, visit [Creative Commons Attribution 3.0 Unported License](http://creativecommons.org/licenses/by/3.0/).\n\n![Creative Commons License](http://i.creativecommons.org/l/by/3.0/88x31.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsvish%2Ftransposer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsvish%2Ftransposer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsvish%2Ftransposer/lists"}