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

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

cobaia/attach
=============

Attach Plugin, that make upload easy in CakePHP 2.0

1.0.3(11y ago)3713522[1 PRs](https://github.com/krolow/Attach/pulls)MITPHPPHP &gt;=5.3.0

Since Jun 25Pushed 10y ago5 watchersCompare

[ Source](https://github.com/krolow/Attach)[ Packagist](https://packagist.org/packages/cobaia/attach)[ Docs](https://github.com/krolow/Attach)[ RSS](/packages/cobaia-attach/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (2)Versions (6)Used By (0)

Attach 1.0
==========

[](#attach-10)

Attach is a CakePHP 2.0 Plugin, that makes uploads a simple task!

Attach contains a behavior that does everything for you, uploads your file, and resizes your images.

Requirements
------------

[](#requirements)

- PHP 5.3 or &gt;
- CakePHP 2.0 or &gt;

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

[](#installation)

- Clone from github : in your app directory type `git clone git@github.com:krolow/Attach.git Plugin/Attach`
- Download an archive from github and extract it in `app/Plugin/Attach`

- If you require thumbnails for image generation, you should install the dependencies using composer, **and make sure to call the autoload of composer in your CakePHP application**

Usage
-----

[](#usage)

In a model that needs uploads, replace the class declaration with something similar to the following:

It's important to remember that your model class can have your own fields, and it will have a extra relation with Attachment model with the fields that are upload.

```
