Download the PHP package janrydrych/github-repo-lister without Composer
On this page you can find all versions of the php package janrydrych/github-repo-lister. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download janrydrych/github-repo-lister
More information about janrydrych/github-repo-lister
Files in janrydrych/github-repo-lister
Package github-repo-lister
Short Description Testing purposes
License MIT
Homepage https://github.com/janrydrych/GithubRepoLister
Informations about the package github-repo-lister
GithubRepoLister
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 :
-
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 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.
All versions of github-repo-lister with dependencies
knplabs/github-api Version ^2.5
php-http/guzzle6-adapter Version ^1.1
delight-im/auth Version ^6.1