{"id":18883918,"url":"https://github.com/sfcod/filesystem","last_synced_at":"2025-04-14T21:03:09.198Z","repository":{"id":57048413,"uuid":"122215831","full_name":"sfcod/filesystem","owner":"sfcod","description":null,"archived":false,"fork":false,"pushed_at":"2024-08-21T18:46:25.000Z","size":11,"stargazers_count":9,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-28T09:11:21.280Z","etag":null,"topics":["flysystem","flysystem-adapter","php","symfony","symfony-bundle"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sfcod.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-02-20T15:22:41.000Z","updated_at":"2024-08-21T18:46:29.000Z","dependencies_parsed_at":"2023-01-29T15:15:48.179Z","dependency_job_id":null,"html_url":"https://github.com/sfcod/filesystem","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sfcod%2Ffilesystem","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sfcod%2Ffilesystem/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sfcod%2Ffilesystem/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sfcod%2Ffilesystem/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sfcod","download_url":"https://codeload.github.com/sfcod/filesystem/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248631775,"owners_count":21136563,"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":["flysystem","flysystem-adapter","php","symfony","symfony-bundle"],"created_at":"2024-11-08T07:09:49.167Z","updated_at":"2025-04-14T21:03:09.164Z","avatar_url":"https://github.com/sfcod.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Flysystem Extras \n\n[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/sfcod/filesystem/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/sfcod/filesystem/?branch=master)[![Code Climate](https://codeclimate.com/github/sfcod/filesystem/badges/gpa.svg)](https://codeclimate.com/github/sfcod/filesystem)\n\nProvides extras functionality around Flysystem like Resolvable filesystem.\n\n### Resolvable filesystem\n\n`ResolvableFilesystem` is a decorator permitting to resolve objects paths into URLs.\n\nIn order to use it, you have to pass the decorated Filesystem and a Resolver:\n\n    use SfCod\\Filesystem\\Resolvable\\ResolvableFilesystem;\n    use SfCod\\Filesystem\\Resolvable\\Resolver\\LocalUrlResolver;\n    use League\\Flysystem\\Filesystem;\n    use League\\Flysystem\\Adapter\\Local;   \n    \n    $adapter = new Local(__DIR__.'/path/to/root');\n    $filesystem = new ResolvableFilesystem(\n        new Filesystem($adapter),\n        new LocalUrlResolver()\n    );\n\nThen you can call `resolve($key)`:\n\n    $filesystem-\u003eresolve('/foo.png'); // = 'https://...\n\nCurrently these resolvers are supported:\n\n* LocalUrlResolver","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsfcod%2Ffilesystem","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsfcod%2Ffilesystem","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsfcod%2Ffilesystem/lists"}