Class Packager_Phar
public static
|
|
public static
|
|
public
|
|
public
|
#
SetReleaseDir( string $fullOrRelativePath = '' )
Set compilation result(s) directory, all files will be removed first. |
public
|
#
SetReleaseFileName( string $releaseFileName = '/index.php' )
Set compilation result PHP script file name, '/index.php` by default. |
public
|
#
SetExcludePatterns( array|string $excludePatterns = [] )
Set preg_replace() patterns array or single string about which files or folders will be excluded from result file. Function replace all previous configuration records. |
public
|
#
AddExcludePatterns( array|string $excludePatterns = [] )
Add preg_replace() patterns array or single string about which files or folders will be excluded from result file. |
public
|
#
SetPatternReplacements( array $patternReplacements = [] )
Set patterns/replacements array about what will be replaced in *.php and *.phtml files by preg_replace(pattern, replacement, source) before possible minification process. Function replace all previous configuration records. |
public
|
#
AddPatternReplacements( array $patternReplacements = [] )
Add patterns/replacements array about what will be replaced in *.php and *.phtml files by preg_replace(pattern, replacement, source) before possible minification process. |
public
|
#
SetStringReplacements( array $stringReplacements = [] )
Set str_replace() key/value array about what will be simply replaced in result file. Function replace all previous configuration records. |
public
|
#
AddStringReplacements( array $stringReplacements = [] )
Add str_replace() key/value array about what will be simply replaced in result file. |
public
|
#
SetMinifyTemplates( string $minifyTemplates = TRUE )
Set boolean if *.phtml templates will be minimized before saving into result file |
public
|
#
SetMinifyPhp( string $minifyPhp = TRUE )
Set boolean if *.php scripts will be minimized before saving into result file |
public
|
#
SetStaticCopies( array $staticCopies = [/* '/from-dir' => '/to-dir', '/filename', '/dirname' */] )
Set array with statically copied files or directories from |
public
|
#
MergeConfiguration( array $cfg = [] )
Merge multilevel configuration array with previously initialized values. New values sent into this function will be used preferred. |
public
|
completingJob(),
mainJob(),
notify(),
renameJob()
|
cleanReleaseDir(),
copyStaticFilesAndFolders()
|
$staticallyCopiedFiles
|