Downloads new lessons and series from laracasts if there are updates. Or the whole catalogue.
Working good at 10/11/2018
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.
Even to download free lessons or series. The download option is only allowed to users with a valid subscription.
- PHP >= 5.4
- php-cURL
- php-xml
- php-json
- Composer
- Clone this repo to a folder in your machine
- Change your info in .env.example and rename it to .env
- Go to laracasts.com --> Browse, open Dev Tools --> Network,
find a request to algolia.net and save
x-algolia-api-key
andx-algolia-application-id
values to your .env
- Go to laracasts.com --> Browse, open Dev Tools --> Network,
find a request to algolia.net and save
composer install
php start.php
and you are done!
Also works in the browser, but is better from the cli because of the instant feedback
- You can use series and lessons names
- You can use series and lessons slugs (preferred because there are some custom slugs too)
- You can download multiples series/lessons
php start.php -s "Series name example" -s "series-slug-example"
php start.php --series-name "Series name example" -series-name "series-slug-example"
php start.php -l "Lesson name example" -l "lesson-slug-example"
php start.php --lesson-name "Lessons name example" --lesson-name "lesson-slug-example"
- Clone this repo to a folder in your machine
- Change your info in .env.example and rename it to .env
docker build -t image-name .
docker run -d -v /host-path:/container-path-in-config.ini image-name
and the path should be absolute
If you have a cURL error 60: SSL certificate problem: self signed certificate in certificate chain
or SLL error: cURL error 35
do this:
- Download http://curl.haxx.se/ca/cacert.pem
- Add
curl.cainfo = "PATH_TO/cacert.pem"
to your php.ini
And you are done! If using apache you may need to restart it.
This library is under the MIT License, see the complete license here