PHPackages                             gedex/ghorg - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [CLI &amp; Console](/categories/cli)
4. /
5. gedex/ghorg

ActiveApplication[CLI &amp; Console](/categories/cli)

gedex/ghorg
===========

CLI application to get information about organization on GitHub

0.2.0(9y ago)10MITPHP

Since Nov 21Pushed 9y agoCompare

[ Source](https://github.com/gedex/ghorg)[ Packagist](https://packagist.org/packages/gedex/ghorg)[ RSS](/packages/gedex-ghorg/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)Dependencies (5)Versions (3)Used By (0)

ghorg
=====

[](#ghorg)

CLI application to get information about organization on GitHub.

- [Install](#install)
- [Configuration](#config)
- [Usage](#usage)

Install
-------

[](#install)

```
git clone git@github.com:gedex/ghorg.git
cd ghorg
composer install

```

You can run `./ghorg` from current directory.

If you want to build the phar file:

```
box build

```

and you can move the file to your OS `PATH`:

```
mv ghorg.phar /usr/local/bin/ghorg

```

Now you can run `ghorg` from anywhere.

Configuration
-------------

[](#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](https://developer.github.com/v3/) for more detail.

The easiest way to authenticate is by using personal token which can be created from . You can then set the token with:

```
ghorg config token YOUR_PERSONAL_TOKEN
ghorg config method_auth token

```

Verify whether your config is saved with:

```
ghorg config

```

Usage
-----

[](#usage)

### members:list

[](#memberslist-)

To list members who are members of an organization:

```
ghorg members:list FriendsOfPHP

```

this will output:

```
+---------+------------+------+------------+
| id      | login      | type | site_admin |
+---------+------------+------+------------+
| 47313   | fabpot     | User | false      |
| 946104  | Hywan      | User | false      |
| 327237  | jubianchi  | User | false      |
| 2716794 | keradus    | User | false      |
| 408368  | lyrixx     | User | false      |
| 282408  | pierrejoye | User | false      |
| 540268  | tarekdj    | User | false      |
+---------+------------+------+------------+

```

You can pass option `-f ` or `--fields=` to display custom fields. For example:

```
ghorg members:list -f 'login,html_url'

```

See  for list of available fields. If you're wondering how to get member's `followers` or `public_repos`, like in , 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:

```
ghorg members:list golang --detail --fields='login,html_url,followers' --orderby=followers --limit=5

+----------+-----------------------------+-----------+
| login    | html_url                    | followers |
+----------+-----------------------------+-----------+
| bradfitz | https://github.com/bradfitz | 2839      |
| rakyll   | https://github.com/rakyll   | 1697      |
| campoy   | https://github.com/campoy   | 457       |
| dsymonds | https://github.com/dsymonds | 286       |
| dvyukov  | https://github.com/dvyukov  | 269       |
+----------+-----------------------------+-----------+

```

You can also filter returned rows with option `-F ` or `--filter=`. For example to list members of an `` within San Francisco and hireable:

```
ghorg members:list  --detail --fields='login,name,location' -F 'location=San Francisco&hireable=true'

```

Filter uses query string format and there are some comparison operators you can pass.

```
'==', '===', '!=', '!==', '>', '=', '
