PHP code example of sowrensen / wormhole

1. Go to this page and download the library: Download sowrensen/wormhole 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/ */

    

sowrensen / wormhole example snippets


 $filename = \Wormhole::saveFile($request->file('avatar'), 'avatars', 'public');

 $filename = \Wormhole::saveBase64File($request->input('avatar'), 'avatars', 'public');

 \Wormhole::deleteFile('eJd5m08f_1597305889.png', 'avatars', 'public');
bash
php artisan wormhole:publish uikit // or, bootstrap