{"id":14974464,"url":"https://github.com/devinnorgarb/devtube","last_synced_at":"2025-03-16T02:10:13.202Z","repository":{"id":56967057,"uuid":"132189522","full_name":"DevinNorgarb/devtube","owner":"DevinNorgarb","description":"Laravel YouTube and Online Video viewing and download interface. ","archived":false,"fork":false,"pushed_at":"2024-09-15T19:58:14.000Z","size":66,"stargazers_count":36,"open_issues_count":7,"forks_count":9,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-16T02:09:47.050Z","etag":null,"topics":["laravel","laravel-5-package","laravel-package","laravel5","mp3","mp3-converter","mp4","php","video-downloader","youtube-dl","youtubedownloader"],"latest_commit_sha":null,"homepage":"http://devtube.devswebdev.com/#","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DevinNorgarb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-05-04T21:11:38.000Z","updated_at":"2024-09-15T19:58:18.000Z","dependencies_parsed_at":"2025-01-31T06:30:26.476Z","dependency_job_id":null,"html_url":"https://github.com/DevinNorgarb/devtube","commit_stats":{"total_commits":76,"total_committers":2,"mean_commits":38.0,"dds":"0.013157894736842146","last_synced_commit":"521fe7cdabaad7db1ab3084bdadc93254dcb2eaa"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevinNorgarb%2Fdevtube","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevinNorgarb%2Fdevtube/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevinNorgarb%2Fdevtube/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevinNorgarb%2Fdevtube/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DevinNorgarb","download_url":"https://codeload.github.com/DevinNorgarb/devtube/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243814893,"owners_count":20352038,"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":["laravel","laravel-5-package","laravel-package","laravel5","mp3","mp3-converter","mp4","php","video-downloader","youtube-dl","youtubedownloader"],"created_at":"2024-09-24T13:50:36.135Z","updated_at":"2025-03-16T02:10:13.181Z","avatar_url":"https://github.com/DevinNorgarb.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Install DevTube Video Downloader\n\n\nInstall FFMPEG only if you want to convert videos to mp3 etc\n\nUbuntu:\n\n```bash\nsudo apt install ffmpeg\n```\n\nInstall `youtube-dl`\n\n```bash\nsudo apt install youtube-dl\n```\n\nInstall via composer\n\n```bash\ncomposer require devswebdev/devtube\n```\n\n\u003c!-- The package will automatically register itself.\n\n```bash\nphp artisan vendor:publish --provider=\"DevsWebDev\\DevTube\\DevTubeServiceProvider\" --tag=\"migrations\"\n`` --\u003e\n\nPublish vendor assets\n\n```bash\nphp artisan vendor:publish --provider=\"DevsWebDev\\DevTube\\DevTubeServiceProvider\"\n```\n\nThis publishes a `devtube.php` file in your `config/` directory\nPlease set your default options there.\n\nMake sure your `youtube-dl` path is correct by comparing the output of `which youtube-dl` to the `bin_path` in `devtube.php`\n\n```php\n\"bin_path\" =\u003e \"/usr/bin/youtube-dl\",\n```\n\nAn Example\n\n```php\n\nnamespace App\\Http\\Controllers;\nuse DevsWebDev\\DevTube\\Download;\n\nclass YoutubeDownloadController extends Controller\n{\n    public function download()\n    {\n    $dl = new Download($url = \"https://www.youtube.com/watch?v=ye5BuYf8q4o\", $format = \"mp4\", $download_path = \"music\" );\n\n    //Saves the file to specified directory\n    $media_info = $dl-\u003edownload();\n    $media_info = $media_info-\u003efirst();\n\n    // Return as a download\n    return response()-\u003edownload($media_info['file']-\u003egetPathname());\n\n    }\n}\n```\n\nOr in your web.php routes file\n\n```php\nuse DevsWebDev\\DevTube\\Download;\n\nRoute::get('/', function () {\n    $dl = new Download($url = \"https://www.youtube.com/watch?v=ye5BuYf8q4o\", $format = \"mp3\", $download_path = \"music\" );\n\n    //Saves the file to specified directory\n    $media_info = $dl-\u003edownload();\n    $media_info = $media_info-\u003efirst();\n\n    // Return as a download\n    return response()-\u003edownload($media_info['file']-\u003egetPathname());\n\n});\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevinnorgarb%2Fdevtube","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevinnorgarb%2Fdevtube","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevinnorgarb%2Fdevtube/lists"}