{"id":18320261,"url":"https://github.com/gedex/ghorg","last_synced_at":"2026-04-24T23:34:43.722Z","repository":{"id":56983001,"uuid":"46499039","full_name":"gedex/ghorg","owner":"gedex","description":"CLI application to get information about organization on GitHub","archived":false,"fork":false,"pushed_at":"2017-01-04T04:40:52.000Z","size":14,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-03-29T16:13:44.532Z","etag":null,"topics":["cli","cli-application","github","github-api","php"],"latest_commit_sha":null,"homepage":null,"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/gedex.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-11-19T14:53:38.000Z","updated_at":"2022-12-13T23:00:26.000Z","dependencies_parsed_at":"2022-08-21T12:20:25.659Z","dependency_job_id":null,"html_url":"https://github.com/gedex/ghorg","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/gedex/ghorg","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gedex%2Fghorg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gedex%2Fghorg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gedex%2Fghorg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gedex%2Fghorg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gedex","download_url":"https://codeload.github.com/gedex/ghorg/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gedex%2Fghorg/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32245150,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T13:21:15.438Z","status":"ssl_error","status_checked_at":"2026-04-24T13:21:15.005Z","response_time":64,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["cli","cli-application","github","github-api","php"],"created_at":"2024-11-05T18:15:43.936Z","updated_at":"2026-04-24T23:34:43.710Z","avatar_url":"https://github.com/gedex.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"ghorg\n=====\n\nCLI application to get information about organization on GitHub.\n\n* [Install](#install)\n* [Configuration](#config)\n* [Usage](#usage)\n\n\u003ca name=\"install\"\u003e\u003c/a\u003e\n## Install\n\n```\ngit clone git@github.com:gedex/ghorg.git\ncd ghorg\ncomposer install\n```\n\nYou can run `./ghorg` from current directory.\n\nIf you want to build the phar file:\n\n```\nbox build\n```\n\nand you can move the file to your OS `PATH`:\n\n```\nmv ghorg.phar /usr/local/bin/ghorg\n```\n\nNow you can run `ghorg` from anywhere.\n\n\u003ca name=\"config\"\u003e\u003c/a\u003e\n## Configuration\n\nThe first time you need to do is configure your `ghorg`, especially `method_auth`\nif you want to use GitHub token, client_id/client_secret, or username/password.\nIf `method_auth` and related auth config keys are left empty then client will\nmake unathenticated requests. See [GitHub API](https://developer.github.com/v3/) for more detail.\n\nThe easiest way to authenticate is by using personal token which can be created\nfrom https://github.com/settings/tokens. You can then set the token with:\n\n```\nghorg config token YOUR_PERSONAL_TOKEN\nghorg config method_auth token\n```\n\nVerify whether your config is saved with:\n\n```\nghorg config\n```\n\n\u003ca name=\"usage\"\u003e\u003c/a\u003e\n## Usage\n\n### members:list \u003corg\u003e\n\nTo list members who are members of an organization:\n\n```\nghorg members:list FriendsOfPHP\n```\n\nthis will output:\n\n```\n+---------+------------+------+------------+\n| id      | login      | type | site_admin |\n+---------+------------+------+------------+\n| 47313   | fabpot     | User | false      |\n| 946104  | Hywan      | User | false      |\n| 327237  | jubianchi  | User | false      |\n| 2716794 | keradus    | User | false      |\n| 408368  | lyrixx     | User | false      |\n| 282408  | pierrejoye | User | false      |\n| 540268  | tarekdj    | User | false      |\n+---------+------------+------+------------+\n```\n\nYou can pass option `-f \u003cfields\u003e` or `--fields=\u003cfields\u003e` to display custom fields.\nFor example:\n\n```\nghorg members:list -f 'login,html_url'\n```\n\nSee https://developer.github.com/v3/orgs/members/#response for list of available\nfields. If you're wondering how to get member's `followers` or `public_repos`,\nlike in https://developer.github.com/v3/users/#get-a-single-user, then you need\nto pass option `-d` or `--detail` in which it will request member info. It will\ntake time for organization with thousands of members.\n\nHere's an example that show top 5 members based on number of followers from golang:\n\n```\nghorg members:list golang --detail --fields='login,html_url,followers' --orderby=followers --limit=5\n\n+----------+-----------------------------+-----------+\n| login    | html_url                    | followers |\n+----------+-----------------------------+-----------+\n| bradfitz | https://github.com/bradfitz | 2839      |\n| rakyll   | https://github.com/rakyll   | 1697      |\n| campoy   | https://github.com/campoy   | 457       |\n| dsymonds | https://github.com/dsymonds | 286       |\n| dvyukov  | https://github.com/dvyukov  | 269       |\n+----------+-----------------------------+-----------+\n```\n\nYou can also filter returned rows with option `-F \u003cquery_string\u003e` or `--filter=\u003cquery_string\u003e`.\nFor example to list members of an `\u003corg\u003e` within San Francisco and hireable:\n\n```\nghorg members:list \u003corg\u003e --detail --fields='login,name,location' -F 'location=San Francisco\u0026hireable=true'\n```\n\nFilter uses query string format and there are some comparison operators you can\npass.\n\n```\n'==', '===', '!=', '!==', '\u003e', '\u003c', '\u003e=', '\u003c=', '~'\n```\n\nTilde, `~`, is like MySQL's `LIKE` statement. For example to filter `login` that\nlike `john`:\n\n```\nghorg members:list \u003corg\u003e -F 'login[operator]=~\u0026login[value]=john'\n```\n\n### repos:list\n\nCommand `repos:list` have similar options like `members:list`, except `--detail`\nis not applied. Here's a simple example to list repositories of an organization:\n\n```\nghorg repos:list \u003corg\u003e\n```\n\n## License\n\n`ghorg` is licensed under the MIT License - see the LICENSE file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgedex%2Fghorg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgedex%2Fghorg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgedex%2Fghorg/lists"}