{"id":19621574,"url":"https://github.com/pkg6/flysystem-github","last_synced_at":"2026-03-05T08:02:50.683Z","repository":{"id":139305858,"uuid":"610650025","full_name":"pkg6/flysystem-github","owner":"pkg6","description":" flysystem for github","archived":false,"fork":false,"pushed_at":"2025-05-20T07:15:56.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-29T22:46:40.715Z","etag":null,"topics":[],"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/pkg6.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":"2023-03-07T07:49:07.000Z","updated_at":"2025-05-20T07:03:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"8cc67b2b-d863-4c55-9427-ac8af648fa88","html_url":"https://github.com/pkg6/flysystem-github","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/pkg6/flysystem-github","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pkg6%2Fflysystem-github","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pkg6%2Fflysystem-github/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pkg6%2Fflysystem-github/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pkg6%2Fflysystem-github/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pkg6","download_url":"https://codeload.github.com/pkg6/flysystem-github/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pkg6%2Fflysystem-github/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30115662,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T03:40:26.266Z","status":"ssl_error","status_checked_at":"2026-03-05T03:39:15.902Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":[],"created_at":"2024-11-11T11:23:35.886Z","updated_at":"2026-03-05T08:02:50.661Z","avatar_url":"https://github.com/pkg6.png","language":"PHP","readme":"\u003ch1 align=\"center\"\u003eFlysystem Github\u003c/h1\u003e\n\n# Requirement\n\n- PHP \u003e= 7.2\n\n# install\n\n~~~\ncomposer require pkg6/flysystem-github\n~~~\n\n# CDN List\n\n~~~\n'github'   =\u003e \"https://raw.githubusercontent.com/:username/:repository/:branch/:fullfilename\",\n'fastgit'  =\u003e \"https://hub.fastgit.org/:username/:repository/blob/:branch/:fullfilename?raw=true\",\n'jsdelivr' =\u003e \"https://cdn.jsdelivr.net/gh/:username/:repository@:branch/:fullfilename\"\n~~~\n\n\n# Usage\n\n```php\nuse pkg6\\flysystem\\github\\GithubAdapter;\nuse League\\Flysystem\\Filesystem;\n\n$token='xxxxxx';\n$username='xxxxxx';\n$repository='test';\n$adapter = new GithubAdapter($token,$username,$repository);\n$flysystem = new League\\Flysystem\\Filesystem($adapter);\n\n```\n\n## API\n\n```php\nfalse|array $flysystem-\u003ewrite('file.md', 'contents');\n\nfalse|array $flysystem-\u003ewriteStream('file.md', fopen('path/to/your/local/file.jpg', 'r'));\n\nfalse|array $flysystem-\u003eupdate('file.md', 'new contents');\n\nfalse|array $flysystem-\u003eupdateStream('file.md', fopen('path/to/your/local/file.jpg', 'r'));\n\nfalse|array $flysystem-\u003edelete('file.md');\n\nbool $flysystem-\u003ehas('file.md');\n\nbool $flysystem-\u003erename('file.md','newfile.md');\n\nbool $flysystem-\u003ecopy('file.md','newfile.md');\n\nfalse|array $flysystem-\u003eread('file.md');\n\nstring|false $flysystem-\u003ereadStream('file.md');\n\narray $flysystem-\u003elistContents();\n\nstring|false $flysystem-\u003egetMetadata('file.md');\n\nint $flysystem-\u003egetSize('file.md');\n\nstring $flysystem-\u003egetAdapter()-\u003egetUrl('file.md'); \n\nstring|false $flysystem-\u003egetMimetype('file.md');\n```\n\n## Plugins\n\nFile Url:\n\n```\nuse pkg6\\flysystem\\github\\Plugins\\FileUrl;\n$flysystem-\u003eaddPlugin(new FileUrl());\nstring $flysystem-\u003egetUrl('file.md');\n```\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpkg6%2Fflysystem-github","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpkg6%2Fflysystem-github","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpkg6%2Fflysystem-github/lists"}