phore/filesystem

Acces files layer

Installs: 12 172

Dependents: 33

Suggesters: 1

Security: 0

Stars: 1

Watchers: 2

Forks: 0

Open Issues: 0

pkg:composer/phore/filesystem

v1.1.0 2024-02-09 00:37 UTC

This package is auto-updated.

Last update: 2025-09-09 00:11:31 UTC


README

Actions Status

File access functions

  • Working with sub-paths
  • Checking symbolic links

Installation

compser require phore/filesystem

General usage

echo phore_uri("/tmp/some.file")->withDirName();

will result in

/tmp

Subpath

echo phore_uri("/tmp")->withSubPath("./some/other/file")
/tmp/some/other/file

Assertions

phore_uri("/tmp")->assertIsFile()->assertIsWritable();

Reading YAML

phore_uri("/tmp/somefile.yml")->assertFile()->get_yaml();

Tempoary Files

Will be unlinked when object destructs.

$file = new PhoreTempFile();