mediact / file-mapping
File mapping library
Installs: 89 481
Dependents: 1
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 3
Open Issues: 0
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
[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();