Download the PHP package mborne/remote-git without Composer
On this page you can find all versions of the php package mborne/remote-git. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mborne/remote-git
More information about mborne/remote-git
Files in mborne/remote-git
Package remote-git
Short Description A lightweight PHP client providing a consistent way to find hosted and self-hosted git repositories (github, gitlab,...)
License MIT
Informations about the package remote-git
mborne/remote-git
Description
A lightweight PHP client providing a consistent access to hosted and self-hosted git repositories (github, gitlab, gogs and gitea).
Use cases
- The original development has been realized in mborne/satis-gitlab repository to generate a config file referencing git repositories.
- This module is also used by mborne/git-manager to backup and analyse git repositories (for example that following files are present : README.md, LICENSE,...)
Features
- List repositories from multiple GIT hosting services filtering by
- usernames
- organizations/groups
- Get raw files from repositories
- Detect empty repositories (
isEmpty) - Apply custom filter
- Project contains a given file (
RequiredFileFilter) - Project is a composer project (
ComposerProjectFilter) - Project name doesn't match a given regexp (
IgnoreRegexpFilter)
- Project contains a given file (
Requirements
- PHP >= 8.3
- Supported GIT hosting services :
| Type | Description |
|---|---|
| gitlab-v4 | gitlab.com and self hosted gitlab instances |
| github | github.com |
| gogs-v1 | Gogs or Gitea |
Usage
Create a client
Filter by usernames or orgs/groups
Filter according to composer.json
Compose filters
Skip empty repositories
Note that isEmpty relies on the project metadata for gitlab (empty_repo), gitea and gogs (empty). As the github API doesn't provide such property, an extra API call is performed for repositories reported with a size of 0 (the size is expressed in kB and rounded, so that a repository containing a single small file is also reported with a size of 0).
Dependencies
Contributing
See CODING.md for setup, testing and coding style.
License
MIT