Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Packagist Api Laravel Package

knplabs/packagist-api

A simple object-oriented PHP wrapper for the Packagist API, offering package search, full package details, and efficient Composer metadata retrieval. Easily list results, limit pages, and access names, descriptions, and versions.

View on GitHub
Deep Wiki
Context7
v3.0.0

Breaking changes

  • Minimum PHP version raised to 8.2 (from 8.0).
  • Guzzle is no longer a required dependency. Client now depends on a PSR-18 HTTP client and PSR-17 factories instead of guzzlehttp/guzzle directly. If your project doesn't already have a PSR-18 implementation installed, php-http/discovery (https://github.com/php-http/discovery) will auto-install one (typically Guzzle) for you - no action needed in most cases. Big thanks to @ChloeSartorelli for contributing this change.
    • If you were passing a custom GuzzleHttp\Client instance into Client's constructor, this still works as long as it implements Psr\Http\Client\ClientInterface (Guzzle 7+ does). Passing a Guzzle 6-style client or relying on GuzzleHttp\ClientInterface type hints will break.
    • Any code catching GuzzleHttp\Exception\GuzzleException around calls to this library should now catch Psr\Http\Client\ClientExceptionInterface instead.
  • New required dependencies: php-http/discovery, php-http/client-common, psr/http-client-implementation, psr/http-factory-implementation.

Full Changelog: https://github.com/KnpLabs/packagist-api/compare/v2.2.0...v3.0.0

v2.2.0

What's Changed

Full Changelog: https://github.com/KnpLabs/packagist-api/compare/v2.1.4...v2.2.0

v2.1.4
v2.1.3
v2.1.2

What's Changed

New Contributors

Full Changelog: https://github.com/KnpLabs/packagist-api/compare/v2.1.1...v2.1.2

v2.1.1

What's Changed

New Contributors

Full Changelog: https://github.com/KnpLabs/packagist-api/compare/v2.1.0...v2.1.1

v2.1.0

What's Changed

New support added for properties:

  • Package: getGithubWatchers(), getGithubOpenIssues(), getLanguage()
  • Version: getSupport(), getTargetDir(), getDefaultBranch()
  • Maintainer: getAvatarUrl()

Full Changelog: https://github.com/KnpLabs/packagist-api/compare/v2.0.3...v2.1.0

v2.0.3

What's Changed

Full Changelog: https://github.com/KnpLabs/packagist-api/compare/v2.0.2...v2.0.3

v2.0.1

What's Changed

New Contributors

Full Changelog: https://github.com/KnpLabs/packagist-api/compare/v2.0.0...v2.0.1

v2.0.0

v2.0.0 introduces a minimum of PHP 7.4, and a number of other changes, including:

  • Strict types, adjusted method parameter and return types
  • Exception thrown when a package was not found
  • New methods Client::getComposer(), Client::getComposerReleases(), Client::getComposerBranches() for more granular and cacheable Packagist metadata
  • Support for handling Packagist 2.0 API response structure
  • Support for accessing security advisories from the Packagist API

What's Changed

New Contributors

Full Changelog: https://github.com/KnpLabs/packagist-api/compare/v1.7.0...v2.0.0

v2.0.0-rc3

What's Changed

New Contributors

Full Changelog: https://github.com/KnpLabs/packagist-api/compare/v2.0.0-rc1...v2.0.0-rc3

v2.0.0-rc1

Overview

Release candidate for v2.0.0 introduces a minimum of PHP 7.4, and a number of other changes, including:

  • Strict types, adjusted method parameter and return types
  • Exception thrown when a package was not found
  • New methods Client::getComposer(), Client::getComposerReleases(), Client::getComposerBranches() for more granular and cacheable Packagist metadata
  • Support for handling Packagist 2.0 API response structure

Change history

  • Requesting a package that results in a 404 now throws a PackageNotFoundException (Robbie Averill) - 7e8b332
  • Refactor logic in multiRespond(), update getComposer() doc block, fix tests (Robbie Averill) - 5791523
  • fix: getComposer method (Andrea Giannantonio) - 9bc68b0
  • Mark shasum and reference property of Dist as nullable (jdrieghe) - ca44317
  • Decouple Dist from Source object. (jdrieghe) - c0d32f1
  • Add tests to prove that nullable reference or shasum in Dist will cause the object hydration to fail (jdrieghe) - 82a7266
  • Run CI on pull requests as well as push (Robbie Averill) - b8eeec1
  • Fix the handling of minified metadata responses (Christophe Coevoet) - bc3a194
  • Update badge in readme (Robbie Averill) - 6e09b6f
  • Use PHP 8.0 in CI (Robbie Averill) - 00cec8e
  • Replace Travis CI with GitHub Actions (Robbie Averill) - 9f64ad7
  • Fix the specs to pass (Christophe Coevoet) - 89cfb7f
  • feat: add method to fetch package info from new composer 2 api and override getComposer to use new api (Andrea Giannantonio) - 179847d
  • Fix broken unit test (Robbie Averill) - ca668d4
  • fix limit check in search (Massimiliano Arione) - 3bd3a7b
  • Avoid strict typing errors (Ingo Schommer) - e45df2b
  • Update src/Packagist/Api/Result/Factory.php (Ingo Schommer) - 0837c9a
  • Update README.md (Ingo Schommer) - c2d2264
  • NEW getComposer() for more efficient Packagist API usage (Ingo Schommer) - 37a9b1e
  • Update return types, make licenses an array, update phpspec tests (Robbie Averill) - 2086ee8
  • Run automated PSR-12 linting (Robbie Averill) - 75091f0
  • Update specs to use short array syntax and public function visibility (Robbie Averill) - 9610cc3
  • Add scalar return types and property types (Robbie Averill) - dc5089e
  • Add PSR-4 autoloader for spec folder, remove custom bin directory (Robbie Averill) - ced5f92
  • Increase minimum required PHP version to 7.4, swap PSR-0 for PSR-4 autoloader (Robbie Averill) - c1758b5
v1.7.2
  • Fix bug where packages with a null description would cause a return type error (Robbie Averill) - c676ce0
  • Fix broken Guzzle mocks in ClientSpec tests (Robbie Averill) - 8fd1411
  • Fix composer commands for linting and tests (Robbie Averill) - d8c7df0
  • Fix linting violations (Robbie Averill) - 3db3562
  • Run CI on pull requests as well as push (Robbie Averill) - ceccc18
  • Update badge in readme (Robbie Averill) - 87c6788
  • Use PHP 8.0 in CI (Robbie Averill) - cb58cd9
  • Replace Travis CI with GitHub Actions (Robbie Averill) - 9aefe28
v1.7.0
  • Fixes (Graham Campbell) - 9f4259e
  • Use correct case for guzzle request call (Graham Campbell) - 4d4067a
  • Update .travis.yml (Graham Campbell) - 339db1f
  • Support Guzzle 7 and PHP 8 (Graham Campbell) - e0ca27e
  • fix typo (Massimiliano Arione) - 7657a93
  • add "limit" option to search (Massimiliano Arione) - e45a021
v1.6.1
  • Update Keywords type (Vincent Langlet) - d948e6b
  • Add requirements to readme and remove broken dependency badges (Robbie Averill) - 8d2a9a9
v1.6.0
  • allow doctrine/inflector 2 (Massimiliano Arione) - 421e2a4
  • Fix all phpstan errors are level 7 (Robbie Averill) - 5352c68
  • Upgrade phpspec to 5.1 (Robbie Averill) - 952f468
  • Add PHP 7.3 and fix bin path to phpcs (Robbie Averill) - 32558c4
  • Fix PSR-2 linting errors and add lint check to Travis (Robbie Averill) - e8f4852
  • Add getReplacementPackage() for abandoned packages and package versions (Robbie Averill) - 876299d
  • Remove broken HHVM badge from readme (Robbie Averill) - a6ea257
  • Explicitly add maintainers in the README (alexpozzi) - 76d9018
  • Don't test hhvm anymore (Albin Kerouanton) - 8dea35e
  • Drop support for PHP 5.5, 5.6 and 7.0 (Albin Kerouanton) - cfcd783
v1.5.1
  • Add GitHub forks and GitHub stars (#46)
  • Package version sources can be null (#48)

Credits go to: @kmadejski and @Soullivaneuh.

v1.5.0
  • Add suggesters property
  • Add dependents property

Thank you @chadicus for your contributions!

v1.4.0
  • Little fixes
  • Added abandoned flag for packages and versions
  • Use newest version of guzzle aka guzzlehttp
  • Drop support for php 5.3 & 5.4

Thank you @GrahamCampbell, @Soullivaneuh, @psampaz, @Flyingmana & @MarioBlazek for your contributions!

1.3.0
v1.2
v1.1
  • Fixed issue #9.
  • Deps updated.
v1.0
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
socialdept/tenant-domains
tautvydasr/blade-class-names
socialdept/color-scales
maherelgamil/controller
coleus/widgets
coleus/table
coleus/users
coleus/music
coleus/health
coleus/calendar
coleus/notes
coleus/support
coleus/settings
coleus/apps
seampact/laravel
emmyconceptng/laravel-ng-postcode
jjsquady/round-robin
skyraptor/chatter
edlugz/sasapay
abbasudo/artisan-route