2017 © Pedro Peláez
 

library filesystem

image

phore/filesystem

  • Tuesday, July 17, 2018
  • by dermatthes
  • Repository
  • 1 Watchers
  • 0 Stars
  • 7 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

phore-filesystem

Actions Status, (*1)

File access functions, (*2)

  • Working with sub-paths
  • Checking symbolic links

Installation

compser require phore/filesystem

General usage

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

will result in, (*3)

/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., (*4)

$file = new PhoreTempFile();

The Versions

17/07 2018

dev-master

9999999-dev

  Sources   Download

MIT

The Requires

  • php >7.1
  • ext-yaml *
  • ext-json *

 

The Development Requires