Stars: 652
Forks: 140
Pull Requests: 48
Issues: 102
Watchers: 25
Last Updated: 2023-01-09 17:30:33
Downloads new lessons and series from laracasts if there are updates. Or the whole catalogue.
License: MIT License
Languages: PHP, Shell
Downloads new lessons and series from laracasts if there are updates. Or the whole catalogue.
Currently looking for maintainers.
Syncs your local folder with the laracasts website, when there are new lessons the app download it for you. If your local folder is empty, all lessons and series will be downloaded!
A .skip file is used to prevent downloading deleted lessons for these with space problems. Thanks to @vinicius73
Just call php makeskips.php
before deleting the lessons.
You need an active subscription account to use this script.
DOWNLOAD_SOURCE=vimeo
)OR
.env
file:$ cp .env.example .env
EMAIL
, PASSWORD
) in .envDOWNLOAD_SOURCE
.
By using Laracasts link you are limited to 30 downloads per day and can't customize video quality..env
.
(will be ignored if DOWNLOAD_SOURCE=laracasts
)$ composer install
$ php start.php
$ docker-compose build
$ docker-compose run --rm composer
$ docker-compose run --rm laracastdl php ./start.php [empty for all OR provide flags]
Also works in the browser, but is better from the cli because of the instant feedback.
The script scraps each Laracasts pages and caches them to memories its latest state
and stores them in Downloads/cache.php
. If you already make sure this file is updated
and do not want to experience impatience of scrapping; you can use --cache-only
option.
php start.php --cache-only
You can either use the Series slug (preferred):
$ php start.php -s "series-slug-example"
$ php start.php --series-name "series-slug-example"
Or the Series name (NOT recommended):
$ php start.php -s "Series name example"
$ php start.php --series-name "Series name example"
You can provide episode number(s) separated by comma ,
:
$ php start.php -s "lesson-slug-example" -e "12,15"
$ php start.php --series-name "series-slug-example" --series-episodes "12,15"
This will only download episodes which you mentioned in -e or --series-episodes flag, it will also ignore already downloaded episodes as usual.
$ php start.php -s "nuxtjs-from-scratch" -e "12,15" -s "laravel-from-scratch" -e "5"
It will download episode 12 and 15 for "nuxtjs-from-scratch" and episode 5 for "laravel-from-scratch" course.
$ php start.php -s "nuxtjs-from-scratch" -e "12,15" -s "laravel-from-scratch"
It will download episode 12 and 15 for "nuxtjs-from-scratch" course and all episodes for "laravel-from-scratch" course.
If you have a cURL error 60: SSL certificate problem: self signed certificate in certificate chain
or SLL error: cURL error 35
do this:
curl.cainfo = "PATH_TO/cacert.pem"
to your php.iniAnd you are done! If using apache you may need to restart it.
This library is under the MIT License, see the complete license here