{"id":21424243,"url":"https://github.com/myjw3b/file-writing","last_synced_at":"2026-01-28T05:57:56.114Z","repository":{"id":246799423,"uuid":"823386985","full_name":"myJW3B/File-Writing","owner":"myJW3B","description":"An easy way to store some config operations within text files.","archived":false,"fork":false,"pushed_at":"2025-03-09T06:55:15.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-19T01:30:59.523Z","etag":null,"topics":["file","file-data-storage","files","filesystem"],"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/myJW3B.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}},"created_at":"2024-07-03T00:14:12.000Z","updated_at":"2025-03-09T06:55:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"734a247e-0ff5-4af8-abcf-60b4deadc282","html_url":"https://github.com/myJW3B/File-Writing","commit_stats":null,"previous_names":["myjw3b/file-writing"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/myJW3B/File-Writing","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myJW3B%2FFile-Writing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myJW3B%2FFile-Writing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myJW3B%2FFile-Writing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myJW3B%2FFile-Writing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/myJW3B","download_url":"https://codeload.github.com/myJW3B/File-Writing/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myJW3B%2FFile-Writing/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28840257,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-28T05:50:12.573Z","status":"ssl_error","status_checked_at":"2026-01-28T05:49:54.528Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","file-data-storage","files","filesystem"],"created_at":"2024-11-22T21:20:22.868Z","updated_at":"2026-01-28T05:57:56.109Z","avatar_url":"https://github.com/myJW3B.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# File-Writing\nAn easy way to store some config operations within text files.\n\n# Install\n````shell\ncomposer require myjw3b/file-writing\n````\n\n# Autoload\nmake sure to include this at the top of your page\n````php\nuse JW3B\\Data\\FileWriting;\ninclude \"vendor/autoload.php\";\n````\n# Storage\n````php\n$FileWriting = new FileWriting('cache/file-data');\n$FileWriting-\u003esave('name/to-reference/later',[\n\t'works' =\u003e [\n\t\t'with' =\u003e 'arrays',\n\t\t'multi' =\u003e [\n\t\t\t'deep' =\u003e 'it doesnt',\n\t\t\t'matter' =\u003e [\n\t\t\t\t'how' =\u003e [\n\t\t\t\t\t'deep' =\u003e 'you go'\n\t\t\t\t]\n\t\t\t]\n\t\t]\n\t]\n]);\n````\n# Retreiving Data\n````php\n$FileWriting = new FileWriting('cache/file-data');\n$var = $FileWriting-\u003eget_file('name/to-reference/later');\n\necho '\u003cpre\u003e'.print_r($var,1).'\u003c/pre\u003e';\n````\n# Output\n````\nArray\n(\n    [works] =\u003e Array\n        (\n            [with] =\u003e arrays\n            [multi] =\u003e Array\n                (\n                    [deep] =\u003e it doesnt\n                    [matter] =\u003e Array\n                        (\n                            [how] =\u003e Array\n                                (\n                                    [deep] =\u003e you go\n                                )\n                        )\n                )\n        )\n)\n````","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmyjw3b%2Ffile-writing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmyjw3b%2Ffile-writing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmyjw3b%2Ffile-writing/lists"}