Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/caferrari/caffilestorage
ZF2 File Storage Module
https://github.com/caferrari/caffilestorage
Last synced: about 2 months ago
JSON representation
ZF2 File Storage Module
- Host: GitHub
- URL: https://github.com/caferrari/caffilestorage
- Owner: caferrari
- License: mit
- Created: 2014-05-09T14:42:16.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-05-13T13:17:27.000Z (over 10 years ago)
- Last Synced: 2024-10-28T05:39:14.925Z (3 months ago)
- Language: PHP
- Size: 145 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ZF2 File Storage Module
This module helps you to store and retrieve files based on namespaces/id
Saving Base64 encoded images
----------------------------In the module.config.php:
```php
array(
'namespaces' => array(
'my_nice_namespace' => array(
'driver' => 'filesystem',
'options' => array(
'directory' => getcwd() . '/data/images',
'subdivide' => true,
'files_per_folder' => 1000
)
)
)
),
//....
);
```Usage in the controller:
```php
getServiceLocator()->get('filestorage')
->setNamespace('my_nice_namespace')
->addBase64Image($id, $base64Data)
->save();//...
}}
```