{"id":19144361,"url":"https://github.com/piotrpress/streamer","last_synced_at":"2025-09-08T22:31:57.570Z","repository":{"id":57041814,"uuid":"421197367","full_name":"PiotrPress/streamer","owner":"PiotrPress","description":"This library is a custom PHP Stream Wrapper, which provides write/read operations and stores the data in the memory.","archived":false,"fork":false,"pushed_at":"2022-04-15T09:25:40.000Z","size":17,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-20T13:02:41.786Z","etag":null,"topics":["file","filesystem","memory","mock","mockup","protocol","stream","stream-wrapper","streamwrapper","temporary","temporary-files","url","virtual","virtual-file-system","virtual-files"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PiotrPress.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-10-25T22:01:46.000Z","updated_at":"2024-11-28T17:14:47.000Z","dependencies_parsed_at":"2022-08-24T00:50:57.349Z","dependency_job_id":null,"html_url":"https://github.com/PiotrPress/streamer","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PiotrPress%2Fstreamer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PiotrPress%2Fstreamer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PiotrPress%2Fstreamer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PiotrPress%2Fstreamer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PiotrPress","download_url":"https://codeload.github.com/PiotrPress/streamer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":232360120,"owners_count":18511222,"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":["file","filesystem","memory","mock","mockup","protocol","stream","stream-wrapper","streamwrapper","temporary","temporary-files","url","virtual","virtual-file-system","virtual-files"],"created_at":"2024-11-09T07:34:38.853Z","updated_at":"2025-01-03T15:49:11.744Z","avatar_url":"https://github.com/PiotrPress.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Streamer\n\n![Tests](https://github.com/PiotrPress/streamer/actions/workflows/tests.yml/badge.svg)\n\nThis library is a custom [PHP Stream Wrapper](https://www.php.net/manual/en/class.streamwrapper.php), which provides write/read operations and stores the data in the memory.\n\n**NOTE:** It is similar to `php:// memory`, with the difference that is reusable, i.e. after the stream has been closed you can reopen it and the written data are still there, similar to regular file. Take a look at example of usage below.\n\n## Installation\n\n```console\ncomposer require piotrpress/streamer\n```\n\n## Usage\n\n```php\nrequire __DIR__ . '/vendor/autoload.php';\n\nPiotrPress\\Streamer::register( 'virtual' );\n\nfile_put_contents( 'virtual://test', 'Test data' );\necho file_get_contents( 'virtual://test' );\n```\n\n## Supports\n\n* `fopen()` modes: `r`, `r+`, `w`, `w+`, `a`, `a+`\n* `fwrite()`, `fputs()` etc.\n* `fread()`, `fgets()` etc.\n* `file_get_contents()`, `file_put_contents()`\n* `feof()`, `fseek()`, `ftell()`, `rewind()`\n* `ftruncate()`\n* `filesize()`\n* `rename()`\n* `unlink()`\n\n## Requirements\n\nPHP \u003e= `7.4` version.\n\n## License\n\n[GPL3.0](license.txt)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpiotrpress%2Fstreamer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpiotrpress%2Fstreamer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpiotrpress%2Fstreamer/lists"}