Overview#
Why Pathwise#
Pathwise gives you a single API surface for common file-system workflows that normally require stitching many low-level PHP calls together.
It focuses on three layers:
Storage operations powered by Flysystem.
Workflow primitives (uploads, compression, sync, validation).
Operational building blocks (queue, audit, retention, indexing, policy).
Main namespaces:
Infocyph\Pathwise(unifiedPathwiseFacadefacade)Infocyph\Pathwise\FileManagerInfocyph\Pathwise\DirectoryManagerInfocyph\Pathwise\StreamHandlerInfocyph\Pathwise\StorageInfocyph\Pathwise\SecurityInfocyph\Pathwise\QueueInfocyph\Pathwise\ObservabilityInfocyph\Pathwise\IndexingInfocyph\Pathwise\RetentionInfocyph\Pathwise\Utils
Path style support:
Local absolute/relative paths.
Mounted Flysystem scheme paths like
mnt://reports/file.csv.
Quick Start#
use Infocyph\Pathwise\PathwiseFacade;
PathwiseFacade::at('/tmp/demo.txt')
->file()
->create('hello')
->append("\nworld");
$report = PathwiseFacade::at('/tmp/source')
->directory()
->syncTo('/tmp/backup', deleteOrphans: true);
Read Next#
capabilitiesfor the full module map.file-facadefor the unified entry style.quickstartfor copy/paste examples.recipesfor end-to-end workflow patterns.