{"id":19236564,"url":"https://github.com/projek-xyz/slim-flysystem","last_synced_at":"2025-04-21T05:32:29.335Z","repository":{"id":57045064,"uuid":"48139922","full_name":"projek-xyz/slim-flysystem","owner":"projek-xyz","description":"Access your Slim 3 application file system using FlySystem.","archived":false,"fork":false,"pushed_at":"2025-04-16T03:41:34.000Z","size":99,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-16T04:46:23.326Z","etag":null,"topics":["flysystem","slim-3","slimphp"],"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/projek-xyz.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":["feryardiant","creasico"]}},"created_at":"2015-12-16T22:57:27.000Z","updated_at":"2025-04-16T03:41:36.000Z","dependencies_parsed_at":"2025-04-09T01:19:36.507Z","dependency_job_id":"0f3282ea-cb0e-4423-9577-f4ee0b193770","html_url":"https://github.com/projek-xyz/slim-flysystem","commit_stats":{"total_commits":22,"total_committers":1,"mean_commits":22.0,"dds":0.0,"last_synced_commit":"0909ab5d2135d255d7cd399bb7b1a36a5c94fcc3"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/projek-xyz%2Fslim-flysystem","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/projek-xyz%2Fslim-flysystem/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/projek-xyz%2Fslim-flysystem/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/projek-xyz%2Fslim-flysystem/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/projek-xyz","download_url":"https://codeload.github.com/projek-xyz/slim-flysystem/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250002295,"owners_count":21359089,"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","slim-3","slimphp"],"created_at":"2024-11-09T16:21:27.941Z","updated_at":"2025-04-21T05:32:29.307Z","avatar_url":"https://github.com/projek-xyz.png","language":"PHP","funding_links":["https://github.com/sponsors/feryardiant","https://github.com/sponsors/creasico"],"categories":[],"sub_categories":[],"readme":"[![Version](https://img.shields.io/packagist/v/projek-xyz/slim-flysystem?style=flat-square)](https://packagist.org/packages/projek-xyz/slim-flysystem)\n[![Lisence](https://img.shields.io/github/license/projek-xyz/slim-flysystem?style=flat-square)](https://github.com/projek-xyz/slim-flysystem/blob/main/LICENSE)\n[![Actions Status](https://img.shields.io/github/actions/workflow/status/projek-xyz/slim-flysystem/test.yml?branch=main\u0026style=flat-square)](https://github.com/projek-xyz/slim-flysystem/actions)\n[![Coveralls](https://img.shields.io/coveralls/projek-xyz/slim-flysystem/master.svg?style=flat-square\u0026logo=coveralls)](https://coveralls.io/github/projek-xyz/slim-flysystem)\n[![Code Climate](https://img.shields.io/codeclimate/coverage/projek-xyz/slim-flysystem.svg?style=flat-square\u0026logo=code-climate)](https://codeclimate.com/github/projek-xyz/slim-flysystem/coverage)\n[![Maintainability](https://img.shields.io/codeclimate/maintainability/projek-xyz/slim-flysystem?style=flat-square\u0026logo=code-climate)](https://codeclimate.com/github/projek-xyz/slim-flysystem/maintainability)\n[![SymfonyInsight Grade](https://img.shields.io/symfony/i/grade/847662a6-71b8-4e7b-ae16-d7f98b7eae80?style=flat-square\u0026logo=symfony)](https://insight.symfony.com/projects/847662a6-71b8-4e7b-ae16-d7f98b7eae80)\n\n# FlySystem Integration for Slim micro framework 3\n\nAccess your Slim 3 application file system using FlySystem.\n\n## Install\n\nVia [Composer](https://getcomposer.org/)\n\n```bash\n$ composer require projek-xyz/slim-flysystem --prefer-dist\n```\n\nRequires Slim micro framework 3 and PHP 5.5.0 or newer.\n\n## Usage\n\n```php\n// Create Slim app\n$app = new \\Slim\\App();\n\n// Fetch DI Container\n$container = $app-\u003egetContainer();\n\n// Register FlySystem helper:\n// Option 1, using FlysystemProvider\n$container-\u003eregister(new \\Projek\\Slim\\FlysystemProvider);\n\n// Option 2, using Closure\n$container['fs'] = function ($c) {\n    $fs = new \\Projek\\Slim\\Flysystem([\n        'local' =\u003e [\n            'path' =\u003e 'path/to/your/resources',\n        ]\n    ]);\n\n    return $fs;\n};\n\n// Define named route\n$app-\u003eget('/hello/{name}', function ($request, $response, $args) {\n    // Read a file.\n    $this-\u003efs-\u003eread('path/to/file');\n\n    return $response;\n});\n\n// Run app\n$app-\u003erun();\n```\n\n**NOTE**: if you are using _option 1_ please make sure you already have `$container['settings']['filesystem']` in your configuration file.\n\n## Custom functions\n\nDescription soon.\n\n### `aFunction()`\n\nDescription soon.\n\n```php\n// ...\n```\n\n## Contributing\n\nPlease see [CONTRIBUTING](.github/CONTRIBUTING.md) and [CONDUCT](.github/CONDUCT.md) for details.\n\n## License\n\nThis library is open-sourced software licensed under [MIT license](LICENSE.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprojek-xyz%2Fslim-flysystem","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprojek-xyz%2Fslim-flysystem","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprojek-xyz%2Fslim-flysystem/lists"}