marcusmyers / github-auth
PHP 实现的 [github-auth](https://github.com/chrishunt/github-auth)
v1.0.0
2016-07-30 17:38 UTC
Requires
- guzzlehttp/guzzle: ~4.0|~5.0|~6.0
- symfony/console: ~2.3|~3.0
- symfony/process: ~2.3|~3.0
This package is auto-updated.
Last update: 2024-09-12 06:06:52 UTC
README
这是一个 Chris Hunt 的 github-auth 的 PHP 版本。我主要做这个是因为我正在编写一个 PHP 命令行应用程序,并且需要类似的东西。
与陌生人配对从未如此简单。
github-auth 允许您通过向您的 authorized_keys
文件中添加和删除他们的公钥来快速与任何具有 GitHub 账户的人配对。
安装
composer global require "marcusmyers/github-auth=~1.0.0"
请确保将 ~/.composer/vendor/bin 目录添加到您的 PATH
中,以便在终端中运行 gh-auth
命令时可以找到 gh-auth
可执行文件。
用法
添加用户
$ gh-auth add marcusmyers Successfully added marcusmyers to your authorized keys file
删除用户
$ gh-auth remove marcusmyers Removed 2 keys from your authorized_keys file
列出用户
$ gh-auth list-users marcusmyers