{"id":18903571,"url":"https://github.com/intaro/file-uploader-bundle","last_synced_at":"2025-04-15T03:33:32.588Z","repository":{"id":22139021,"uuid":"25470077","full_name":"intaro/file-uploader-bundle","owner":"intaro","description":"Simplifies file uploading in Symfony2","archived":false,"fork":false,"pushed_at":"2024-10-11T10:53:09.000Z","size":60,"stargazers_count":3,"open_issues_count":2,"forks_count":3,"subscribers_count":16,"default_branch":"master","last_synced_at":"2024-10-11T11:53:59.222Z","etag":null,"topics":["bundle","php","symfony","symfony-bundle"],"latest_commit_sha":null,"homepage":"","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/intaro.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-10-20T14:26:32.000Z","updated_at":"2024-10-11T10:52:42.000Z","dependencies_parsed_at":"2023-02-17T10:10:17.070Z","dependency_job_id":null,"html_url":"https://github.com/intaro/file-uploader-bundle","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/intaro%2Ffile-uploader-bundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/intaro%2Ffile-uploader-bundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/intaro%2Ffile-uploader-bundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/intaro%2Ffile-uploader-bundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/intaro","download_url":"https://codeload.github.com/intaro/file-uploader-bundle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223657852,"owners_count":17181024,"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":["bundle","php","symfony","symfony-bundle"],"created_at":"2024-11-08T09:05:40.883Z","updated_at":"2024-11-08T09:05:41.585Z","avatar_url":"https://github.com/intaro.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# File Uploader Bundle #\n\n## About ##\n\nThis is Symfony2 bundle. The purpose of this bundle is to simplify the file uploading process.\nIt moves files to storage after they were uploaded into temporary folder.\n\nThere are few supported storage types:\n- local filesystem\n- amazon s3\n\n## Installation ##\n\nRequire the bundle in your composer.json file:\n\n``` json\n  {\n      \"require\": {\n          \"intaro/file-uploader-bundle\": \"dev-master\",\n      }\n  }\n```\n\nRegister in AppKernel:\n\n``` php\n  // app/AppKernel.php\n  \n  class AppKernel extends SaasKernel\n  {\n      public function registerBundles()\n      {\n          $bundles = array(\n              ...\n              new Intaro\\FileUploaderBundle\\IntaroFileUploaderBundle(),\n          );\n      }\n  }\n```\nInstall with composer:\n\n```\n$ composer update intaro/file-uploader-bundle\n```\n\n## Usage ##\n\nIn config:\n``` yml\n  # app/config/config.yml\n  \n  intaro_file_uploader:\n    uploaders:\n        local:\n            image:\n                path: http://www.app.local/images/\n                create: true\n                allowed_types: ['image/jpeg', 'image/png', 'image/gif']\n            document:\n                directory: path/to/another/attach/dir\n                create: true\n                allowed_types: ['application/pdf', 'application/rtf', 'application/vnd.ms-office']\n        aws_s3:\n            video:\n                service_id: aws.client_service_name\n                path: https://s3-us-west-2.amazonaws.com/bucket-name/iamges/\n                bucket_name: some_bucket\n                options:\n                    create: true\n                    acl: public-read\n  ```\n  \n  In code:\n  ```php\n  \n  public function uploadAction()\n  {\n      $files = $this-\u003egetRequest()-\u003efiles-\u003eget('file');\n      \n      $this-\u003eget('intaro.video_uploader')-\u003eupload($file);\n  }\n    \n  ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fintaro%2Ffile-uploader-bundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fintaro%2Ffile-uploader-bundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fintaro%2Ffile-uploader-bundle/lists"}