{"id":13593873,"url":"https://github.com/emgag/flysystem-tempdir","last_synced_at":"2025-04-09T05:32:28.270Z","repository":{"id":32202059,"uuid":"35775736","full_name":"emgag/flysystem-tempdir","owner":"emgag","description":"Flysystem adapter for a self-destroying temporary directory","archived":true,"fork":false,"pushed_at":"2022-10-27T14:27:55.000Z","size":32,"stargazers_count":10,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-02T22:47:41.928Z","etag":null,"topics":["flysystem","flysystem-adapter","php","tempdir","temporary"],"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/emgag.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":"2015-05-17T17:36:20.000Z","updated_at":"2024-03-28T16:12:11.000Z","dependencies_parsed_at":"2022-06-27T21:30:47.392Z","dependency_job_id":null,"html_url":"https://github.com/emgag/flysystem-tempdir","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emgag%2Fflysystem-tempdir","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emgag%2Fflysystem-tempdir/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emgag%2Fflysystem-tempdir/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emgag%2Fflysystem-tempdir/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/emgag","download_url":"https://codeload.github.com/emgag/flysystem-tempdir/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247987019,"owners_count":21028890,"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","tempdir","temporary"],"created_at":"2024-08-01T16:01:25.668Z","updated_at":"2025-04-09T05:32:28.008Z","avatar_url":"https://github.com/emgag.png","language":"PHP","funding_links":[],"categories":["PHP"],"sub_categories":[],"readme":"# Flysystem Adapter for Temporary Directory\n\n![build](https://github.com/emgag/flysystem-tempdir/workflows/build/badge.svg)\n[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg)](LICENSE)\n[![Packagist Version](https://img.shields.io/packagist/v/emgag/flysystem-tempdir.svg)](https://packagist.org/packages/emgag/flysystem-tempdir)\n\nAn adapter for the [Flysystem](https://github.com/thephpleague/flysystem) file \nsystem abstraction library which creates a temporary directory on local filesystem\nand which is automatically removed again on object destruct.\n\n## Installation\n\n```bash\ncomposer require emgag/flysystem-tempdir\n```\n\n## Usage\n\n\nAs League\\Flysystem\\Filesystem wrapper:\n\n```php\nuse Emgag\\Flysystem\\Tempdir;\n$fs = new Tempdir($prefix = '', $tempdir = null, $destruct = true);\n// fully qualified FS path\n$fsPath = $fs-\u003egetPath();\n```\n\nor as Flysystem Adapter:\n\n```php\nuse Emgag\\Flysystem\\TempdirAdapter;\nuse League\\Flysystem\\Filesystem;\n\n$adapter = new TempdirAdapter($prefix = '', $tempdir = null, $destruct = true);\n\n$filesystem = new Filesystem($adapter);\n// fully qualified FS path\n$fsPath = $adapter-\u003egetPath();\n\n```\n\n## License\n\nflysystem-tempdir is licensed under the [MIT License](http://opensource.org/licenses/MIT).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femgag%2Fflysystem-tempdir","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Femgag%2Fflysystem-tempdir","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femgag%2Fflysystem-tempdir/lists"}