mediact / file-mapping
1.0.3
2017-12-19 10:49 UTC
Requires
- php: ^7.0
Requires (Dev)
- kint-php/kint: @stable
- mediact/testing-suite: @stable
- mikey179/vfsstream: @stable
- phpunit/phpunit: @stable
This package is auto-updated.
Last update: 2022-08-10 18:30:32 UTC
README
[弃用] 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();