PHP code example of tomaskarlik / storages

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

    

tomaskarlik / storages example snippets


class MyPresenter extends BasePresenter { 
  use TStoragePresenter; //or inject dependency to template manualy
  
}

 $this->image->setNamespace('myNamespace');
 $this->image->save($upload, $filename);