PHPackages                             markwalet/laravel-packagist - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. markwalet/laravel-packagist

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

markwalet/laravel-packagist
===========================

A Laravel wrapper for the `spatie/packagist-api` package.

v1.7.1(1y ago)132.1k↓50%1MITPHPPHP ^8.1CI passing

Since Apr 8Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/markwalet/laravel-packagist)[ Packagist](https://packagist.org/packages/markwalet/laravel-packagist)[ Fund](https://www.paypal.me/markwalet)[ GitHub Sponsors](https://github.com/markwalet)[ RSS](/packages/markwalet-laravel-packagist/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (9)Dependencies (5)Versions (15)Used By (0)

Laravel Packagist
=================

[](#laravel-packagist)

[![MIT Licensed](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Latest Stable Version](https://camo.githubusercontent.com/2a753f300c2e18d2f39f3230a096fe06d702ff77d38d5dba579f6d46a000223c/68747470733a2f2f706f7365722e707567782e6f72672f6d61726b77616c65742f6c61726176656c2d7061636b61676973742f762f737461626c65)](https://packagist.org/packages/markwalet/laravel-packagist)[![Build status](https://camo.githubusercontent.com/bd00bb2f1afe32f59a855b621525b874ee54396dd0b87c47299a14d1e1bc6cfe/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6d61726b77616c65742f6c61726176656c2d7061636b61676973742f74657374732e796d6c3f6272616e63683d6d6173746572)](https://github.com/markwalet/laravel-git-state/actions)[![Coverage](https://camo.githubusercontent.com/15331d92505e19dc9fe5b07cf191e56f6cbc28d0d1e5d8bbac5c822905f334b6/68747470733a2f2f636f6465636f762e696f2f67682f6d61726b77616c65742f6c61726176656c2d7061636b61676973742f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/markwalet/laravel-packagist)[![StyleCI](https://camo.githubusercontent.com/ae38eb7f54959b6cf28aab94077a4ddd6b0d5e8c746714c1634136f96ffbc48b/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3235343035333833362f736869656c643f6272616e63683d6d6173746572)](https://github.styleci.io/repos/254053836)[![Total Downloads](https://camo.githubusercontent.com/32eefef3d212a1c1e2160d6982a93acf54ddf77637a432bbe8f26f9de042a20a/68747470733a2f2f706f7365722e707567782e6f72672f6d61726b77616c65742f6c61726176656c2d7061636b61676973742f646f776e6c6f616473)](https://packagist.org/packages/markwalet/laravel-packagist)

A Laravel wrapper for the [spatie/packagist-api](https://github.com/spatie/packagist-api) package.

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

[](#installation)

You can install this package with composer:

```
composer require markwalet/laravel-packagist
```

Laravel uses Package auto-discovery, so you don't have to register the service provider. If you want to register the service provider manually, add the following line to your `config/app.php` file:

```
MarkWalet\Packagist\PackagistServiceProvider::class,
```

Usage
-----

[](#usage)

There are two main ways how you can make Packagist calls:

**Using the application container**

```
/** @var \Spatie\Packagist\PackagistClient $client */
$client = app(\Spatie\Packagist\PackagistClient::class);

$client->getPackage('markwalet', 'laravel-packagist');
```

**Using the facade**

```
Packagist::getPackage('markwalet', 'laravel-packagist');
```

### Available methods

[](#available-methods)

**List package names**

```
// All packages
Packagist::getPackagesNames();

// Filter on type.
Packagist::getPackagesNamesByType('composer-plugin');

// Filter on organization
Packagist::getPackagesNamesByVendor('markwalet');
```

**Searching for packages**

```
// Search packages by name.
Packagist::searchPackagesByName('packagist');

// Search packages by tag.
Packagist::searchPackagesByTags('psr-3');

// Search packages by type.
Packagist::searchPackagesByType('composer-plugin');

// Combined search.
Packagist::searchPackages('packagist', ['type' => 'library']);
```

**Pagination**

Searching for packages returns a paginated result. You can change the pagination settings by adding more parameters.

```
// Get the third page, 10 items per page.
Packagist::searchPackagesByName('packagist', 3, 10);
```

**Getting package data.**

```
// Using the Composer metadata. (faster, but less data)
Packagist::getPackageMetadata('markwalet/laravel-packagist');
Packagist::getPackageMetadata('markwalet', 'laravel-packagist');

// Using the API. (slower, cached for 12 hours by Packagist.
Packagist::getPackage('markwalet/laravel-packagist');
Packagist::getPackage('markwalet', 'laravel-packagist');
```

**Get Statistics**

```
$packagist->getStatistics();
```

Configuration
-------------

[](#configuration)

By default, the api url for Packagist is set to `https://packagist.org`. If you want to override that, you can add the following code block to your `config/services.php` file:

```
'packagist' => [
    'base_url' => 'https://packagist.org',
    'repo_url' => 'https://repo.packagist.org',
],
```

###  Health Score

46

—

FairBetter than 93% of packages

Maintenance60

Regular maintenance activity

Popularity26

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity72

Established project with proven stability

 Bus Factor1

Top contributor holds 81.4% 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.

###  Release Activity

Cadence

Every ~220 days

Recently: every ~272 days

Total

9

Last Release

463d ago

PHP version history (5 changes)v1.0.0PHP ^7.2

v1.2.0PHP ^8.0|^7.2

v1.3.0PHP ~7.4|8.\*

v1.5.0PHP 8.\*

v1.7.0PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/a37ff925cc06953e11b0c2ed9b9eac8f090bb4780df7964ad9f0b76543521dfc?d=identicon)[markwalet](/maintainers/markwalet)

---

Top Contributors

[![markwalet](https://avatars.githubusercontent.com/u/11446771?v=4)](https://github.com/markwalet "markwalet (35 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (6 commits)")[![freekmurze](https://avatars.githubusercontent.com/u/483853?v=4)](https://github.com/freekmurze "freekmurze (2 commits)")

---

Tags

laravelpackagepackagist

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/markwalet-laravel-packagist/health.svg)

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

###  Alternatives

[wireui/wireui

TallStack components

1.8k1.3M16](/packages/wireui-wireui)[livewire/volt

An elegantly crafted functional API for Laravel Livewire.

4195.3M84](/packages/livewire-volt)[ramonrietdijk/livewire-tables

Dynamic tables for models with Laravel Livewire

21147.4k](/packages/ramonrietdijk-livewire-tables)

PHPackages © 2026

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