{"id":44319630,"url":"https://github.com/fynduck/files-upload","last_synced_at":"2026-02-11T06:08:13.140Z","repository":{"id":62508407,"uuid":"147840051","full_name":"fynduck/files-upload","owner":"fynduck","description":"Upload image or file, crop or resize image width","archived":false,"fork":false,"pushed_at":"2025-03-29T21:03:29.000Z","size":253,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-15T20:39:17.806Z","etag":null,"topics":["crop","file","filesystem","images","laravel","package","php","resize","resize-images","upload-images","uploads"],"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/fynduck.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-09-07T15:12:41.000Z","updated_at":"2025-03-29T20:58:43.000Z","dependencies_parsed_at":"2025-03-16T10:19:24.580Z","dependency_job_id":"71ba5a80-b7e7-4abc-bf77-6f775c1b4d57","html_url":"https://github.com/fynduck/files-upload","commit_stats":null,"previous_names":[],"tags_count":65,"template":false,"template_full_name":null,"purl":"pkg:github/fynduck/files-upload","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fynduck%2Ffiles-upload","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fynduck%2Ffiles-upload/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fynduck%2Ffiles-upload/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fynduck%2Ffiles-upload/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fynduck","download_url":"https://codeload.github.com/fynduck/files-upload/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fynduck%2Ffiles-upload/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29327994,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-11T03:52:29.695Z","status":"ssl_error","status_checked_at":"2026-02-11T03:52:23.094Z","response_time":97,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["crop","file","filesystem","images","laravel","package","php","resize","resize-images","upload-images","uploads"],"created_at":"2026-02-11T06:08:10.412Z","updated_at":"2026-02-11T06:08:13.135Z","avatar_url":"https://github.com/fynduck.png","language":"PHP","readme":"# FilesUpload\n\n[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE.md)\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/fynduck/files-upload.svg?style=flat-square)](https://packagist.org/packages/fynduck/files-upload)\n![Tests](https://github.com/fynduck/files-upload/actions/workflows/FileUpload.yml/badge.svg)\n[![Total Downloads](https://img.shields.io/packagist/dt/fynduck/files-upload.svg?style=flat-square)](https://packagist.org/packages/fynduck/files-upload)\n\n| **Laravel** | **files-upload** | **Php version** |\n|-------------|------------------|-----------------|\n| ``\u003c`` 5.7   | ``^``1.8         | ``\u003e=``5.6       |\n| ``\u003e=`` 5.7  | ``^``2.1         | ``\u003e=``5.6       |\n| 5.7 - 11.0  | ``^``3.1         | ``\u003e=``7.1       |\n| ``\u003e=`` 9.0  | ``^``4.0         | ``\u003e=``8.1       |\n\n## Usage\n\n**Upload file or image**\n\n```php\nuse Fynduck\\FilesUpload\\UploadFile;\n\nUploadFile::file($request-\u003efile('file')) //or $request-\u003eget('base64'), required\n    -\u003esetDisk('storage') //default is public\n    -\u003esetFolder('Post') //optional\n    -\u003esetName('image_name') //optional, default use file name or random in case base64\n    -\u003esetOverwrite('old_name.jpg') //optional, remove file with old name\n    -\u003esetSizes(['xs' =\u003e ['width' =\u003e 100, 'height' =\u003e 100]]) //(optional) if need other sizes\n    -\u003esetExtension('png') //(optional) default use file extension\n    -\u003esetBackground('#000000') //optional\n    -\u003esetBlur(0) //optional, use values between 0 and 100\n    -\u003esetBrightness(0) //optional, use values between -100 and +100. brightness 0 for no change\n    -\u003esetGreyscale(true) //optional true or false default is false\n    -\u003esetOptimize(true) //optional\n    -\u003esetEncodeFormat() //optional, ['jpeg', 'jpg', 'png', 'gif', 'webp']\n    -\u003esetEncodeQuality() //optional, use values between 0 and 100\n    -\u003esave('resize'); //save option resize, crop default is resize\n```\n\n**Make new sizes from image**\n\n```php\nuse Fynduck\\FilesUpload\\ManipulationImage;\n\nManipulationImage::load($pathImage)\n            -\u003esetDisk('storage') //default is public\n            -\u003esetFolder('Post')\n            -\u003esetSizes(['xs' =\u003e ['width' =\u003e 100, 'height' =\u003e 100]])\n            -\u003esetName('image_name.jpg') //name with extension\n            -\u003esetOverwrite('old_name.jpg') //optional, remove file with old name\n            -\u003esetBackground('#000000') //optional\n            -\u003esetBlur(0) //optional, use values between 0 and 100\n            -\u003esetBrightness(0) //optional, use values between -100 and +100. brightness 0 for no change\n            -\u003esetGreyscale(true) //optional true or false default is true\n            -\u003esetOptimize(true) //optional\n            -\u003esetEncodeFormat() //optional, ['jpeg', 'jpg', 'png', 'gif', 'webp']\n            -\u003esetEncodeQuality() //optional, use values between 0 and 100\n            -\u003esave('resize'); //save option resize, resize-crop, crop default is resize\n```\n\n**Optimize exist image**\n\n```php\nuse Fynduck\\FilesUpload\\ManipulationImage;\n\nManipulationImage::load('image_name.jpg')\n            -\u003esetOptimize(true)\n            -\u003eoptimize('path_to_image');\n```\n\n\n\u003e **resize**: Resize the image by the maximum width or height\n\u003e \n\u003e **crop**: Cut out by size part of the current image with given width and height\n\n## For laravel \u003c 5.7 use version 1.8\n\n## Previous stable versions\n\n* [Version ^3.1](https://github.com/fynduck/files-upload/tree/3.1.7)\n* [Version ^2.1](https://github.com/fynduck/files-upload/tree/2.1.3)\n* [Version ^1.8](https://github.com/fynduck/files-upload/tree/1.8.6.2)\n\n## Installation\n\nYou can install the package via composer:\n\n```bash\ncomposer require fynduck/files-upload\n```\n\n## Contributing\n\nPlease see [CONTRIBUTING](CONTRIBUTING.md) for details.\n\n\u003ca href=\"https://www.jetbrains.com/?from=files-upload\"\u003e\n\u003cimg src=\"/phpstorm.png\" alt=\"JetBrains\" width=\"50\"/\u003e\n\u003c/a\u003e\n\n## License\n\nThe MIT License (MIT). Please see [License File](/LICENSE.md) for more information.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffynduck%2Ffiles-upload","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffynduck%2Ffiles-upload","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffynduck%2Ffiles-upload/lists"}