thisisdevelopment / git-manager
Provides a uniform api to access and manage repositories / team / users for all major git platforms (github/gitlab/gitea/bitbucket)
0.3.2
2023-07-13 09:00 UTC
Requires
- php: ^7.4.15 || ^8.0.2
- ext-json: *
- guzzlehttp/guzzle: ^7.0.1
- http-interop/http-factory-guzzle: ^1.0
- illuminate/support: ^7.0|^8.0|^9.0|^10.0
- m4tthumphrey/php-gitlab-api: ^11.7.0
- php-http/guzzle7-adapter: ^1.0.0
README
Currently this library is in alpha and it's api should not be considered stable.
The following backends are implemented
- Gitlab
- Gitea
- Github
- Bitbucket
Supported objects
- branches
- tags
- webhooks
- users
- teams
- repositories
- files (partial)
$platform = new \ThisIsDevelopment\GitManager\Models\Gitea\GiteaPlatform(['defaultTeamNamespace' => env('GITEA_TEAM'), 'defaultRepoNamespace' => env('GITEA_TEAM'), 'url' => env('GITEA_URI'), 'auth' => env('GITEA_ACCESS_TOKEN')]);
$platform = new \ThisIsDevelopment\GitManager\Models\GitLab\GitLabPlatform(['defaultTeamNamespace' => env('GITLAB_TEAM'), 'defaultRepoNamespace' => env('GITLAB_REPO'), 'url' => env('GITLAB_URI'), 'auth' => env('GITLAB_ACCESS_TOKEN')]);