mediact/file-mapping

此包已被弃用,不再维护。作者建议使用 youwe/file-mapping 包代替。

文件映射库

1.0.3 2017-12-19 10:49 UTC

This package is auto-updated.

Last update: 2022-08-10 18:30:32 UTC


README

Scrutinizer Code Quality

[弃用] file-mapping

一个PHP包,用于将文件从一处映射到另一处。该包由 mediact/composer-file-installer 包使用,根据位置映射移动已安装的文件。

使用示例

<?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();