PHPackages                             gidato/temporary-path - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [File &amp; Storage](/categories/file-storage)
4. /
5. gidato/temporary-path

ActiveLibrary[File &amp; Storage](/categories/file-storage)

gidato/temporary-path
=====================

Creates a new temporary path object within a given temporary directory base

v0.1.2(6y ago)04MITPHPCI failing

Since Apr 9Pushed 6y ago1 watchersCompare

[ Source](https://github.com/gidato/temporary-path)[ Packagist](https://packagist.org/packages/gidato/temporary-path)[ RSS](/packages/gidato-temporary-path/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependencies (4)Versions (4)Used By (0)

Gidato / Temporary-Path
=======================

[](#gidato--temporary-path)

Creates new temporary file or directory Gidato/Filesystem/Model objects.

If directory/file is then created, it will automatically disappear when the object is destroyed via the destruct method.

This can be called manually as well via the drop() method.

To facilitate this, each file type must be mapped to an equivalent Temporary file type. Both BasicFile and JsonFile have been set up, but others can be added to the FileClassMapper - see examples below.

Installation
------------

[](#installation)

```

composer require gidato/temporary-path

```

Example Use
-----------

[](#example-use)

```
