https://github.com/asvvvad1/cply-php
Search lyrics and copy them automatically from the terminal
https://github.com/asvvvad1/cply-php
clipboard-copy command-line-tool genius genius-api genius-lyrics lyrics lyrics-fetcher lyrics-scraping lyrics-search php php-cli terminal
Last synced: 4 months ago
JSON representation
Search lyrics and copy them automatically from the terminal
- Host: GitHub
- URL: https://github.com/asvvvad1/cply-php
- Owner: asvvvad1
- License: gpl-3.0
- Created: 2020-04-16T04:49:01.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-04-16T16:42:50.000Z (over 5 years ago)
- Last Synced: 2025-03-23T06:13:34.197Z (7 months ago)
- Topics: clipboard-copy, command-line-tool, genius, genius-api, genius-lyrics, lyrics, lyrics-fetcher, lyrics-scraping, lyrics-search, php, php-cli, terminal
- Language: PHP
- Size: 35.2 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://github.com/tucnak/climax) only works on Unix systems. Tested on Ubuntu (elementaryOS) but should work on others aswell.
It uses my [php clipboard helper](https://github.com/asvvvad/dollaapp-clipboard-php/) 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:
```bash
git clone https://github.com/asvvvad/cply-php
cd cply-php
composer install
```
After that, edit [cply](cply#L12-L14) with the keys at the begining of the fileNow you can run it using `./cply`
To install it to the system it requires root you can use:
```bash
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:
[](https://asciinema.org/a/MAxxbsticff0vDwLbioaV1wI4)