{"id":17857199,"url":"https://github.com/caferrari/caffilestorage","last_synced_at":"2025-04-02T18:21:53.163Z","repository":{"id":16854401,"uuid":"19614368","full_name":"caferrari/CafFileStorage","owner":"caferrari","description":"ZF2 File Storage Module","archived":false,"fork":false,"pushed_at":"2014-05-13T13:17:27.000Z","size":148,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-08T08:47:37.453Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/caferrari.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-05-09T14:42:16.000Z","updated_at":"2016-02-26T11:46:35.000Z","dependencies_parsed_at":"2022-09-06T17:40:36.338Z","dependency_job_id":null,"html_url":"https://github.com/caferrari/CafFileStorage","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caferrari%2FCafFileStorage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caferrari%2FCafFileStorage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caferrari%2FCafFileStorage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caferrari%2FCafFileStorage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/caferrari","download_url":"https://codeload.github.com/caferrari/CafFileStorage/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246866242,"owners_count":20846537,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-28T03:11:51.566Z","updated_at":"2025-04-02T18:21:53.135Z","avatar_url":"https://github.com/caferrari.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ZF2 File Storage Module\n\nThis module helps you to store and retrieve files based on namespaces/id\n\nSaving Base64 encoded images\n----------------------------\n\nIn the module.config.php:\n```php\n\u003c?php\nnamespace Application;\n\nreturn array(\n    //...\n    'filestorage' =\u003e array(\n        'namespaces' =\u003e array(\n            'my_nice_namespace' =\u003e array(\n                'driver' =\u003e 'filesystem',\n                'options' =\u003e array(\n                    'directory' =\u003e getcwd() . '/data/images',\n                    'subdivide' =\u003e true,\n                    'files_per_folder' =\u003e 1000\n                )\n            )\n        )\n    ),\n    //....\n);\n```\n\n\nUsage in the controller:\n```php\n\u003c?php\n\nnamespace Application\\Controller;\n\n//...\nclass SomeController\n{\n    //...\n    public function someAction()\n    {\n        //... receive post data and insert into the database\n\n        $this-\u003egetServiceLocator()-\u003eget('filestorage')\n            -\u003esetNamespace('my_nice_namespace')\n            -\u003eaddBase64Image($id, $base64Data)\n            -\u003esave();\n\n        //...\n    }\n\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaferrari%2Fcaffilestorage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcaferrari%2Fcaffilestorage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaferrari%2Fcaffilestorage/lists"}