{"id":13450837,"url":"https://github.com/avency/Gitea","last_synced_at":"2025-03-23T16:32:21.577Z","repository":{"id":46413083,"uuid":"235038638","full_name":"avency/Gitea","owner":"avency","description":"API client for Gitea API Version 1","archived":false,"fork":false,"pushed_at":"2021-10-15T12:37:53.000Z","size":47,"stargazers_count":22,"open_issues_count":1,"forks_count":11,"subscribers_count":6,"default_branch":"main","last_synced_at":"2024-04-14T12:12:34.016Z","etag":null,"topics":["api","git","hacktoberfest","php"],"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/avency.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":"2020-01-20T07:01:42.000Z","updated_at":"2024-03-04T13:39:57.000Z","dependencies_parsed_at":"2022-09-23T00:31:45.562Z","dependency_job_id":null,"html_url":"https://github.com/avency/Gitea","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avency%2FGitea","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avency%2FGitea/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avency%2FGitea/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avency%2FGitea/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/avency","download_url":"https://codeload.github.com/avency/Gitea/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245131030,"owners_count":20565758,"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":["api","git","hacktoberfest","php"],"created_at":"2024-07-31T07:00:39.131Z","updated_at":"2025-03-23T16:32:20.999Z","avatar_url":"https://github.com/avency.png","language":"PHP","funding_links":[],"categories":["SDK"],"sub_categories":["For internal use"],"readme":"# Gitea API Client\n\nThis package provides an API client for [Gitea](https://gitea.io) API Version 1.\n\n## Getting Started\n\n### Prerequisites\n\nThis package has the following requirements:\n\n* PHP 7.2\n\n### Installing\n\nInstall latest version via composer:\n\n```\ncomposer require avency/gitea\n```\n\n### Basic usage\n\n```\n// This file is generated by Composer\nrequire_once __DIR__ . '/vendor/autoload.php';\n\n// - - - - -\n\n// Create client and authenticate\n$giteaClient = new Avency\\Gitea\\Client(\n    'https://gitea.yourdomain.com',\n    [\n        'type' =\u003e Avency\\Gitea\\Client::AUTH_TOKEN,\n        'auth' =\u003e 'your-auth-token'\n    ]\n);\n\nor\n\n$giteaClient = new Avency\\Gitea\\Client(\n    'https://gitea.yourdomain.com',\n    [\n        'type' =\u003e Avency\\Gitea\\Client::AUTH_BASIC_AUTH,\n        'auth' =\u003e [\n            'username' =\u003e 'your-username',\n            'password' =\u003e 'your-password',\n        ]\n    ]\n);\n\n// - - - - -\n\n// Get a single repository\n$repository = $giteaClient-\u003erepositories()-\u003eget('owner', 'repoName');\n\n// Get version\n$repository = $giteaClient-\u003emiscellaneous()-\u003eversion();\n```\n\nRun an API call as another user:\n\n```\n// e.g. check subscription status as a user\n$status = $giteaClient-\u003esudo('username')-\u003erepositories()-\u003echeckSubscription();\n``` \n\n## Versioning\n\nWe use [SemVer](http://semver.org/) for versioning. For the versions available,\nsee the [tags on this repository](https://github.com/avency/gitea/contributors).\n\n## Authors\n\n* Michael Gerdemann - [avency GmbH](https://www.avency.de)\n\nSee also the list of [contributors](https://github.com/avency/gitea/graphs/contributors) who\nparticipated in this project.\n\n## License\n\nThis project is licensed under the MIT License - see the\n[LICENSE.md](https://github.com/avency/gitea//blob/master/LICENSE.md) file for details\n\n## Status of endpoints\n\n#### Admin\n\nStatus | Method | Endpoint | Comment\n--- | --- | --- | ---\n✅ | GET | /admin/orgs | \n✅ | GET | /admin/users | \n✅ | POST | /admin/users | \n✅ | DELETE | /admin/users/{username} | \n✅ | PATCH | /admin/users/{username} | \n✅ | POST | /admin/users/{username}/keys | \n✅ | DELETE | /admin/users/{username}/keys/{id} | \n✅ | POST | /admin/users/{username}/orgs | \n✅ | POST | /admin/users/{username}/repos | \n\n#### Miscellaneous\n\nStatus | Method | Endpoint | Comment\n--- | --- | --- | ---\n✅ | POST | /markdown | \n✅ | POST | /markdown/raw | \n✅ | GET | /signing-key.gpg | \n✅ | GET | /version | \n\n#### Organization\n\nStatus | Method | Endpoint | Comment\n--- | --- | --- | ---\n✅ | POST | /org/{org}/repos | \n✅ | POST | /orgs | \n✅ | GET | /orgs/{org} | \n✅ | DELETE | /orgs/{org} | \n✅ | PATCH | /orgs/{org} | \n✅ | GET | /orgs/{org}/hooks | \n✅ | POST | /orgs/{org}/hooks/ | \n✅ | GET | /orgs/{org}/hooks/{id} | \n✅ | DELETE | /orgs/{org}/hooks/{id} | \n✅ | PATCH | /orgs/{org}/hooks/{id} | \n✅ | GET | /orgs/{org}/members | \n✅ | GET | /orgs/{org}/members/{username} | \n✅ | DELETE | /orgs/{org}/members/{username} | \n✅ | GET | /orgs/{org}/public_members | \n✅ | GET | /orgs/{org}/public_members/{username} | \n✅ | PUT | /orgs/{org}/public_members/{username} | \n✅ | DELETE | /orgs/{org}/public_members/{username} | \n✅ | GET | /orgs/{org}/repos | \n✅ | GET | /orgs/{org}/teams | \n✅ | POST | /orgs/{org}/teams | \n✅ | GET | /orgs/{org}/teams/search | \n✅ | GET | /teams/{id} | \n✅ | DELETE | /teams/{id} | \n✅ | PATCH | /teams/{id} | \n✅ | GET | /teams/{id}/members | \n✅ | GET | /teams/{id}/members/{username} | \n✅ | PUT | /teams/{id}/members/{username} | \n✅ | DELETE | /teams/{id}/members/{username} | \n✅ | GET | /teams/{id}/repos | \n✅ | PUT | /teams/{id}/repos/{org}/{repo} | \n✅ | DELETE | /teams/{id}/repos/{org}/{repo} | \n✅ | GET | /user/orgs | \n✅ | GET | /users/{username}/orgs | \n\n#### Issue\n\nStatus | Method | Endpoint | Comment\n--- | --- | --- | ---\n✅ | GET | /repos/issues/search | \n✅ | GET | /repos/{owner}/{repo}/issues | \n✅ | POST | /repos/{owner}/{repo}/issues | \n✅ | GET | /repos/{owner}/{repo}/issues/comments | \n✅ | DELETE | /repos/{owner}/{repo}/issues/comments/{id} | \n✅ | PATCH | /repos/{owner}/{repo}/issues/comments/{id} | \n✅ | GET | /repos/{owner}/{repo}/issues/comments/{id}/reactions | \n✅ | POST | /repos/{owner}/{repo}/issues/comments/{id}/reactions | \n✅ | DELETE | /repos/{owner}/{repo}/issues/comments/{id}/reactions | \n✅ | GET | /repos/{owner}/{repo}/issues/{index} | \n✅ | PATCH | /repos/{owner}/{repo}/issues/{index} | \n✅ | GET | /repos/{owner}/{repo}/issues/{index}/comments | \n✅ | POST | /repos/{owner}/{repo}/issues/{index}/comments | \n⛔️ | DELETE​ | /repos​/{owner}​/{repo}​/issues​/{index}​/comments​/{id} | Not supported / Deprecated\n⛔️ | PATCH​ | /repos​/{owner}​/{repo}​/issues​/{index}​/comments​/{id} | Not supported / Deprecated\n✅ | POST | /repos/{owner}/{repo}/issues/{index}/deadline | \n✅ | GET | /repos/{owner}/{repo}/issues/{index}/labels | \n✅ | PUT | /repos/{owner}/{repo}/issues/{index}/labels | \n✅ | POST | /repos/{owner}/{repo}/issues/{index}/labels | \n✅ | DELETE | /repos/{owner}/{repo}/issues/{index}/labels | \n✅ | DELETE | /repos/{owner}/{repo}/issues/{index}/labels/{id} | \n✅ | GET | /repos/{owner}/{repo}/issues/{index}/reactions | \n✅ | POST | /repos/{owner}/{repo}/issues/{index}/reactions | \n✅ | DELETE | /repos/{owner}/{repo}/issues/{index}/reactions |\n✅ | DELETE | /repos/{owner}/{repo}/issues/{index}/stopwatch/delete | \n✅ | POST | /repos/{owner}/{repo}/issues/{index}/stopwatch/start | \n✅ | POST | /repos/{owner}/{repo}/issues/{index}/stopwatch/stop | \n✅ | GET | /repos/{owner}/{repo}/issues/{index}/subscriptions | \n✅ | PUT | /repos/{owner}/{repo}/issues/{index}/subscriptions/{user} | \n✅ | DELETE | /repos/{owner}/{repo}/issues/{index}/subscriptions/{user} | \n✅ | GET | /repos/{owner}/{repo}/issues/{index}/times | \n✅ | POST | /repos/{owner}/{repo}/issues/{index}/times | \n✅ | DELETE | /repos/{owner}/{repo}/issues/{index}/times | \n✅ | DELETE | /repos/{owner}/{repo}/issues/{index}/times/{id} | \n✅ | GET | /repos/{owner}/{repo}/labels | \n✅ | POST | /repos/{owner}/{repo}/labels | \n✅ | GET | /repos/{owner}/{repo}/labels/{id} | \n✅ | DELETE | /repos/{owner}/{repo}/labels/{id} | \n✅ | PATCH | /repos/{owner}/{repo}/labels/{id} | \n✅ | GET | /repos/{owner}/{repo}/milestones | \n✅ | POST | /repos/{owner}/{repo}/milestones | \n✅ | GET | /repos/{owner}/{repo}/milestones/{id} | \n✅ | DELETE | /repos/{owner}/{repo}/milestones/{id} | \n✅ | PATCH | /repos/{owner}/{repo}/milestones/{id} | \n\n#### Repository\n\nStatus | Method | Endpoint | Comment\n--- | --- | --- | ---\n✅ | POST | /repos/migrate | \n✅ | GET | /repos/search | \n✅ | GET | /repos/{owner}/{repo} | \n✅ | DELETE | /repos/{owner}/{repo} | \n✅ | PATCH | /repos/{owner}/{repo} | \n⛔️ | GET | /repos/{owner}/{repo}/archive/{archive} | Not supported\n✅ | GET | /repos/{owner}/{repo}/branches | \n✅ | GET | /repos/{owner}/{repo}/branches/{branch} | \n✅ | GET | /repos/{owner}/{repo}/collaborators | \n✅ | GET | /repos/{owner}/{repo}/collaborators/{collaborator} | \n✅ | PUT | /repos/{owner}/{repo}/collaborators/{collaborator} | \n✅ | DELETE | /repos/{owner}/{repo}/collaborators/{collaborator} | \n✅ | GET | /repos/{owner}/{repo}/commits | \n✅ | GET | /repos/{owner}/{repo}/commits/{ref}/statuses | \n✅ | GET | /repos/{owner}/{repo}/contents | \n✅ | GET | /repos/{owner}/{repo}/contents/{filepath} | \n✅ | PUT | /repos/{owner}/{repo}/contents/{filepath} | \n✅ | POST | /repos/{owner}/{repo}/contents/{filepath} | \n✅ | DELETE | /repos/{owner}/{repo}/contents/{filepath} | \n✅ | GET | /repos/{owner}/{repo}/editorconfig/{filepath} | \n✅ | GET | /repos/{owner}/{repo}/forks | \n✅ | POST | /repos/{owner}/{repo}/forks | \n✅ | GET | /repos/{owner}/{repo}/git/blobs/{sha} | \n✅ | GET | /repos/{owner}/{repo}/git/commits/{sha} | \n✅ | GET | /repos/{owner}/{repo}/git/refs | \n✅ | GET | /repos/{owner}/{repo}/git/refs/{ref} | \n✅ | GET | /repos/{owner}/{repo}/git/tags/{sha} | \n✅ | GET | /repos/{owner}/{repo}/git/trees/{sha} | \n✅ | GET | /repos/{owner}/{repo}/hooks | \n✅ | POST | /repos/{owner}/{repo}/hooks | \n✅ | GET | /repos/{owner}/{repo}/hooks/git | \n✅ | GET | /repos/{owner}/{repo}/hooks/git/{id} | \n✅ | DELETE | /repos/{owner}/{repo}/hooks/git/{id} | \n✅ | PATCH | /repos/{owner}/{repo}/hooks/git/{id} | \n✅ | GET | /repos/{owner}/{repo}/hooks/{id} | \n✅ | DELETE | /repos/{owner}/{repo}/hooks/{id} | \n✅ | PATCH | /repos/{owner}/{repo}/hooks/{id} | \n✅ | POST | /repos/{owner}/{repo}/hooks/{id}/tests | \n✅ | GET | /repos/{owner}/{repo}/keys | \n✅ | POST | /repos/{owner}/{repo}/keys | \n✅ | GET | /repos/{owner}/{repo}/keys/{id} | \n✅ | DELETE | /repos/{owner}/{repo}/keys/{id} | \n✅ | POST | /repos/{owner}/{repo}/mirror-sync | \n✅ | GET | /repos/{owner}/{repo}/pulls | \n✅ | POST | /repos/{owner}/{repo}/pulls | \n✅ | GET | /repos/{owner}/{repo}/pulls/{index} | \n✅ | PATCH | /repos/{owner}/{repo}/pulls/{index} | \n✅ | GET | /repos/{owner}/{repo}/pulls/{index}/merge | \n✅ | POST | /repos/{owner}/{repo}/pulls/{index}/merge | \n✅ | GET | /repos/{owner}/{repo}/raw/{filepath} | \n✅ | GET | /repos/{owner}/{repo}/releases | \n✅ | POST | /repos/{owner}/{repo}/releases | \n✅ | GET | /repos/{owner}/{repo}/releases/{id} | \n✅ | DELETE | /repos/{owner}/{repo}/releases/{id} | \n✅ | PATCH | /repos/{owner}/{repo}/releases/{id} | \n✅ | GET | /repos/{owner}/{repo}/releases/{id}/assets | \n⛔️ | POST | /repos/{owner}/{repo}/releases/{id}/assets | Not supported\n✅ | GET | /repos/{owner}/{repo}/releases/{id}/assets/{attachment_id} | \n✅ | DELETE | /repos/{owner}/{repo}/releases/{id}/assets/{attachment_id} | \n✅ | PATCH | /repos/{owner}/{repo}/releases/{id}/assets/{attachment_id} | \n✅ | GET | /repos/{owner}/{repo}/signing-key.gpg | \n✅ | GET | /repos/{owner}/{repo}/stargazers | \n✅ | GET | /repos/{owner}/{repo}/statuses/{sha} | \n✅ | POST | /repos/{owner}/{repo}/statuses/{sha} | \n✅ | GET | /repos/{owner}/{repo}/subscribers | \n✅ | GET | /repos/{owner}/{repo}/subscription | \n✅ | PUT | /repos/{owner}/{repo}/subscription | \n✅ | DELETE | /repos/{owner}/{repo}/subscription | \n✅ | GET | /repos/{owner}/{repo}/tags | \n✅ | GET | /repos/{owner}/{repo}/times | \n✅ | GET | /repos/{owner}/{repo}/topics | \n✅ | PUT | /repos/{owner}/{repo}/topics | \n✅ | PUT | /repos/{owner}/{repo}/topics/{topic} | \n✅ | DELETE | /repos/{owner}/{repo}/topics/{topic} | \n✅ | GET | /repositories/{id} | \n✅ | GET | /topics/search | \n✅ | POST | /user/repos | \n\n#### User\n\nStatus | Method | Endpoint | Comment\n--- | --- | --- | ---\n✅ | GET | /user | \n✅ | GET | /user/emails | \n✅ | POST | /user/emails | \n✅ | DELETE | /user/emails | \n✅ | GET | /user/followers | \n✅ | GET | /user/following | \n✅ | GET | /user/following/{username} | \n✅ | PUT | /user/following/{username} | \n✅ | DELETE | /user/following/{username} | \n✅ | GET | /user/gpg_keys | \n✅ | POST | /user/gpg_keys | \n✅ | GET | /user/gpg_keys/{id} | \n✅ | DELETE | /user/gpg_keys/{id} | \n✅ | GET | /user/keys | \n✅ | POST | /user/keys | \n✅ | GET | /user/keys/{id} | \n✅ | DELETE | /user/keys/{id} | \n✅ | GET | /user/repos | \n✅ | POST | /user/repos | \n✅ | GET | /user/starred | \n✅ | GET | /user/starred/{owner}/{repo} | \n✅ | PUT | /user/starred/{owner}/{repo} | \n✅ | DELETE | /user/starred/{owner}/{repo} | \n✅ | GET | /user/stopwatches | \n✅ | GET | /user/subscriptions | \n✅ | GET | /user/teams | \n✅ | GET | /user/times |\n\n#### Users\n\nStatus | Method | Endpoint | Comment\n--- | --- | --- | --- \n✅ | GET | /repos/{owner}/{repo}/times/{user} | \n✅ | GET | /users/search | \n✅ | GET | /users/{follower}/following/{followee} | \n✅ | GET | /users/{username} | \n✅ | GET | /users/{username}/followers | \n✅ | GET | /users/{username}/following | \n✅ | GET | /users/{username}/gpg_keys | \n✅ | GET | /users/{username}/heatmap | \n✅ | GET | /users/{username}/keys | \n✅ | GET | /users/{username}/repos | \n✅ | GET | /users/{username}/starred | \n✅ | GET | /users/{username}/subscriptions | \n✅ | GET | /users/{username}/tokens | \n✅ | POST | /users/{username}/tokens | \n✅ | DELETE | /users/{username}/tokens/{token} | \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Favency%2FGitea","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Favency%2FGitea","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Favency%2FGitea/lists"}