An open API service indexing awesome lists of open source software.

https://github.com/takuya/php-mktempfile

Make Tempfile which auto removed at exit.
https://github.com/takuya/php-mktempfile

Last synced: about 1 year ago
JSON representation

Make Tempfile which auto removed at exit.

Awesome Lists containing this project

README

          

# php-mktempfile
Make a Temp file in SysTemp with temp_name and auto removed.

## mktempfile function
This package provides a function `mktempfile()` to your composer project.
```php
true
```
## $temp_file will be auto remove

`$temp_file` will be ***auto removed*** by 'register_shutdown_function'.

## system temp directory

`mktempfile()` make file in SystemTemp by 'sys_get_temp_dir()'.

## Installing from GitHub.
```
composer config repositories.takuya/php-mktempfile vcs https://github.com/takuya/php-mktempfile
composer require takuya/php-mktempfile
```
## Installing with packagist.
```
composer require takuya/php-mktempfile
composer install
```

## test results.
![](https://circleci.com/gh/takuya/php-mktempfile.svg?style=svg)
## testing
```
composer install
./vendor/bin/phpunit
```