PHPackages                             zaszczyk/phalcon-uploader - 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. zaszczyk/phalcon-uploader

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

zaszczyk/phalcon-uploader
=========================

It is fork of stanislav-web/phalcon-uploader. Phalcon files uploader. Handling and downloading files for Phalcon projects. Allowed multiple files download, filters etc...

1.1.x-dev(10y ago)011MITHTMLPHP &gt;=5.4.0

Since Jan 11Pushed 10y ago1 watchersCompare

[ Source](https://github.com/Zaszczyk/phalcon-uploader)[ Packagist](https://packagist.org/packages/zaszczyk/phalcon-uploader)[ Docs](https://github.com/stanislav-web/phalcon-uploader)[ RSS](/packages/zaszczyk-phalcon-uploader/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (8)Used By (0)

Phalcon File Uploader
=====================

[](#phalcon-file-uploader)

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/1d1c7016e46c0952cf75bf883060f480141f04fdde26598836ee2fc5ceef9d71/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7374616e69736c61762d7765622f7068616c636f6e2d75706c6f616465722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/stanislav-web/phalcon-uploader/?branch=master) [![Code Coverage](https://camo.githubusercontent.com/e9e56eb76b65ca87361a60fcb24864d9d1f2b7df248915ffe7a8ba5151087f0e/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7374616e69736c61762d7765622f7068616c636f6e2d75706c6f616465722f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/stanislav-web/phalcon-uploader/?branch=master) [![Total Downloads](https://camo.githubusercontent.com/9994cdc23120ca6faed3753f4c8ba03db06765924be25bfa0998f13fedd07ed4/68747470733a2f2f706f7365722e707567782e6f72672f7374616e69736c61762d7765622f7068616c636f6e2d75706c6f616465722f646f776e6c6f6164732e737667)](https://packagist.org/packages/stanislav-web/phalcon-uploader) [![Latest Unstable Version](https://camo.githubusercontent.com/5bf2eb359f8e5c513361f1a79ba50e290411cf5187b36a6b4764034086330361/68747470733a2f2f706f7365722e707567782e6f72672f7374616e69736c61762d7765622f7068616c636f6e2d75706c6f616465722f762f756e737461626c652e737667)](https://packagist.org/packages/stanislav-web/phalcon-uploader)

Description
-----------

[](#description)

Handling and downloading files for Phalcon projects. Allowed multiple files, filters etc.... *(Currently under TDD)*

Change Log
----------

[](#change-log)

#### \[v 1.4-beta\] 2015-05-28

[](#v-14-beta-2015-05-28)

```
- ability to download files to a dynamically created directory (by [Mahdi-Mohammadi](https://github.com/Mahdi-Mohammadi))

```

#### \[v 1.3-beta\] 2015-05-07

[](#v-13-beta-2015-05-07)

```
- it support Phalcon 2.0

```

#### \[v 1.2-beta\] 2015-05-07

[](#v-12-beta-2015-05-07)

```
- ability to use closure (anonimous function) for generate uploaded file name

```

#### \[v 1.1-beta\] 2015-02-23

[](#v-11-beta-2015-02-23)

```
- ability to delete files after downloading ($uploader->truncate())

```

#### \[v 1.0-beta\] 2015-01-10

[](#v-10-beta-2015-01-10)

```
- added validator (sizes, extensions, mime types, directory upload)
- added filters (sanitize filename pre save, hash filename)

```

Compatible
----------

[](#compatible)

- PSR-0, PSR-1, PSR-2, PSR-4 Standards

System requirements
-------------------

[](#system-requirements)

- PHP 5.4.x &gt;
- Phalcon extension 1.3.x

Install
-------

[](#install)

First update your dependencies through composer. Add to your composer.json:

```
"require": {
    "stanislav-web/phalcon-uploader": "1.*",
}
```

Then run to update dependency and autoloader

```
php composer.phar update
php composer.phar install
```

or just

```
php composer.phar require stanislav-web/phalcon-uploader dev-master

```

*(Do not forget to include the composer autoloader)*

Or manual require in your loader service

```
    $loader->registerNamespaces([
        'Uploader\Uploader' => 'path to src'
    ]);
```

You can create an injectable service

```
    $di->set('uploader', '\Uploader\Uploader');
```

Usage
-----

[](#usage)

#### Simple usage

[](#simple-usage)

```
