janrydrych/github-repo-lister
Composer 安装命令:
composer create-project janrydrych/github-repo-lister
包简介
Testing purposes
README 文档
README
Gets Github repo list and logs each search.
Requirements
- PHP 7.0+
- PDO (PHP Data Objects) extension (
pdo)
- PDO (PHP Data Objects) extension (
Installation
-
Include the library via Composer :
$ composer create-project janrydrych/github-repo-lister . -
Configuration directives can be changed in the Configuration class. Feel free to modify it according to your needs and desired database platform.
-
The project uses delight-im/PHP-Auth, so the database for the authentication has to be created. The DSN and credentials are set in Configuration and even the database schema is available for SQLite and MySQL as well, so basically create DB on your favourite platform and import the schema.
-
New users for the delight-im/PHP-Auth can be created according to its documentation or the project contains small utility file user-creator.php for such a purpose (edit the file, insert desired username credentials and run it).
-
Remove the user-creator.php.
-
Data storage database is initialized automatically, even if you delete it.
Usage
There are three main files:
-
repo-list.php which shows the list of public repositories for user.
-
search-log.php which shows paginated list of api queries that has been made.
-
log-purge.php which is authenticated (see Installation 3. and 4.) and deletes logs that are older than entered hours.
统计信息
- 总下载量: 21
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-09-25