Skip to content

Latest commit

 

History

History
41 lines (31 loc) · 975 Bytes

README.md

File metadata and controls

41 lines (31 loc) · 975 Bytes

Scrutinizer Code Quality

[ABANDONED] file-mapping

A PHP package for mapping files from one location to another. It is used by the mediact/composer-file-installer package to move installed files according to the location mapping.

Usage examples

<?php 
/** 
* Create a mapping.
*/
 $mapping = new UnixFileMapping(
      __DIR__ . '/../folder/files',
      getcwd(),
      ['./dir/one','./dir/two']
      
  );

/**
* Get the relative path to the source file.
*/
$mapping->getRelativeSource();

/**
* Get the absolute path to the source file.
*/
$mapping->getSource();

/**
* Get the relative path to the destination file.
*/
$mapping->getRelativeDestination();

/**
* Get the absolute path to the destination file.
*/
$mapping->getDestination();