{"id":21846086,"url":"https://github.com/owenvoke/gitea-php","last_synced_at":"2025-08-02T05:10:11.676Z","repository":{"id":43119173,"uuid":"299549651","full_name":"owenvoke/gitea-php","owner":"owenvoke","description":"An object oriented PHP wrapper for the Gitea API","archived":false,"fork":false,"pushed_at":"2025-07-08T11:05:19.000Z","size":113,"stargazers_count":5,"open_issues_count":0,"forks_count":5,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-08T11:47:13.777Z","etag":null,"topics":["api","gitea","php"],"latest_commit_sha":null,"homepage":"https://packagist.org/packages/owenvoke/gitea","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/owenvoke.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE.md","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},"funding":{"github":"owenvoke","custom":"https://ecologi.com/owenvoke?gift-trees"}},"created_at":"2020-09-29T08:14:29.000Z","updated_at":"2025-07-08T11:05:18.000Z","dependencies_parsed_at":"2025-04-14T13:25:20.346Z","dependency_job_id":"86f80399-30f2-4967-85b4-b360564c11f3","html_url":"https://github.com/owenvoke/gitea-php","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":"owenvoke/skeleton-php","purl":"pkg:github/owenvoke/gitea-php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/owenvoke%2Fgitea-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/owenvoke%2Fgitea-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/owenvoke%2Fgitea-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/owenvoke%2Fgitea-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/owenvoke","download_url":"https://codeload.github.com/owenvoke/gitea-php/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/owenvoke%2Fgitea-php/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268338285,"owners_count":24234540,"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","status":"online","status_checked_at":"2025-08-02T02:00:12.353Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["api","gitea","php"],"created_at":"2024-11-27T23:12:40.681Z","updated_at":"2025-08-02T05:10:11.655Z","avatar_url":"https://github.com/owenvoke.png","language":"PHP","funding_links":["https://github.com/sponsors/owenvoke","https://ecologi.com/owenvoke?gift-trees"],"categories":[],"sub_categories":[],"readme":"# Gitea PHP\n\n[![Latest Version on Packagist][ico-version]][link-packagist]\n[![Software License][ico-license]](LICENSE.md)\n[![Build Status][ico-github-actions]][link-github-actions]\n[![Static Analysis][ico-static-analysis]][link-static-analysis]\n[![Total Downloads][ico-downloads]][link-downloads]\n[![Buy us a tree][ico-treeware-gifting]][link-treeware-gifting]\n\nAn object oriented PHP wrapper for the Gitea API\n\n## Requirements\n\n- PHP \u003e= 8.2\n- A [PSR-17 implementation](https://packagist.org/providers/psr/http-factory-implementation)\n- A [PSR-18 implementation](https://packagist.org/providers/psr/http-client-implementation)\n\n## Install\n\nVia Composer\n\n```shell\ncomposer require owenvoke/gitea guzzlehttp/guzzle:^7.9 http-interop/http-factory-guzzle:^1.2\n```\n\nWe are decoupled from any HTTP messaging client with help by [HTTPlug](https://httplug.io).\n\n## Usage\n\n**Basic usage**\n\n```php\n// Include the Composer autoloader\nrequire_once __DIR__ . '/vendor/autoload.php';\n\n$client = new \\OwenVoke\\Gitea\\Client();\n$repositories = $client-\u003euser()-\u003erepositories();\n```\n\n**Authentication**\n\n\u003e Note: Gitea only supports authentication via an API token.\n\n```php\nuse OwenVoke\\Gitea\\Client;\n$client = new Client();\n$client-\u003eauthenticate($apiToken, null, Client::AUTH_ACCESS_TOKEN);\n```\n\n**Self-hosted Gitea instances**\n\nThe Gitea PHP wrapper can be configured to use a custom-hosted instance, rather than `gitea.com`.\n\n```php\n// Specify the URL of the Gitea instance on client initialization\n$client = new \\OwenVoke\\Gitea\\Client(null, null, 'https://gitea.example.com');\n```\n\n## Change log\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.\n\n## Testing\n\n```shell\ncomposer test\n```\n\n## Contributing\n\nPlease see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.\n\n## Security\n\nIf you discover any security related issues, please email security@voke.dev instead of using the issue tracker.\n\n## Credits\n\n- [Owen Voke][link-author]\n- [KNP Labs](https://github.com/KnpLabs) (based on [their GitHub client](https://github.com/KnpLabs/php-github-api))\n- [All Contributors][link-contributors]\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n\n## Treeware\n\nYou're free to use this package, but if it makes it to your production environment you are required to buy the world a tree.\n\nIt’s now common knowledge that one of the best tools to tackle the climate crisis and keep our temperatures from rising above 1.5C is to plant trees. If you support this package and contribute to the Treeware forest you’ll be creating employment for local families and restoring wildlife habitats.\n\nYou can buy trees [here][link-treeware-gifting].\n\nRead more about Treeware at [treeware.earth][link-treeware].\n\n[ico-version]: https://img.shields.io/packagist/v/owenvoke/gitea.svg?style=flat-square\n[ico-license]: https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square\n[ico-github-actions]: https://img.shields.io/github/actions/workflow/status/owenvoke/gitea-php/tests.yml?branch=main\u0026style=flat-square\u0026label=Tests\n[ico-static-analysis]: https://img.shields.io/github/actions/workflow/status/owenvoke/gitea-php/static.yml?branch=main\u0026style=flat-square\u0026label=Static%20Analysis\n[ico-downloads]: https://img.shields.io/packagist/dt/owenvoke/gitea.svg?style=flat-square\n[ico-treeware-gifting]: https://img.shields.io/badge/Treeware-%F0%9F%8C%B3-lightgreen?style=flat-square\n\n[link-packagist]: https://packagist.org/packages/owenvoke/gitea\n[link-github-actions]: https://github.com/owenvoke/gitea-php/actions\n[link-static-analysis]: https://github.com/owenvoke/gitea-php/actions/workflows/static.yml\n[link-downloads]: https://packagist.org/packages/owenvoke/gitea\n[link-treeware]: https://treeware.earth\n[link-treeware-gifting]: https://ecologi.com/owenvoke?gift-trees\n[link-author]: https://github.com/owenvoke\n[link-contributors]: ../../contributors\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fowenvoke%2Fgitea-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fowenvoke%2Fgitea-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fowenvoke%2Fgitea-php/lists"}