Download the PHP package gedex/ghorg without Composer
On this page you can find all versions of the php package gedex/ghorg. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Package ghorg
Short Description CLI application to get information about organization on GitHub
License MIT
Informations about the package ghorg
ghorg
CLI application to get information about organization on GitHub.
- Install
- Configuration
- Usage
Install
You can run ./ghorg
from current directory.
If you want to build the phar file:
and you can move the file to your OS PATH
:
Now you can run ghorg
from anywhere.
Configuration
The first time you need to do is configure your ghorg
, especially method_auth
if you want to use GitHub token, client_id/client_secret, or username/password.
If method_auth
and related auth config keys are left empty then client will
make unathenticated requests. See GitHub API for more detail.
The easiest way to authenticate is by using personal token which can be created from https://github.com/settings/tokens. You can then set the token with:
Verify whether your config is saved with:
Usage
members:list
To list members who are members of an organization:
this will output:
You can pass option -f <fields>
or --fields=<fields>
to display custom fields.
For example:
See https://developer.github.com/v3/orgs/members/#response for list of available
fields. If you're wondering how to get member's followers
or public_repos
,
like in https://developer.github.com/v3/users/#get-a-single-user, then you need
to pass option -d
or --detail
in which it will request member info. It will
take time for organization with thousands of members.
Here's an example that show top 5 members based on number of followers from golang:
You can also filter returned rows with option -F <query_string>
or --filter=<query_string>
.
For example to list members of an <org>
within San Francisco and hireable:
Filter uses query string format and there are some comparison operators you can pass.
Tilde, ~
, is like MySQL's LIKE
statement. For example to filter login
that
like john
:
repos:list
Command repos:list
have similar options like members:list
, except --detail
is not applied. Here's a simple example to list repositories of an organization:
License
ghorg
is licensed under the MIT License - see the LICENSE file for details.
All versions of ghorg with dependencies
symfony/dependency-injection Version ^2.7
knplabs/github-api Version ^1.5
rpnzl/arrch Version dev-master