You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Go to a directory to run composer into (this will be the directory where you'll access the API via browser)
45
-
* Install youtube-dl-php (or just do `composer require norkunas/youtube-dl-php`)
46
-
* Install the google api client (or just do `composer require google/apiclient:^2.0`)
47
-
* Put the `convert.php` and `search.php` in the same directory (the files in this repo is an example. These are the files I use on my VPS.)
40
+
* Go to your webserver files to run composer into
41
+
* Run `composer create-project michaelbelgium/youtube-to-mp3 [directoryname]` - where `directoryname` is .. a directory where people can access the API from.
42
+
* Edit defines:
48
43
49
44
In `search.php` you can define these variables:
50
45
```PHP
@@ -54,7 +49,7 @@ define("API_KEY", "");
54
49
55
50
# How I installed ffmpeg (compiling/building and installing)
56
51
57
-
If you have ffmpeg in `yum` or `apt-get`or any kind this is probably not needed. I had to do this manually as I'm using Centos 6.x
52
+
If you have ffmpeg in `yum` or `apt-get` this is **not needed**. I had to do this manually as I'm using Centos 6.x
58
53
59
54
## libmp3lame
60
55
@@ -89,6 +84,8 @@ Aftwards ffmpeg was installed in `/usr/local/bin/ffmpeg` which then I needed to
0 commit comments