# Temptation

[![Build Status]](https://travis-ci.org/IcecaveStudios/temptation)
[![Test Coverage]](https://coveralls.io/r/IcecaveStudios/temptation?branch=develop)
[![SemVer]](http://semver.org)

**Temptation** is a simple PHP library for creating temporary files and directories that clean up after themselves.

* Install via [Composer](http://getcomposer.org) package [icecave/temptation](https://packagist.org/packages/icecave/temptation)
* Read the [API documentation](http://icecavestudios.github.io/temptation/artifacts/documentation/api/)

## Example

```php
use Icecave\Temptation\Temptation;

// Use the temptation object to create files and directories ...
$temptation = new Temptation;

// Create a temporary file ...
$file = $temptation->createFile();

// Use the temporary file ...
file_put_contents($file->path(), 'This is my temp file.');

// Don't do anything else!
// The temporary file is automatically deleted when the $file object goes out of scope.
```

<!-- references -->
[Build Status]: http://img.shields.io/travis/IcecaveStudios/temptation/develop.svg
[Test Coverage]: http://img.shields.io/coveralls/IcecaveStudios/temptation/develop.svg
[SemVer]: http://img.shields.io/:semver-1.0.0-green.svg

# Temptation

[![Build Status]](https://travis-ci.org/IcecaveStudios/temptation)
[![Test Coverage]](https://coveralls.io/r/IcecaveStudios/temptation?branch=develop)
[![SemVer]](http://semver.org)

**Temptation** is a simple PHP library for creating temporary files and directories that clean up after themselves.

* Install via [Composer](http://getcomposer.org) package [icecave/temptation](https://packagist.org/packages/icecave/temptation)
* Read the [API documentation](http://icecavestudios.github.io/temptation/artifacts/documentation/api/)

## Example

```php
use Icecave\Temptation\Temptation;

// Use the temptation object to create files and directories ...
$temptation = new Temptation;

// Create a temporary file ...
$file = $temptation->createFile();

// Use the temporary file ...
file_put_contents($file->path(), 'This is my temp file.');

// Don't do anything else!
// The temporary file is automatically deleted when the $file object goes out of scope.
```

<!-- references -->
[Build Status]: http://img.shields.io/travis/IcecaveStudios/temptation/develop.svg?style=flat-square
[Test Coverage]: http://img.shields.io/coveralls/IcecaveStudios/temptation/develop.svg?style=flat-square
[SemVer]: http://img.shields.io/:semver-1.0.0-brightgreen.svg?style=flat-square

Use flat badges and correct green color
Use flat badges and correct green color [ci skip]
