PHPackages                             teepluss/attach - 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. teepluss/attach

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

teepluss/attach
===============

Laravel 4 Attachment

v1.0(11y ago)142041MITPHPPHP &gt;=5.3.0

Since Nov 1Pushed 9y ago1 watchersCompare

[ Source](https://github.com/teepluss/laravel4-attach)[ Packagist](https://packagist.org/packages/teepluss/attach)[ Docs](https://github.com/teepluss/laravel4-attach.git)[ RSS](/packages/teepluss-attach/feed)WikiDiscussions master Synced 2d ago

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

File upload with resized.
-------------------------

[](#file-upload-with-resized)

Attach is a file uploader for Laravel version 4.

### Installation

[](#installation)

- [Attach on Packagist](https://packagist.org/packages/teepluss/attach)
- [Attach on GitHub](https://github.com/teepluss/laravel4-attach.git)

To get the lastest version of Theme simply require it in your `composer.json` file.

```
"teepluss/attach": "dev-master"

```

You'll then need to run `composer install` to download it and have the autoloader updated.

Once Attach is installed you need to register the service provider with the application. Open up `app/config/app.php` and find the `providers` key.

```
'providers' => array(

    'Teepluss\Attach\AttachServiceProvider'

)

```

Attach also ships with a facade which provides the static syntax for creating collections. You can register the facade in the `aliases` key of your `app/config/app.php` file.

```
'aliases' => array(

    'Attach' => 'Teepluss\Attach\Facades\Attach'

)

```

Publish config using artisan CLI.

```
php artisan config:publish teepluss/attach

```

Usage
-----

[](#usage)

Basic upload

```
$attach = Attach::inject(array(
    'subpath' => 'tee'
))
->add(Input::file('userfile'))
->upload();

var_dump($attach->onComplete());
```

Remote upload

```
$attach = Attach::inject(array(
    'remote' => true
))
->add('http://...../file.png')
->upload();
```

Resizing

```
$attach = Attach::open('/path/to/image.png')->resize();

// To specific scales from config.

$attach = Attach::open('/path/to/image.png')->resize(array('l', 'm'));
```

Upload and Resize

```
$attach = Attach::add(Input::file('userfile'))->upload()->resize();
```

Remove

```
$attach = Attach::open($path)->remove();
```

You can inject your config anytime

```
$attach = Attach::inject(array(
    ..... YOUR CONFIG .....
))
->upload();
```

Callback

```
Attach::inject(array(

    'onUpload' => function($result)
    {
        //
    },

    'onComplete' => function($results)
    {
        //
    },

    'onRemove' => function($result)
    {
        //
    }

))
->upload()
->resize();
```

Support or Contact
------------------

[](#support-or-contact)

If you have some problem, Contact

[![Support via PayPal](https://camo.githubusercontent.com/1c4c2a63b268ab949717893dda9628735444f61b8eb8eece283a534338b5b0e5/68747470733a2f2f7261776769746875622e636f6d2f63687269732d2d2d2f446f6e6174696f6e2d4261646765732f6d61737465722f70617970616c2e6a706567)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=9GEC8J7FAG6JA)

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity60

Established project with proven stability

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~490 days

Total

3

Last Release

3646d ago

Major Versions

v0.1 → v1.02014-08-15

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1464300?v=4)[Maximus](/maintainers/teepluss)[@teepluss](https://github.com/teepluss)

---

Tags

laraveluploadlaravel4attach

### Embed Badge

![Health badge](/badges/teepluss-attach/health.svg)

```
[![Health](https://phpackages.com/badges/teepluss-attach/health.svg)](https://phpackages.com/packages/teepluss-attach)
```

###  Alternatives

[czim/laravel-paperclip

Laravel Eloquent file attachment solution

80845.5k7](/packages/czim-laravel-paperclip)[sahusoftcom/eloquent-image-mutator

One solution for image uploads.

12316.4k](/packages/sahusoftcom-eloquent-image-mutator)[teepluss/cloudinary

Cloudinary API wrapper for Laravel 4

1910.5k](/packages/teepluss-cloudinary)[itskodinger/midia

Simple Media manager for your Laravel project

1416.0k](/packages/itskodinger-midia)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
