PHP code example of ngtfkx / laradeck-commands

1. Go to this page and download the library: Download ngtfkx/laradeck-commands library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

ngtfkx / laradeck-commands example snippets

 bash
# download file and save it as storage/app/8SE_CIgzZw8.jpg
php artisan laradeck:download https://pp.userapi.com/c7008/v7008434/a3dc5/8SE_CIgzZw8.jpg
 bash
# download file and save it as storage/app/123.jpg
php artisan laradeck:download https://pp.userapi.com/c7008/v7008434/a3dc5/8SE_CIgzZw8.jpg --name=123.jpg
 bash
# download file and save it as storage/app/test/photo/123.jpg
php artisan laradeck:download https://pp.userapi.com/c7008/v7008434/a3dc5/8SE_CIgzZw8.jpg --name=123.jpg --path=test/photo