PHPackages                             mrnewport/laravel-repo - 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. mrnewport/laravel-repo

ActiveLibrary

mrnewport/laravel-repo
======================

A Laravel package that fetches your GitHub repositories and saves README files into db for use on web pages

10PHP

Since Feb 6Pushed 1y ago1 watchersCompare

[ Source](https://github.com/MrNewport/laravel-repo)[ Packagist](https://packagist.org/packages/mrnewport/laravel-repo)[ RSS](/packages/mrnewport-laravel-repo/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

MrNewport Repo Package
======================

[](#mrnewport-repo-package)

Introduction
------------

[](#introduction)

The MrNewport Repo package allows you to set your GitHub username, fetch all of your repositories, and store their README files in your db for display on your website.

Installation
------------

[](#installation)

1. Require the package via Composer:

    ```
    composer require mrnewport/laravel-repo
    ```
2. Publish the configuration file:

    ```
    php artisan vendor:publish --provider="MrNewport\LaravelRepo\Providers\RepoServiceProvider"
    ```
3. Set your GitHub username and token (for private repos) in the `.env` file:

    ```
    GITHUB_USERNAME=your-github-username
    GITHUB_TOKEN=your-github-token
    REPO_CACHE_DURATION=3600
    MINIMUM_VISIBILITY=private
    ```
4. Run the migration:

    ```
    php artisan migrate
    ```

Usage
-----

[](#usage)

- Run the following command to fetch repositories and their README files:

    ```
    php artisan repo:fetch
    ```
- You can also use the service in your controller, which will populate (when necessary) and store the repos in cache for the amount of time determined in your env file.

    ```
    $service = app(\MrNewport\LaravelRepo\Services\RepoService::class);
    $repos = $service->fetchRepositories();
    return view('repo.index', compact('repos'));
    ```

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance33

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity16

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/19dc283a8ecb45d1efbc444dc510eb63c8aab21427be09f3c1aefd507a5ab40c?d=identicon)[mrnewport](/maintainers/mrnewport)

---

Top Contributors

[![MrNewport](https://avatars.githubusercontent.com/u/48736345?v=4)](https://github.com/MrNewport "MrNewport (1 commits)")

### Embed Badge

![Health badge](/badges/mrnewport-laravel-repo/health.svg)

```
[![Health](https://phpackages.com/badges/mrnewport-laravel-repo/health.svg)](https://phpackages.com/packages/mrnewport-laravel-repo)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
