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.
- Host: GitHub
- URL: https://github.com/takuya/php-mktempfile
- Owner: takuya
- License: gpl-3.0
- Created: 2021-08-18T15:50:37.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-04-10T16:03:43.000Z (about 2 years ago)
- Last Synced: 2025-03-09T05:08:57.428Z (over 1 year ago)
- Language: PHP
- Size: 17.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.

## testing
```
composer install
./vendor/bin/phpunit
```