asvvvad1 / cply-php

Search lyrics and copy them automatically from the terminal

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cply-php

Search lyrics and copy them automatically from the terminal

Requirements

UNIX-only: Linux, BSD, MacOS

This version is written in PHP and it requires PHP and Composer and a unix system, the song selector of Climax only works on Unix systems. Tested on Ubuntu (elementaryOS) but should work on others aswell.

It uses my php clipboard helper which requires xclip or xsel on Linux and pbcopy and pbpaste on Darwin

Install

First, create client id, client secret and token from: https://genius.com/api-clients

Then clone this repository and install dependencies using:

git clone https://github.com/asvvvad/cply-php
cd cply-php
composer install

After that, edit cply with the keys at the begining of the file

Now you can run it using ./cply

To install it to the system it requires root you can use:

cd ..
sudo mv cply-php /usr/local/
sudo ln -sf /usr/local/cply-php/cply /usr/local/bin
sudo chmod +x /usr/local/bin/cply

Usage:

asciicast

About

Search lyrics and copy them automatically from the terminal

License:GNU General Public License v3.0


Languages

Language:PHP 100.0%