PHP code example of dd / evolutioncms-snippets-ddgetfileinfo
1. Go to this page and download the library: Download dd/evolutioncms-snippets-ddgetfileinfo 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/ */
dd / evolutioncms-snippets-ddgetfileinfo example snippets
// Include (MODX)EvolutionCMS.libraries.ddInstaller
staller/DInstaller::install([
'url' => 'https://github.com/DivanDesign/EvolutionCMS.snippets.ddGetFileInfo',
]);
// Include (MODX)EvolutionCMS.libraries.ddTools
ddTools/modx.ddtools.class.php'
);
// Run (MODX)EvolutionCMS.snippets.ddGetFileInfo
\DDTools\Snippet::runSnippet([
'name' => 'ddGetFileInfo',
'params' => [
'file' => 'assets/images/evo-logo.png',
'output' => 'size',
],
]);