NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist · #240 most downloaded on Packagist
Easily create, use and destroy temporary directories
Last release 3 months ago
22 Jun 2026
Ships fairly regularly
a new release about every 5 months
Nearly every release is documented
notes for 24 of 25 stable releases
Nothing withdrawn
no release was ever pulled
10 years old
25 releases · first in 2017
Bump dependabot/fetch-metadata from 2.4.0 to 2.5.0 by @dependabot [bot] in #99
Full Changelog: 2.3.1...2.4.0
Full Changelog: https://github.com/spatie/temporary-directory/compare/2.3.1...2.4.0
One column per quarter.
Bump dependabot/fetch-metadata from 2.2.0 to 2.3.0 by @dependabot [bot] in #89
Full Changelog: 2.3.0...2.3.1
Full Changelog: https://github.com/spatie/temporary-directory/compare/2.3.0...2.3.1
Bump actions/cache from 3 to 4 by @dependabot in #82
getName method by @willrowe in #88Full Changelog: 2.2.1...2.3.0
getName method by @willrowe in https://github.com/spatie/temporary-directory/pull/88Full Changelog: https://github.com/spatie/temporary-directory/compare/2.2.1...2.3.0
DeleteWhenDestroyed documentation by @cosmastech in #74
Full Changelog: 2.2.0...2.2.1
Full Changelog: https://github.com/spatie/temporary-directory/compare/2.2.0...2.2.1
Bump dependabot/fetch-metadata from 1.4.0 to 1.5.1 by @dependabot in #67
Full Changelog: 2.1.2...2.2.0
Full Changelog: https://github.com/spatie/temporary-directory/compare/2.1.2...2.2.0
Add dependabot automation by @patinthehat in #58
Full Changelog: 2.1.1...2.1.2
Full Changelog: https://github.com/spatie/temporary-directory/compare/2.1.1...2.1.2
Update .gitattributes by @erikn69 in #55
Full Changelog: 2.1.0...2.1.1
Full Changelog: https://github.com/spatie/temporary-directory/compare/2.1.0...2.1.1
PHP 8.1 Support by @Nielsvanpach in #52
Full Changelog: 2.0.0...2.1.0
use custom exception classes instead of InvalidArgumentException and Exception
InvalidArgumentException and Exceptionadd support for PHP 8.0
force php garbage collection cycle
fix deleting temporary directories with broken symlinks
create dir with 0777 permissions and allow recursive in empty function
delete directories using FilesystemIterator
FilesystemIteratordrop support for PHP 7.1 and below
make sure unique directories are created under heavy load
use return types instead of php-doc-tags
Nothing published for this version
do not use periods when generating a name for the temporary directory
do not use spaces when generating a name for the temporary directory
added optional $location argument in TemporaryDirectory constructor
TemporaryDirectory constructor- initial release
added chainable methods for creating a temporary directory
removed create method, use constructor instead
- experimental release
Your coding agent can read these notes before it upgrades. Set up the MCP server →