2017 © Pedro Peláez
 

library temporary

A PHP helper class to manipulate a temporary file.

image

kohkimakimoto/temporary

A PHP helper class to manipulate a temporary file.

  • Wednesday, July 29, 2015
  • by kohkimakimoto
  • Repository
  • 1 Watchers
  • 1 Stars
  • 21 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Temporary

Build Status Latest Stable Version Total Downloads Latest Unstable Version License, (*1)

A PHP helper class to manipulate a temporary file and directory., (*2)

temporary file., (*3)

use Kohkimakimoto\Temporary\TemporaryFile;

$tmpfile = new TemporaryFile();

echo $tmpfile->path();  // ex) /private/var/folders/bt/xwh9qmcj00dctz53_rxclgtr0000gn/T/phpqWK5fj
$tmpfile->write("temporary data...");

echo $data = $tmpfile->read(); // temporary data...

// You don't need to close it. The temporary file will be closed automatically when the object removes.

temporary directory., (*4)

use Kohkimakimoto\Temporary\TemporaryDir;

$tmpdir = new TemporaryDir();
echo $tmpdir->path();   // ex) /private/var/folders/bt/xwh9qmcj00dctz53_rxclgtr0000gn/T/KFHg4L

// You don't need to close it. The temporary dir will be deleted automatically when the object removes.

Requirements

  • PHP5.3 or later

Installation

Create composer.json for installing via composer.., (*5)

{
    "require": {
        "kohkimakimoto/temporary": "1.0.*"
    }
}

Run composer install command., (*6)

composer install

Author

Kohki Makimoto kohki.makimoto@gmail.com, (*7)

License

MIT license., (*8)

The Versions

29/07 2015

dev-master

9999999-dev https://github.com/kohkimakimoto/temporary

A PHP helper class to manipulate a temporary file.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

temporary

29/07 2015

v1.0.1

1.0.1.0 https://github.com/kohkimakimoto/temporary

A PHP helper class to manipulate a temporary file.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

temporary

29/07 2015

v1.0.0

1.0.0.0 https://github.com/kohkimakimoto/temporary-file

A PHP helper class to manipulate a temporary file.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

temporary

28/07 2015

v0.1.0

0.1.0.0 https://github.com/kohkimakimoto/temporary-file

A PHP helper class to manipulate a temporary file.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

temporary