2017 © Pedro Peláez
 

library php-temp

Temp service - handles application's temporary files

image

keboola/php-temp

Temp service - handles application's temporary files

  • Monday, November 13, 2017
  • by kachnitel
  • Repository
  • 9 Watchers
  • 0 Stars
  • 36,965 Installations
  • PHP
  • 17 Dependents
  • 0 Suggesters
  • 1 Forks
  • 2 Open issues
  • 9 Versions
  • 5 % Grown

The README.md

Temp Library Build Status Maintainability Test Coverage

This library provides an isolated temporary folder for an application. The library has methods for generating randomly named folders and files., (*1)

Usage

use Keboola\Temp\Temp;
$temp = new Temp('prefix');
// Creates a file with unique name suffixed by 'suffix'
$tempFile = $temp->createTmpFile('suffix');
echo 'Files are stored in: ' . $temp->getTmpFolder();
$temp->remove();

Available methods:, (*2)

  • getTmpFolder -- Get the name of the temporary folder.
  • createFile -- Create a named file in the temporary folder.
  • createTmpFile -- Create a random file in the temporary folder.

Migration from version 1.0

  • The temp folder is no longer deleted automatically in the destructor. It needs to be removed explicitly by calling the remove() method.
  • The public setId method was removed. This function was rarely used and is no longer available.
  • The public initRunFolder method was removed. The folder is now initialized when used and there is no need to call initRunFolder any more.
  • The protected getTmpPath method is now private.

License

MIT licensed, see LICENSE file., (*3)

The Versions

13/11 2017

dev-master

9999999-dev

Temp service - handles application's temporary files

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ondrej Vana
by Miro Cillik

filesystem temp

13/11 2017

1.0.0

1.0.0.0

Temp service - handles application's temporary files

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ondrej Vana
by Miro Cillik

filesystem temp

23/03 2016

0.1.6

0.1.6.0

Temp service - handles application's temporary files

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ondrej Vana
by Miro Cillik

filesystem temp

03/03 2016

0.1.5

0.1.5.0

Temp service - handles application's temporary files

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

The Development Requires

by Ondrej Vana
by Miro Cillik

filesystem temp

24/02 2016

0.1.4

0.1.4.0

Temp service - handles application's temporary files

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

The Development Requires

by Ondrej Vana
by Miro Cillik

filesystem temp

18/12 2015

0.1.3

0.1.3.0

Temp service - handles application's temporary files

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ondrej Vana
by Miro Cillik

filesystem temp

24/04 2015

0.1.2

0.1.2.0

Temp service - handles application's temporary files

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ondrej Vana
by Miro Cillik

filesystem temp

23/04 2015

0.1.1

0.1.1.0

Temp service - handles application's temporary files

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ondrej Vana
by Miro Cillik

filesystem temp

30/09 2014

0.1.0

0.1.0.0

Temp service - handles application's temporary files

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ondrej Vana
by Miro Cillik

filesystem temp