{"id":25893462,"url":"https://github.com/jenkoian/flysystem-gaufrette","last_synced_at":"2025-03-02T21:36:17.298Z","repository":{"id":56997978,"uuid":"53337173","full_name":"jenkoian/flysystem-gaufrette","owner":"jenkoian","description":"A flysystem adapter to use Gaufrette without changing the API","archived":false,"fork":false,"pushed_at":"2021-06-30T14:54:53.000Z","size":17,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-11-13T17:49:22.986Z","etag":null,"topics":["flysystem","flysystem-adapter","gaufrette","php"],"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/jenkoian.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":"2016-03-07T15:43:20.000Z","updated_at":"2019-04-03T08:44:07.000Z","dependencies_parsed_at":"2022-08-21T11:10:21.952Z","dependency_job_id":null,"html_url":"https://github.com/jenkoian/flysystem-gaufrette","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jenkoian%2Fflysystem-gaufrette","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jenkoian%2Fflysystem-gaufrette/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jenkoian%2Fflysystem-gaufrette/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jenkoian%2Fflysystem-gaufrette/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jenkoian","download_url":"https://codeload.github.com/jenkoian/flysystem-gaufrette/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241576890,"owners_count":19984939,"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","gaufrette","php"],"created_at":"2025-03-02T21:36:16.353Z","updated_at":"2025-03-02T21:36:17.231Z","avatar_url":"https://github.com/jenkoian.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [Flysystem](https://github.com/thephpleague/flysystem) Adapter for [Gaufrette](https://github.com/KnpLabs/Gaufrette)\n\n[![Build Status](https://img.shields.io/travis/jenkoian/flysystem-gaufrette/master.svg?style=flat-square)](https://travis-ci.org/jenkoian/flysystem-gaufrette)\n[![Coverage Status](https://img.shields.io/scrutinizer/coverage/g/jenkoian/flysystem-gaufrette.svg?style=flat-square)](https://scrutinizer-ci.com/g/jenkoian/flysystem-gaufrette/code-structure)\n[![Quality Score](https://img.shields.io/scrutinizer/g/jenkoian/flysystem-gaufrette.svg?style=flat-square)](https://scrutinizer-ci.com/g/jenkoian/flysystem-gaufrette)\n[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE)\n\n## Installation\n\n```bash\ncomposer require jenko/flysystem-gaufrette\n```\n\n## Usage\n\nBasic usage:\n\n```php\nuse Jenko\\Flysystem\\GaufretteAdapter;\nuse Gaufrette\\Adapter\\Local;\n\n$adapter = new GaufretteAdapter(\n    new Local(__DIR__ . '/path/to/files');\n); \n\n$filesystem = new Filesystem($adapter);\n```\n\nAdvanced usage:\n\n```php\nuse Jenko\\Flysystem\\GaufretteAdapter;\nuse Gaufrette\\Adapter\\Local;\nuse Gaufrette\\Adapter\\Flysystem;\n\n// Hadouken!\n$adapter = new GaufretteAdapter(\n    new Flysystem(\n        new GaufretteAdapter(\n            new Flysystem(\n                new GaufretteAdapter(\n                    new Flysystem(\n                        new GaufretteAdapter(\n                            new Local(\n                                __DIR__ . '/path/to/files'\n                            )\n                        )\n                    )\n                )\n            )\n        )\n    )\n);\n\n$filesystem = new Filesystem($adapter);\n```\n\n## Wait, what?\n\n[Gaufrette added a Flysystem adapter](https://github.com/KnpLabs/Gaufrette/blob/master/doc/adapters/flysystem.md) so it made sense to reciprocate the love and have an adapter going in the other direction.\nAlthough it does feel a little [yo dawg](https://cloud.githubusercontent.com/assets/993350/13571485/99fd5f90-e475-11e5-9f2c-04dea88713fd.png) it is useful. For example\nif you have a codebase which is quite coupled to the flysystem API (legacy app, obv you wouldn't have done this) but wish to make a switch to Gaufrette, this will allow you to do so without having to go through \nyour codebase changing all calls to the old API. For more information on actual usage, see this blog post: http://jenko.me/legacy/2017/03/07/from-gaufrette-to-flysystem-and-back-again/\n\nIt also allows you to construct fun, bi-directional, [hadouken-esque](https://imgur.com/BtjZedW) nesting as seen in the advanced usage example above.\n\n## Unsupported methods\n\nFlysystem has a few methods which Gaufrette doesn't quite support, these are listed below:\n\n* update\n* updateStream\n* copy\n* createDir\n* getVisibility\n* setVisibility\n\nThe following methods are only supported for Gaufrette adapters implementing `MetadataSupporter`:\n\n* getMetadata\n\nThe following methods are only supported for Gaufrette adapters implementing `SizeCalculator`:\n\n* getSize\n\nThe following methods are only supported for Gaufrette adapters implementing `MimeTypeProvider`:\n\n* getMimetype\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjenkoian%2Fflysystem-gaufrette","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjenkoian%2Fflysystem-gaufrette","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjenkoian%2Fflysystem-gaufrette/lists"}