{"id":36574123,"url":"https://github.com/bryanthw1020/cos-file-uploader","last_synced_at":"2026-01-12T07:23:14.215Z","repository":{"id":36462420,"uuid":"224621716","full_name":"bryanthw1020/cos-file-uploader","owner":"bryanthw1020","description":"Laravel file upload using Tencent COS service integration","archived":false,"fork":false,"pushed_at":"2023-02-02T08:59:34.000Z","size":628,"stargazers_count":0,"open_issues_count":5,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-22T08:38:05.143Z","etag":null,"topics":["laravel","tencent-cloud","tencent-cos-service"],"latest_commit_sha":null,"homepage":null,"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/bryanthw1020.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":"2019-11-28T09:52:34.000Z","updated_at":"2020-07-22T09:34:10.000Z","dependencies_parsed_at":"2023-02-17T17:31:09.269Z","dependency_job_id":null,"html_url":"https://github.com/bryanthw1020/cos-file-uploader","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/bryanthw1020/cos-file-uploader","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bryanthw1020%2Fcos-file-uploader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bryanthw1020%2Fcos-file-uploader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bryanthw1020%2Fcos-file-uploader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bryanthw1020%2Fcos-file-uploader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bryanthw1020","download_url":"https://codeload.github.com/bryanthw1020/cos-file-uploader/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bryanthw1020%2Fcos-file-uploader/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28336509,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T06:09:07.588Z","status":"ssl_error","status_checked_at":"2026-01-12T06:05:18.301Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["laravel","tencent-cloud","tencent-cos-service"],"created_at":"2026-01-12T07:23:13.563Z","updated_at":"2026-01-12T07:23:14.209Z","avatar_url":"https://github.com/bryanthw1020.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cos-file-uploader\nLaravel file upload using Tencent COS service integration\n\n## Installation\nTo  install, run `composer require bryanthw1020/cos-file-uploader`.\n\nAfter installation, run `php artisan vendor:publish` to publish the configuration file.\n\nAfter publishing configuration please make sure to add this two variable into your `env` file\n```\nTC_COS_SECRET_ID=\nTC_COS_SECRET_KEY=\n```\n\n## Usage\nBelow are the available method to use.\n\n```php\n# To Upload Object\nCosFileUploader::uploadObject(string $bucket, string $key, string $fileName, string $base64EncodedFile, string$region = 'ap-singapore', string $schema = 'http');\n## Example\nCosFileUploader::uploadObject('example-bucket-123456', 'example/file/path', 'example.jpg', $base64EncodedFile);\n\n# To Delete Single Object\nCosFileUploader::deleteObject(string $bucket, string $key, string $region = 'ap-singapore', string $schema = 'http');\n## Example\nCosFileUploader::deleteObject('example-bucket-123456', 'example/file/path/example.jpg');\n\n# To Delete Multiple Object\nCosFileUploader::deleteObjects(string $bucket, array $keys, string $region = 'ap-singapore', string $schema = 'http');\n## Example\nCosFileUploader::deleteObjects('example-bucket-123456', ['example/file/path/example1.jpg', 'example/file/path/example2.jpg']);\n\n# To Get Object URL\nCosFileUploader::getObjectUrl(string $bucket, string $key, int $duration = 10, string $region = 'ap-singapore', string $schema = 'http');\n## Example\nCosFileUploader::getObjectUrl('example-bucket-123456', 'example/file/path/example.jpg');\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbryanthw1020%2Fcos-file-uploader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbryanthw1020%2Fcos-file-uploader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbryanthw1020%2Fcos-file-uploader/lists"}