{"id":36993670,"url":"https://github.com/e200/mediavel","last_synced_at":"2026-01-13T23:45:52.740Z","repository":{"id":33870671,"uuid":"162883319","full_name":"e200/mediavel","owner":"e200","description":"Laravel media library package","archived":false,"fork":false,"pushed_at":"2022-03-29T22:21:27.000Z","size":217,"stargazers_count":3,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-26T21:21:54.066Z","etag":null,"topics":["laravel","media-library"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/e200.png","metadata":{"files":{"readme":"readme.md","changelog":"changelog.md","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}},"created_at":"2018-12-23T11:00:39.000Z","updated_at":"2024-04-26T21:21:54.066Z","dependencies_parsed_at":"2022-08-07T23:30:22.756Z","dependency_job_id":null,"html_url":"https://github.com/e200/mediavel","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/e200/mediavel","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/e200%2Fmediavel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/e200%2Fmediavel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/e200%2Fmediavel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/e200%2Fmediavel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/e200","download_url":"https://codeload.github.com/e200/mediavel/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/e200%2Fmediavel/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28405302,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T21:51:37.118Z","status":"ssl_error","status_checked_at":"2026-01-13T21:45:14.585Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["laravel","media-library"],"created_at":"2026-01-13T23:45:52.046Z","updated_at":"2026-01-13T23:45:52.735Z","avatar_url":"https://github.com/e200.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mediavel\n\n[![Latest Version on Packagist][ico-version]][link-packagist]\n[![Total Downloads][ico-downloads]][link-downloads]\n[![Build Status][ico-travis]][link-travis]\n[![StyleCI][ico-styleci]][link-styleci]\n\nA media library handler for Laravel.\n\nRight now, it only supports upload images and generate thumbnails from them.\n\n## Installation\n\nVia Composer\n\n``` bash\n$ composer require e200/mediavel\n```\n\n## Usage\n\n```php\nnamespace App\\Http\\Controllers;\n\nuse Illuminate\\Routing\\Controller;\nuse e200\\Mediavel\\Facades\\MediaLibrary;\n\nclass ImageController extends Controller\n{\n    public function upload(Request $request)\n    {\n        $uploadedImage = $request-\u003eimage;\n\n        $media = $mediaLibrary\n          -\u003eadd($uploadedImage)           // Store the image\n          -\u003epreserveOriginal()            // Do not touch the original file\n          -\u003eresize('small', [75, 75])     // Creates a thumbnail (75x75) derived from the original image\n          -\u003eresize('medium', [150, 150])  // Creates a thumbnail (150x150)\n          -\u003eresize('large', [1024, 300]); // Creates a thumbnail (1024x300);\n\n        $media-\u003eid;            // 1\n        $media-\u003erelative_path; // /images/2018/12/sl290s8xq0is9wqjk.jpg\n        $media-\u003eurl;           // http://localhost:8000/images/2019/06/5cf6976f20dfb.jpg\n\n        $thumbs = $media-\u003ethumbs();\n\n        $thumbs['small']-\u003epath;  // /images/2018/12/5cf6976f20dfb-75x75.jpg\n        $thumbs['medium']-\u003epath; // /images/2018/12/5cf6976f20dfb-150x150.jpg\n        $thumbs['large']-\u003epath;  // /images/2018/12/5cf6976f20dfb-1024x300.jpg\n    }\n}\n```\n\n## Change log\n\nPlease see the [changelog](changelog.md) for more information on what has changed recently.\n\n## Testing\n\n``` bash\n$ composer test\n```\n\n## Contributing\n\nPlease see [contributing.md](contributing.md) for details and a todolist.\n\n## Security\n\nIf you discover any security related issues, please email eleandro@inbox.ru instead of using the issue tracker.\n\n## Credits\n\n- [Eleandro Duzentos][link-author]\n- [All Contributors][link-contributors]\n\n## License\n\nMIT. Please see the [license file](license.md) for more information.\n\n[ico-version]: https://img.shields.io/packagist/v/e200/mediavel.svg?style=flat-square\n[ico-downloads]: https://img.shields.io/packagist/dt/e200/mediavel.svg?style=flat-square\n[ico-travis]: https://img.shields.io/travis/e200/mediavel/master.svg?style=flat-square\n[ico-styleci]: https://styleci.io/repos/12345678/shield\n\n[link-packagist]: https://packagist.org/packages/e200/mediavel\n[link-downloads]: https://packagist.org/packages/e200/mediavel\n[link-travis]: https://travis-ci.org/e200/mediavel\n[link-styleci]: https://styleci.io/repos/12345678\n[link-author]: https://github.com/e200\n[link-contributors]: ../../contributors\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fe200%2Fmediavel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fe200%2Fmediavel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fe200%2Fmediavel/lists"}